From: kernel test robot <lkp@intel.com>
To: Song Liu <song@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-raid@vger.kernel.org
Subject: [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: Sat, 4 Feb 2023 03:26:49 +0800 [thread overview]
Message-ID: <202302040305.Oqcm80Vb-lkp@intel.com> (raw)
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@intel.com/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@intel.com>
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
reply other threads:[~2023-02-03 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302040305.Oqcm80Vb-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox