Skip to contentSkip to conversation

s390: add missing module.h/export.h includes

PATCH In review Heiko Carstens 3 participants 4 messages Jul 30, 2011

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: add missing module.h/export.h includes

Subject: [PATCH] s390: add missing module.h/export.h includes

From: Heiko Carstens <[email protected]>

Fix several compile errors on s390 caused by splitting module.h.

---
 arch/s390/crypto/sha_common.c    |    1 +
 arch/s390/mm/init.c              |    1 +
 drivers/s390/char/fs3270.c       |    1 +
 drivers/s390/char/sclp_cpi_sys.c |    1 +
 drivers/s390/char/vmur.c         |    1 +
 drivers/s390/cio/chp.c           |    2 ++
 drivers/s390/cio/qdio_debug.c    |    2 ++
 drivers/s390/kvm/kvm_virtio.c    |    1 +
 drivers/s390/scsi/zfcp_ccw.c     |    1 +
 drivers/s390/scsi/zfcp_dbf.c     |    1 +
 drivers/s390/scsi/zfcp_scsi.c    |    1 +
 11 files changed, 13 insertions(+)
arch/s390/crypto/sha_common.c +1 -0
@@ -14,6 +14,7 @@
  */
 
 #include <crypto/internal/hash.h>
+#include <linux/module.h>
 #include "sha.h"
 #include "crypt_s390.h"
 
arch/s390/mm/init.c +1 -0
@@ -26,6 +26,7 @@
 #include <linux/pfn.h>
 #include <linux/poison.h>
 #include <linux/initrd.h>
+#include <linux/export.h>
 #include <linux/gfp.h>
 #include <asm/processor.h>
 #include <asm/system.h>
drivers/s390/char/fs3270.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/console.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
+#include <linux/module.h>
 #include <linux/list.h>
 #include <linux/slab.h>
 #include <linux/types.h>
drivers/s390/char/sclp_cpi_sys.c +1 -0
@@ -21,6 +21,7 @@
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/completion.h>
+#include <linux/export.h>
 #include <asm/ebcdic.h>
 #include <asm/sclp.h>
 
drivers/s390/char/vmur.c +1 -0
@@ -12,6 +12,7 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/kernel_stat.h>
+#include <linux/module.h>
 #include <linux/cdev.h>
 #include <linux/slab.h>
 
drivers/s390/cio/chp.c +2 -0
@@ -10,6 +10,8 @@
 #include <linux/bug.h>
 #include <linux/workqueue.h>
 #include <linux/spinlock.h>
+#include <linux/export.h>
+#include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/jiffies.h>
 #include <linux/wait.h>
drivers/s390/cio/qdio_debug.c +2 -0
@@ -7,6 +7,8 @@
  */
 #include <linux/seq_file.h>
 #include <linux/debugfs.h>
+#include <linux/uaccess.h>
+#include <linux/export.h>
 #include <asm/debug.h>
 #include "qdio_debug.h"
 #include "qdio.h"
drivers/s390/kvm/kvm_virtio.c +1 -0
@@ -20,6 +20,7 @@
 #include <linux/virtio_console.h>
 #include <linux/interrupt.h>
 #include <linux/virtio_ring.h>
+#include <linux/export.h>
 #include <linux/pfn.h>
 #include <asm/io.h>
 #include <asm/kvm_para.h>
drivers/s390/scsi/zfcp_ccw.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "zfcp"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/module.h>
 #include "zfcp_ext.h"
 #include "zfcp_reqlist.h"
 
drivers/s390/scsi/zfcp_dbf.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "zfcp"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/module.h>
 #include <linux/ctype.h>
 #include <linux/slab.h>
 #include <asm/debug.h>
drivers/s390/scsi/zfcp_scsi.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "zfcp"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/module.h>
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <scsi/fc/fc_fcp.h>
#1 lore raw
Quoted 5 lines · Heiko Carstens

Subject: [PATCH] s390: add missing module.h/export.h includes

From: Heiko Carstens <[email protected]>

Fix several compile errors on s390 caused by splitting module.h.

Thanks, I'll put this on the branch today.

P.

Quoted 128 lines
---
 arch/s390/crypto/sha_common.c    |    1 +
 arch/s390/mm/init.c              |    1 +
 drivers/s390/char/fs3270.c       |    1 +
 drivers/s390/char/sclp_cpi_sys.c |    1 +
 drivers/s390/char/vmur.c         |    1 +
 drivers/s390/cio/chp.c           |    2 ++
 drivers/s390/cio/qdio_debug.c    |    2 ++
 drivers/s390/kvm/kvm_virtio.c    |    1 +
 drivers/s390/scsi/zfcp_ccw.c     |    1 +
 drivers/s390/scsi/zfcp_dbf.c     |    1 +
 drivers/s390/scsi/zfcp_scsi.c    |    1 +
 11 files changed, 13 insertions(+)
arch/s390/crypto/sha_common.c +1 -0
@@ -14,6 +14,7 @@
  */
 
 #include <crypto/internal/hash.h>
+#include <linux/module.h>
 #include "sha.h"
 #include "crypt_s390.h"
 
arch/s390/mm/init.c +1 -0
@@ -26,6 +26,7 @@
 #include <linux/pfn.h>
 #include <linux/poison.h>
 #include <linux/initrd.h>
+#include <linux/export.h>
 #include <linux/gfp.h>
 #include <asm/processor.h>
 #include <asm/system.h>
drivers/s390/char/fs3270.c +1 -0
@@ -11,6 +11,7 @@
 #include <linux/console.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
+#include <linux/module.h>
 #include <linux/list.h>
 #include <linux/slab.h>
 #include <linux/types.h>
drivers/s390/char/sclp_cpi_sys.c +1 -0
@@ -21,6 +21,7 @@
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/completion.h>
+#include <linux/export.h>
 #include <asm/ebcdic.h>
 #include <asm/sclp.h>
 
drivers/s390/char/vmur.c +1 -0
@@ -12,6 +12,7 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/kernel_stat.h>
+#include <linux/module.h>
 #include <linux/cdev.h>
 #include <linux/slab.h>
 
drivers/s390/cio/chp.c +2 -0
@@ -10,6 +10,8 @@
 #include <linux/bug.h>
 #include <linux/workqueue.h>
 #include <linux/spinlock.h>
+#include <linux/export.h>
+#include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/jiffies.h>
 #include <linux/wait.h>
drivers/s390/cio/qdio_debug.c +2 -0
@@ -7,6 +7,8 @@
  */
 #include <linux/seq_file.h>
 #include <linux/debugfs.h>
+#include <linux/uaccess.h>
+#include <linux/export.h>
 #include <asm/debug.h>
 #include "qdio_debug.h"
 #include "qdio.h"
drivers/s390/kvm/kvm_virtio.c +1 -0
@@ -20,6 +20,7 @@
 #include <linux/virtio_console.h>
 #include <linux/interrupt.h>
 #include <linux/virtio_ring.h>
+#include <linux/export.h>
 #include <linux/pfn.h>
 #include <asm/io.h>
 #include <asm/kvm_para.h>
drivers/s390/scsi/zfcp_ccw.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "zfcp"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/module.h>
 #include "zfcp_ext.h"
 #include "zfcp_reqlist.h"
 
drivers/s390/scsi/zfcp_dbf.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "zfcp"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/module.h>
 #include <linux/ctype.h>
 #include <linux/slab.h>
 #include <asm/debug.h>
drivers/s390/scsi/zfcp_scsi.c +1 -0
@@ -9,6 +9,7 @@
 #define KMSG_COMPONENT "zfcp"
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
+#include <linux/module.h>
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <scsi/fc/fc_fcp.h>
#2 lore raw
Quoted 8 lines · On Sat, 30 Jul 2011 13:41:52 -0400 Paul Gortmaker wrote:
Quoted 5 lines · Heiko Carstens

Subject: [PATCH] s390: add missing module.h/export.h includes

From: Heiko Carstens <[email protected]>

Fix several compile errors on s390 caused by splitting module.h.

Thanks, I'll put this on the branch today.

Hi Paul,

Did you see the 10 (I think) patches that I posted in reply to Stephen's linux-next 20110729 announcement?
[that I did not copy you on :( ]

They add linux/module.h or linux/export.h (and 1 for linux/sysfs.h) to multiple files to fix build errors.

You can see them as replies to https://lkml.org/lkml/2011/7/29/52
or I can send them directly to you if you want me to do that...

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#3 lore raw
Quoted 17 lines · Randy Dunlap
Quoted 8 lines · On Sat, 30 Jul 2011 13:41:52 -0400 Paul Gortmaker wrote:
Quoted 5 lines · Heiko Carstens

Subject: [PATCH] s390: add missing module.h/export.h includes

From: Heiko Carstens <[email protected]>

Fix several compile errors on s390 caused by splitting module.h.

Thanks, I'll put this on the branch today.

Hi Paul,

Did you see the 10 (I think) patches that I posted in reply to Stephen's linux-next 20110729 announcement?
[that I did not copy you on :( ]

Quoted 5 lines

They add linux/module.h or linux/export.h (and 1 for linux/sysfs.h) to multiple files to fix build errors.

You can see them as replies to https://lkml.org/lkml/2011/7/29/52
or I can send them directly to you if you want me to do that...

I'll grab them from existing e-mails as appropriate. For any ones that I flag as new files only existing in next, we'll need the maintainer to do the appropriate module.h addition. Since their tree won't have an export.h, they won't have any choice but to take the larger header for now. I plan on doing later sweeps to see if there are any lingering optimizations via "downsizing" more module.h users, so we'll convert any lingering few like this later.

Thanks for chipping in, it turned out to be quite the task in the end. Paul.

Quoted 4 lines

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***