* [PATCH 60/86] scsi/arcmsr: use uapi/linux/pci_ids.h directly
[not found] <1427635734-24786-1-git-send-email-mst@redhat.com>
@ 2015-03-29 13:41 ` Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 61/86] scsi/qla1280: " Michael S. Tsirkin
1 sibling, 0 replies; 5+ messages in thread
From: Michael S. Tsirkin @ 2015-03-29 13:41 UTC (permalink / raw)
To: linux-kernel
Cc: James E.J. Bottomley, Christoph Hellwig, Ching Huang, Tomas Henzl,
Hannes Reinecke, Mike Christie, linux-scsi
Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h,
use the new header directly so we can drop
the wrapper in include/linux/pci_ids.h.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 914c39f..ead6f31 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -47,7 +47,7 @@
#include <linux/module.h>
#include <linux/reboot.h>
#include <linux/spinlock.h>
-#include <linux/pci_ids.h>
+#include <uapi/linux/pci_ids.h>
#include <linux/interrupt.h>
#include <linux/moduleparam.h>
#include <linux/errno.h>
--
MST
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 61/86] scsi/qla1280: use uapi/linux/pci_ids.h directly
[not found] <1427635734-24786-1-git-send-email-mst@redhat.com>
2015-03-29 13:41 ` [PATCH 60/86] scsi/arcmsr: use uapi/linux/pci_ids.h directly Michael S. Tsirkin
@ 2015-03-29 13:42 ` Michael S. Tsirkin
2015-03-29 14:03 ` James Bottomley
1 sibling, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2015-03-29 13:42 UTC (permalink / raw)
To: linux-kernel; +Cc: Michael Reed, James E.J. Bottomley, linux-scsi
Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h,
use the new header directly so we can drop
the wrapper in include/linux/pci_ids.h.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
drivers/scsi/qla1280.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
index c68a66e..b2ada21 100644
--- a/drivers/scsi/qla1280.c
+++ b/drivers/scsi/qla1280.c
@@ -348,7 +348,7 @@
#include <linux/pci.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
-#include <linux/pci_ids.h>
+#include <uapi/linux/pci_ids.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
--
MST
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 61/86] scsi/qla1280: use uapi/linux/pci_ids.h directly
2015-03-29 13:42 ` [PATCH 61/86] scsi/qla1280: " Michael S. Tsirkin
@ 2015-03-29 14:03 ` James Bottomley
2015-03-29 14:36 ` Michael S. Tsirkin
0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2015-03-29 14:03 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: linux-kernel, Michael Reed, linux-scsi
On Sun, 2015-03-29 at 15:42 +0200, Michael S. Tsirkin wrote:
> Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h,
> use the new header directly so we can drop
> the wrapper in include/linux/pci_ids.h.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> drivers/scsi/qla1280.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
> index c68a66e..b2ada21 100644
> --- a/drivers/scsi/qla1280.c
> +++ b/drivers/scsi/qla1280.c
> @@ -348,7 +348,7 @@
> #include <linux/pci.h>
> #include <linux/proc_fs.h>
> #include <linux/stat.h>
> -#include <linux/pci_ids.h>
> +#include <uapi/linux/pci_ids.h>
This is bogus, isn't it? There's a -Iuapi somewhere in the kernel
compile line so the original include is still valid. Zorro does this:
zorro_ids.h is exclusively in uapi but the include is still
#include <linux/zorro_ids.h>
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 61/86] scsi/qla1280: use uapi/linux/pci_ids.h directly
2015-03-29 14:03 ` James Bottomley
@ 2015-03-29 14:36 ` Michael S. Tsirkin
2015-03-29 14:52 ` James Bottomley
0 siblings, 1 reply; 5+ messages in thread
From: Michael S. Tsirkin @ 2015-03-29 14:36 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-kernel, Michael Reed, linux-scsi
On Sun, Mar 29, 2015 at 05:03:36PM +0300, James Bottomley wrote:
> On Sun, 2015-03-29 at 15:42 +0200, Michael S. Tsirkin wrote:
> > Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h,
> > use the new header directly so we can drop
> > the wrapper in include/linux/pci_ids.h.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > ---
> > drivers/scsi/qla1280.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
> > index c68a66e..b2ada21 100644
> > --- a/drivers/scsi/qla1280.c
> > +++ b/drivers/scsi/qla1280.c
> > @@ -348,7 +348,7 @@
> > #include <linux/pci.h>
> > #include <linux/proc_fs.h>
> > #include <linux/stat.h>
> > -#include <linux/pci_ids.h>
> > +#include <uapi/linux/pci_ids.h>
>
> This is bogus, isn't it? There's a -Iuapi somewhere in the kernel
> compile line so the original include is still valid. Zorro does this:
> zorro_ids.h is exclusively in uapi but the include is still
>
> #include <linux/zorro_ids.h>
>
> James
>
Hmm, that's true. I didn't know. A bunch of files pull in headers from uapi
explicitly, so I assumed it's a good idea. Do you think it's better to include
uapi files using short linux/<x>.h, or the full uapi/linux/<x>.h? Linux has a
mix of both.
--
MST
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 61/86] scsi/qla1280: use uapi/linux/pci_ids.h directly
2015-03-29 14:36 ` Michael S. Tsirkin
@ 2015-03-29 14:52 ` James Bottomley
0 siblings, 0 replies; 5+ messages in thread
From: James Bottomley @ 2015-03-29 14:52 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: linux-kernel, Michael Reed, linux-scsi
On Sun, 2015-03-29 at 16:36 +0200, Michael S. Tsirkin wrote:
> On Sun, Mar 29, 2015 at 05:03:36PM +0300, James Bottomley wrote:
> > On Sun, 2015-03-29 at 15:42 +0200, Michael S. Tsirkin wrote:
> > > Header moved from linux/pci_ids.h to uapi/linux/pci_ids.h,
> > > use the new header directly so we can drop
> > > the wrapper in include/linux/pci_ids.h.
> > >
> > > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > > ---
> > > drivers/scsi/qla1280.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
> > > index c68a66e..b2ada21 100644
> > > --- a/drivers/scsi/qla1280.c
> > > +++ b/drivers/scsi/qla1280.c
> > > @@ -348,7 +348,7 @@
> > > #include <linux/pci.h>
> > > #include <linux/proc_fs.h>
> > > #include <linux/stat.h>
> > > -#include <linux/pci_ids.h>
> > > +#include <uapi/linux/pci_ids.h>
> >
> > This is bogus, isn't it? There's a -Iuapi somewhere in the kernel
> > compile line so the original include is still valid. Zorro does this:
> > zorro_ids.h is exclusively in uapi but the include is still
> >
> > #include <linux/zorro_ids.h>
> >
> > James
> >
>
>
> Hmm, that's true. I didn't know. A bunch of files pull in headers from uapi
> explicitly, so I assumed it's a good idea. Do you think it's better to include
> uapi files using short linux/<x>.h, or the full uapi/linux/<x>.h? Linux has a
> mix of both.
I prefer the short linux/<x>.h because it's then up to the build system
where they come from (we use the same scheme for asm-generic). If we
hard code uapi/linux/<x>.h they will be wrong again when we have a new
API split.
However, I'd say the rule I'd adhere to is that if nothing needs doing
(i.e. whether they include linux/<x>.h or uapi/linux/<x>.h) then do
nothing. It saves churning lots of files for no reason.
James
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-29 14:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1427635734-24786-1-git-send-email-mst@redhat.com>
2015-03-29 13:41 ` [PATCH 60/86] scsi/arcmsr: use uapi/linux/pci_ids.h directly Michael S. Tsirkin
2015-03-29 13:42 ` [PATCH 61/86] scsi/qla1280: " Michael S. Tsirkin
2015-03-29 14:03 ` James Bottomley
2015-03-29 14:36 ` Michael S. Tsirkin
2015-03-29 14:52 ` James Bottomley
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).