[song-md:new_module_alloc_build_test 1/1] arch/arm64/kernel/module-plts.c:70:28: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'unsigned long'

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

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git new_module_alloc_build_test
head:   6231a21c672da8ce79a614c9a286285844e41ef3
commit: 6231a21c672da8ce79a614c9a286285844e41ef3 [1/1] module: replace module_layout with module_memory
config: arm64-buildonly-randconfig-r005-20230204 (https://download.01.org/0day-ci/archive/20230204/202302040305.Oqcm80Vb-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/song/md.git/commit/?id=6231a21c672da8ce79a614c9a286285844e41ef3
        git remote add song-md git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git
        git fetch --no-tags song-md new_module_alloc_build_test
        git checkout 6231a21c672da8ce79a614c9a286285844e41ef3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> arch/arm64/kernel/module-plts.c:70:28: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'unsigned long' [-Wint-conversion]
           return within_module_init(loc, mod);
                                     ^~~
   include/linux/module.h:622:53: note: passing argument to parameter 'addr' here
   static inline bool within_module_init(unsigned long addr,
                                                       ^
   arch/arm64/kernel/module-plts.c:291:5: warning: no previous prototype for function 'module_frob_arch_sections' [-Wmissing-prototypes]
   int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
       ^
   arch/arm64/kernel/module-plts.c:291:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
   ^
   static 
   1 warning and 1 error generated.


vim +70 arch/arm64/kernel/module-plts.c

    67	
    68	static bool in_init(const struct module *mod, void *loc)
    69	{
  > 70		return within_module_init(loc, mod);
    71	}
    72	

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



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux