[akpm-mm:mm-nonmm-unstable 43/43] arch/powerpc/kernel/nvram_64.c:79:17: error: initialization of 'void (*)(struct kmsg_dumper *, enum kmsg_dump_reason, const char *)' from incompatible pointer type 'void (*)(struct kmsg_dumper *, enum kmsg_dump_reason)'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
head:   7e72bb7504d1192ab89809f6192dba1b06f4fa51
commit: 7e72bb7504d1192ab89809f6192dba1b06f4fa51 [43/43] printk: add a short description string to kmsg_dump()
config: powerpc64-randconfig-001-20240626 (https://download.01.org/0day-ci/archive/20240627/202406270036.zXljQCFL-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240627/202406270036.zXljQCFL-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406270036.zXljQCFL-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

>> arch/powerpc/kernel/nvram_64.c:79:17: error: initialization of 'void (*)(struct kmsg_dumper *, enum kmsg_dump_reason,  const char *)' from incompatible pointer type 'void (*)(struct kmsg_dumper *, enum kmsg_dump_reason)' [-Werror=incompatible-pointer-types]
      79 |         .dump = oops_to_nvram
         |                 ^~~~~~~~~~~~~
   arch/powerpc/kernel/nvram_64.c:79:17: note: (near initialization for 'nvram_kmsg_dumper.dump')
>> arch/powerpc/kernel/nvram_64.c:645:13: error: conflicting types for 'oops_to_nvram'; have 'void(struct kmsg_dumper *, enum kmsg_dump_reason,  const char *)'
     645 | static void oops_to_nvram(struct kmsg_dumper *dumper,
         |             ^~~~~~~~~~~~~
   arch/powerpc/kernel/nvram_64.c:75:13: note: previous declaration of 'oops_to_nvram' with type 'void(struct kmsg_dumper *, enum kmsg_dump_reason)'
      75 | static void oops_to_nvram(struct kmsg_dumper *dumper,
         |             ^~~~~~~~~~~~~
>> arch/powerpc/kernel/nvram_64.c:75:13: warning: 'oops_to_nvram' used but never defined
>> arch/powerpc/kernel/nvram_64.c:645:13: warning: 'oops_to_nvram' defined but not used [-Wunused-function]
     645 | static void oops_to_nvram(struct kmsg_dumper *dumper,
         |             ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +79 arch/powerpc/kernel/nvram_64.c

78989f0a5592182 Hari Bathini 2015-02-06  74  
78989f0a5592182 Hari Bathini 2015-02-06 @75  static void oops_to_nvram(struct kmsg_dumper *dumper,
78989f0a5592182 Hari Bathini 2015-02-06  76  			  enum kmsg_dump_reason reason);
78989f0a5592182 Hari Bathini 2015-02-06  77  
78989f0a5592182 Hari Bathini 2015-02-06  78  static struct kmsg_dumper nvram_kmsg_dumper = {
78989f0a5592182 Hari Bathini 2015-02-06 @79  	.dump = oops_to_nvram
78989f0a5592182 Hari Bathini 2015-02-06  80  };
78989f0a5592182 Hari Bathini 2015-02-06  81  

:::::: The code at line 79 was first introduced by commit
:::::: 78989f0a5592182a3d45d869ddaafc71c8f673af powerpc/nvram: Move generic code for nvram and pstore

:::::: TO: Hari Bathini <hbathini@xxxxxxxxxxxxxxxxxx>
:::::: CC: Michael Ellerman <mpe@xxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux