From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Andy Grover <agrover@redhat.com>
Cc: linux-scsi@vger.kernel.org, hch@lst.de
Subject: Re: [PATCHv2 5/5] scsi: move scsi/sg.h to uapi/linux/sg.h
Date: Thu, 29 Jan 2015 17:14:00 -0800 [thread overview]
Message-ID: <1422580440.2091.32.camel@HansenPartnership.com> (raw)
In-Reply-To: <1422579397-18696-6-git-send-email-agrover@redhat.com>
On Thu, 2015-01-29 at 16:56 -0800, Andy Grover wrote:
> This will enable user programs to have access to the most current
> definitions.
>
> Modify include sites for new path.
>
> Signed-off-by: Andy Grover <agrover@redhat.com>
> ---
> block/bio.c | 2 +-
> block/blk-map.c | 2 +-
> block/bsg.c | 2 +-
> block/scsi_ioctl.c | 2 +-
> drivers/block/aoe/aoeblk.c | 2 +-
> drivers/block/cciss.c | 2 +-
> drivers/block/nvme-core.c | 2 +-
> drivers/block/nvme-scsi.c | 2 +-
> drivers/block/skd_main.c | 2 +-
> drivers/message/i2o/i2o_scsi.c | 2 +-
> drivers/scsi/ips.c | 2 +-
> drivers/scsi/scsi_error.c | 2 +-
> drivers/scsi/scsi_ioctl.c | 2 +-
> drivers/scsi/sg.c | 2 +-
> drivers/scsi/st.c | 2 +-
> fs/compat_ioctl.c | 2 +-
> include/scsi/sg.h | 274 -----------------------------------------
> include/uapi/linux/Kbuild | 1 +
> include/uapi/linux/sg.h | 274 +++++++++++++++++++++++++++++++++++++++++
> kernel/sysctl.c | 2 +-
> 20 files changed, 292 insertions(+), 291 deletions(-)
> delete mode 100644 include/scsi/sg.h
> create mode 100644 include/uapi/linux/sg.h
>
> diff --git a/block/bio.c b/block/bio.c
> index 471d738..ca072bb 100644
> --- a/block/bio.c
> +++ b/block/bio.c
> @@ -28,7 +28,7 @@
> #include <linux/mempool.h>
> #include <linux/workqueue.h>
> #include <linux/cgroup.h>
> -#include <scsi/sg.h> /* for struct sg_iovec */
> +#include <uapi/linux/sg.h> /* for struct sg_iovec */
Good grief, not like this, please. uapi/linux/sg.h becomes our public,
or exported set of interfaces, but keep scsi/sg.h as our internal set
but have it include uapi/linux/sg.h (like you did for scsi.h). That way
if we have any kernel private sg stuff, it stays in scsi/sg.h plus we
don't need to patch the #include path in fifty odd drivers.
Same goes for scsi_ioctl.h
James
next prev parent reply other threads:[~2015-01-30 1:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-30 0:56 [PATCHv2 0/5] Move headers to uapi/linux Andy Grover
2015-01-30 0:56 ` [PATCHv2 1/5] scsi: add WRITE_VERIFY_16 to scsi.h Andy Grover
2015-01-30 0:56 ` [PATCHv2 2/5] scsi: Move ioctl defs from scsi/scsi.h to scsi/scsi_ioctl.h Andy Grover
2015-01-30 0:56 ` [PATCHv2 3/5] scsi: Move user-shareable stuff in scsi/scsi.h to uapi/linux/scsi.h Andy Grover
2015-01-30 1:24 ` James Bottomley
2015-02-02 8:00 ` Christoph Hellwig
2015-01-30 0:56 ` [PATCHv2 4/5] scsi: Move scsi/scsi_ioctl.h to uapi/linux/scsi_ioctl.h Andy Grover
2015-01-30 0:56 ` [PATCHv2 5/5] scsi: move scsi/sg.h to uapi/linux/sg.h Andy Grover
2015-01-30 1:14 ` James Bottomley [this message]
2015-01-30 17:28 ` Douglas Gilbert
2015-01-30 18:07 ` Andy Grover
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1422580440.2091.32.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=agrover@redhat.com \
--cc=hch@lst.de \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.