linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/5] Move headers to uapi/linux
@ 2015-01-30  0:56 Andy Grover
  2015-01-30  0:56 ` [PATCHv2 1/5] scsi: add WRITE_VERIFY_16 to scsi.h Andy Grover
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Andy Grover @ 2015-01-30  0:56 UTC (permalink / raw)
  To: JBottomley; +Cc: linux-scsi, hch

Hi James and hch, here's v2 with the headers exported in uapi/linux/*
instead of uapi/scsi/*, based upon your feedback. v2 also additionally
moves sg.h.

Also, you mentioned dropping obsolete SPC-2 opcodes from these
headers, but I wasn't sure what was safe to drop. Candidates?

Against scsi/for-next.

Summary:

Moving SCSI opcodes and other useful defines into user-available
headers should help projects like tgt and glibc that have copied
these opcode definitions, and then fall out of date. Unfortunately we
cannot move them to scsi/* because of conflicts with glibc.

The first patch adds a missing opcode.

Builds with allmodconfig. Thanks for taking a look, and any
suggestions for further improvement.

Regards -- Andy

Andy Grover (5):
  scsi: add WRITE_VERIFY_16 to scsi.h
  scsi: Move ioctl defs from scsi/scsi.h to scsi/scsi_ioctl.h
  scsi: Move user-shareable stuff in scsi/scsi.h to uapi/linux/scsi.h
  scsi: Move scsi/scsi_ioctl.h to uapi/linux/scsi_ioctl.h
  scsi: move scsi/sg.h to uapi/linux/sg.h

 block/bio.c                        |   2 +-
 block/blk-map.c                    |   2 +-
 block/bsg.c                        |   4 +-
 block/scsi_ioctl.c                 |   4 +-
 drivers/block/aoe/aoeblk.c         |   2 +-
 drivers/block/cciss.c              |   4 +-
 drivers/block/nvme-core.c          |   2 +-
 drivers/block/nvme-scsi.c          |   2 +-
 drivers/block/pktcdvd.c            |   2 +-
 drivers/block/skd_main.c           |   2 +-
 drivers/ide/ide-floppy.c           |   2 +-
 drivers/ide/ide-floppy_ioctl.c     |   2 +-
 drivers/message/i2o/i2o_scsi.c     |   2 +-
 drivers/scsi/ch.c                  |   2 +-
 drivers/scsi/fdomain.c             |   2 +-
 drivers/scsi/ips.c                 |   2 +-
 drivers/scsi/nsp32.c               |   2 +-
 drivers/scsi/osd/osd_uld.c         |   2 +-
 drivers/scsi/osst.c                |   2 +-
 drivers/scsi/pcmcia/aha152x_stub.c |   2 +-
 drivers/scsi/pcmcia/fdomain_stub.c |   2 +-
 drivers/scsi/pcmcia/nsp_cs.c       |   2 +-
 drivers/scsi/pcmcia/qlogic_stub.c  |   2 +-
 drivers/scsi/pcmcia/sym53c500_cs.c |   2 +-
 drivers/scsi/scsi_error.c          |   4 +-
 drivers/scsi/scsi_ioctl.c          |   4 +-
 drivers/scsi/sd.c                  |   2 +-
 drivers/scsi/sd_dif.c              |   2 +-
 drivers/scsi/sg.c                  |   4 +-
 drivers/scsi/sr.c                  |   2 +-
 drivers/scsi/sr_ioctl.c            |   2 +-
 drivers/scsi/sr_vendor.c           |   2 +-
 drivers/scsi/st.c                  |   4 +-
 fs/compat_ioctl.c                  |   4 +-
 include/scsi/scsi.h                | 517 +------------------------------------
 include/scsi/scsi_ioctl.h          |  48 ----
 include/scsi/sg.h                  | 274 --------------------
 include/uapi/linux/Kbuild          |   3 +
 include/uapi/linux/scsi.h          | 506 ++++++++++++++++++++++++++++++++++++
 include/uapi/linux/scsi_ioctl.h    |  72 ++++++
 include/uapi/linux/sg.h            | 274 ++++++++++++++++++++
 kernel/sysctl.c                    |   2 +-
 42 files changed, 901 insertions(+), 879 deletions(-)
 delete mode 100644 include/scsi/scsi_ioctl.h
 delete mode 100644 include/scsi/sg.h
 create mode 100644 include/uapi/linux/scsi.h
 create mode 100644 include/uapi/linux/scsi_ioctl.h
 create mode 100644 include/uapi/linux/sg.h

-- 
2.1.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-02  8:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-01-30 17:28   ` Douglas Gilbert
2015-01-30 18:07     ` Andy Grover

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).