* [song-md:module_alloc_test 5/6] arch/powerpc/kernel/module.c:108:8: error: unused variable 'ptr'
@ 2023-05-19 10:41 kernel test robot
2023-05-19 11:05 ` Guoqing Jiang
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-05-19 10:41 UTC (permalink / raw)
To: Song Liu; +Cc: llvm, oe-kbuild-all, linux-raid
Hi Song,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git module_alloc_test
head: 7b05e9e4784401342805814b52f3dab621fdb1d1
commit: d4dbd22faf1717ce798327b60fc98cd5b7628ec8 [5/6] powerpc/module: use module_alloc_type
config: powerpc-mpc836x_rdk_defconfig (https://download.01.org/0day-ci/archive/20230519/202305191808.4xsaLKSZ-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/song/md.git/commit/?id=d4dbd22faf1717ce798327b60fc98cd5b7628ec8
git remote add song-md git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git
git fetch --no-tags song-md module_alloc_test
git checkout d4dbd22faf1717ce798327b60fc98cd5b7628ec8
# 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=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305191808.4xsaLKSZ-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/kernel/module.c:108:8: error: unused variable 'ptr' [-Werror,-Wunused-variable]
void *ptr = NULL;
^
1 error generated.
vim +/ptr +108 arch/powerpc/kernel/module.c
d4dbd22faf1717 Song Liu 2023-05-17 98
d4dbd22faf1717 Song Liu 2023-05-17 99 void __init module_alloc_type_init(struct mod_allocators *allocators)
2ec13df167040c Christophe Leroy 2021-04-01 100 {
4fcc636615b1a3 Jordan Niethe 2021-06-09 101 pgprot_t prot = strict_module_rwx_enabled() ? PAGE_KERNEL : PAGE_KERNEL_EXEC;
d4dbd22faf1717 Song Liu 2023-05-17 102 struct mod_alloc_params *params = &powerpc_mod_type_allocator.params;
d4dbd22faf1717 Song Liu 2023-05-17 103 struct vmalloc_params *vmp = ¶ms->vmp[0];
d4dbd22faf1717 Song Liu 2023-05-17 104 int i;
4fcc636615b1a3 Jordan Niethe 2021-06-09 105
8abddd968a303d Nicholas Piggin 2021-05-03 106 #ifdef MODULES_VADDR
2ec13df167040c Christophe Leroy 2021-04-01 107 unsigned long limit = (unsigned long)_etext - SZ_32M;
2ec13df167040c Christophe Leroy 2021-04-01 @108 void *ptr = NULL;
:::::: The code at line 108 was first introduced by commit
:::::: 2ec13df167040cd153c25c4d96d0ffc573ac4c40 powerpc/modules: Load modules closer to kernel text
:::::: TO: Christophe Leroy <christophe.leroy@csgroup.eu>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [song-md:module_alloc_test 5/6] arch/powerpc/kernel/module.c:108:8: error: unused variable 'ptr'
2023-05-19 10:41 [song-md:module_alloc_test 5/6] arch/powerpc/kernel/module.c:108:8: error: unused variable 'ptr' kernel test robot
@ 2023-05-19 11:05 ` Guoqing Jiang
2023-05-23 18:35 ` Song Liu
0 siblings, 1 reply; 3+ messages in thread
From: Guoqing Jiang @ 2023-05-19 11:05 UTC (permalink / raw)
To: kernel test robot, Song Liu; +Cc: llvm, oe-kbuild-all, linux-raid
On 5/19/23 18:41, kernel test robot wrote:
> Hi Song,
>
> FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
>
> tree: git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git module_alloc_test
Could you only post test results for md-next/md-fixes branches to raid
list? Since this is
obvious irrelevant to the list.
Thanks,
Guoqing
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [song-md:module_alloc_test 5/6] arch/powerpc/kernel/module.c:108:8: error: unused variable 'ptr'
2023-05-19 11:05 ` Guoqing Jiang
@ 2023-05-23 18:35 ` Song Liu
0 siblings, 0 replies; 3+ messages in thread
From: Song Liu @ 2023-05-23 18:35 UTC (permalink / raw)
To: Guoqing Jiang; +Cc: kernel test robot, llvm, oe-kbuild-all, linux-raid
On Fri, May 19, 2023 at 4:05 AM Guoqing Jiang <guoqing.jiang@linux.dev> wrote:
>
>
>
> On 5/19/23 18:41, kernel test robot wrote:
> > Hi Song,
> >
> > FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
> >
> > tree: git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git module_alloc_test
>
> Could you only post test results for md-next/md-fixes branches to raid
> list? Since this is
> obvious irrelevant to the list.
Created https://github.com/intel/lkp-tests/pull/303 to silent these reports.
Sorry for the noise.
Thank,
Song
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-23 18:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-19 10:41 [song-md:module_alloc_test 5/6] arch/powerpc/kernel/module.c:108:8: error: unused variable 'ptr' kernel test robot
2023-05-19 11:05 ` Guoqing Jiang
2023-05-23 18:35 ` Song Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).