mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [krzk-github:n/qcom-ufs-opp-cleanups-v2-drv-owner-wip 7/7] include/linux/export.h:19:21: warning: initialization of 'short unsigned int' from 'struct module *' makes integer from pointer without a cast
@ 2022-05-06 20:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-06 20:07 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: kbuild-all, linux-kernel

tree:   https://github.com/krzk/linux n/qcom-ufs-opp-cleanups-v2-drv-owner-wip
head:   17609caecd53df20f631703ea084a70e7735b5d7
commit: 17609caecd53df20f631703ea084a70e7735b5d7 [7/7] WIP
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20220507/202205070404.1O60FSb4-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/krzk/linux/commit/17609caecd53df20f631703ea084a70e7735b5d7
        git remote add krzk-github https://github.com/krzk/linux
        git fetch --no-tags krzk-github n/qcom-ufs-opp-cleanups-v2-drv-owner-wip
        git checkout 17609caecd53df20f631703ea084a70e7735b5d7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/scsi/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/scsi/a4000t.c:29:10: error: 'struct scsi_host_template' has no member named 'module'
      29 |         .module         = THIS_MODULE,
         |          ^~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/preempt.h:10,
                    from arch/m68k/include/asm/irqflags.h:6,
                    from include/linux/irqflags.h:16,
                    from arch/m68k/include/asm/atomic.h:6,
                    from include/linux/atomic.h:7,
                    from include/linux/mm_types_task.h:13,
                    from include/linux/mm_types.h:5,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/scsi/a4000t.c:12:
>> include/linux/export.h:19:21: warning: initialization of 'short unsigned int' from 'struct module *' makes integer from pointer without a cast [-Wint-conversion]
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/a4000t.c:29:27: note: in expansion of macro 'THIS_MODULE'
      29 |         .module         = THIS_MODULE,
         |                           ^~~~~~~~~~~
   include/linux/export.h:19:21: note: (near initialization for 'a4000t_scsi_driver_template.sg_tablesize')
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/a4000t.c:29:27: note: in expansion of macro 'THIS_MODULE'
      29 |         .module         = THIS_MODULE,
         |                           ^~~~~~~~~~~
--
   drivers/scsi/zorro7xx.c:35:10: error: 'struct scsi_host_template' has no member named 'module'
      35 |         .module         = THIS_MODULE,
         |          ^~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/preempt.h:10,
                    from arch/m68k/include/asm/irqflags.h:6,
                    from include/linux/irqflags.h:16,
                    from arch/m68k/include/asm/atomic.h:6,
                    from include/linux/atomic.h:7,
                    from include/linux/mm_types_task.h:13,
                    from include/linux/mm_types.h:5,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/scsi/zorro7xx.c:13:
>> include/linux/export.h:19:21: warning: initialization of 'short unsigned int' from 'struct module *' makes integer from pointer without a cast [-Wint-conversion]
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/zorro7xx.c:35:27: note: in expansion of macro 'THIS_MODULE'
      35 |         .module         = THIS_MODULE,
         |                           ^~~~~~~~~~~
   include/linux/export.h:19:21: note: (near initialization for 'zorro7xx_scsi_driver_template.sg_tablesize')
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/zorro7xx.c:35:27: note: in expansion of macro 'THIS_MODULE'
      35 |         .module         = THIS_MODULE,
         |                           ^~~~~~~~~~~
--
   drivers/scsi/mvme16x_scsi.c:33:10: error: 'struct scsi_host_template' has no member named 'module'
      33 |         .module                 = THIS_MODULE,
         |          ^~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/preempt.h:10,
                    from arch/m68k/include/asm/irqflags.h:6,
                    from include/linux/irqflags.h:16,
                    from arch/m68k/include/asm/atomic.h:6,
                    from include/linux/atomic.h:7,
                    from include/linux/mm_types_task.h:13,
                    from include/linux/mm_types.h:5,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/scsi/mvme16x_scsi.c:10:
>> include/linux/export.h:19:21: warning: initialization of 'short unsigned int' from 'struct module *' makes integer from pointer without a cast [-Wint-conversion]
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/mvme16x_scsi.c:33:35: note: in expansion of macro 'THIS_MODULE'
      33 |         .module                 = THIS_MODULE,
         |                                   ^~~~~~~~~~~
   include/linux/export.h:19:21: note: (near initialization for 'mvme16x_scsi_driver_template.sg_tablesize')
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/mvme16x_scsi.c:33:35: note: in expansion of macro 'THIS_MODULE'
      33 |         .module                 = THIS_MODULE,
         |                                   ^~~~~~~~~~~
--
   drivers/scsi/bvme6000_scsi.c:33:10: error: 'struct scsi_host_template' has no member named 'module'
      33 |         .module                 = THIS_MODULE,
         |          ^~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/preempt.h:10,
                    from arch/m68k/include/asm/irqflags.h:6,
                    from include/linux/irqflags.h:16,
                    from arch/m68k/include/asm/atomic.h:6,
                    from include/linux/atomic.h:7,
                    from include/linux/mm_types_task.h:13,
                    from include/linux/mm_types.h:5,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/scsi/bvme6000_scsi.c:10:
>> include/linux/export.h:19:21: warning: initialization of 'short unsigned int' from 'struct module *' makes integer from pointer without a cast [-Wint-conversion]
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/bvme6000_scsi.c:33:35: note: in expansion of macro 'THIS_MODULE'
      33 |         .module                 = THIS_MODULE,
         |                                   ^~~~~~~~~~~
   include/linux/export.h:19:21: note: (near initialization for 'bvme6000_scsi_driver_template.sg_tablesize')
      19 | #define THIS_MODULE ((struct module *)0)
         |                     ^
   drivers/scsi/bvme6000_scsi.c:33:35: note: in expansion of macro 'THIS_MODULE'
      33 |         .module                 = THIS_MODULE,
         |                                   ^~~~~~~~~~~


vim +19 include/linux/export.h

b67067f1176df6 Nicholas Piggin 2016-08-24   4  
f50169324df4ad Paul Gortmaker  2011-05-23   5  /*
f50169324df4ad Paul Gortmaker  2011-05-23   6   * Export symbols from the kernel to modules.  Forked from module.h
f50169324df4ad Paul Gortmaker  2011-05-23   7   * to reduce the amount of pointless cruft we feed to gcc when only
f50169324df4ad Paul Gortmaker  2011-05-23   8   * exporting a simple symbol or two.
f50169324df4ad Paul Gortmaker  2011-05-23   9   *
b92021b09df70c Rusty Russell   2013-03-15  10   * Try not to add #includes here.  It slows compilation and makes kernel
b92021b09df70c Rusty Russell   2013-03-15  11   * hackers place grumpy comments in header files.
f50169324df4ad Paul Gortmaker  2011-05-23  12   */
f50169324df4ad Paul Gortmaker  2011-05-23  13  
b92021b09df70c Rusty Russell   2013-03-15  14  #ifndef __ASSEMBLY__
f50169324df4ad Paul Gortmaker  2011-05-23  15  #ifdef MODULE
f50169324df4ad Paul Gortmaker  2011-05-23  16  extern struct module __this_module;
f50169324df4ad Paul Gortmaker  2011-05-23  17  #define THIS_MODULE (&__this_module)
f50169324df4ad Paul Gortmaker  2011-05-23  18  #else
f50169324df4ad Paul Gortmaker  2011-05-23 @19  #define THIS_MODULE ((struct module *)0)
f50169324df4ad Paul Gortmaker  2011-05-23  20  #endif
f50169324df4ad Paul Gortmaker  2011-05-23  21  

:::::: The code at line 19 was first introduced by commit
:::::: f50169324df4ad942e544386d136216c8617636a module.h: split out the EXPORT_SYMBOL into export.h

:::::: TO: Paul Gortmaker <paul.gortmaker@windriver.com>
:::::: CC: Paul Gortmaker <paul.gortmaker@windriver.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-06 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 20:07 [krzk-github:n/qcom-ufs-opp-cleanups-v2-drv-owner-wip 7/7] include/linux/export.h:19:21: warning: initialization of 'short unsigned int' from 'struct module *' makes integer from pointer without a cast kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®