[openeuler:OLK-5.10 3386/3386] arch/x86/mm/kasan_init_64.c:128:15: warning: variable 'p' set but not used
tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 69d9543977fd7abe8b555406c7a3e5d64d8292f8 commit: 68ee705da160d123656dcbf9ebd449fb77b54bc0 [3386/3386] scripts: kernel-doc: Fix syntax error due to undeclared args variable config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251208/202512082005.aJ6IUacC-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251208/202512082005.aJ6IUacC-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512082005.aJ6IUacC-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/mm/kasan_init_64.c: In function 'kasan_populate_pgd':
arch/x86/mm/kasan_init_64.c:128:15: warning: variable 'p' set but not used [-Wunused-but-set-variable] 128 | void *p; | ^ arch/x86/mm/kasan_init_64.c: In function 'kasan_shallow_populate_pgds': arch/x86/mm/kasan_init_64.c:270:15: warning: variable 'p' set but not used [-Wunused-but-set-variable] 270 | void *p; | ^ -- lib/test_blackhole_dev.c: In function 'test_blackholedev_init': lib/test_blackhole_dev.c:32:24: warning: variable 'ethh' set but not used [-Wunused-but-set-variable] 32 | struct ethhdr *ethh; | ^~~~ -- drivers/acpi/cppc_acpi.c:450: warning: Function parameter or member 'cpc_pptr' not described in '__acpi_get_psd_map' drivers/acpi/cppc_acpi.c:700: warning: Function parameter or member 'pcc_ss_id' not described in 'pcc_data_alloc' drivers/acpi/cppc_acpi.c:1566: warning: Function parameter or member 'cpu_num' not described in 'cppc_get_transition_latency' -- net/netfilter/nf_tables_api.c:9162: warning: Function parameter or member 'preg' not described in 'nft_parse_register'
vim +/p +128 arch/x86/mm/kasan_init_64.c 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 124 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 125 static void __init kasan_populate_pgd(pgd_t *pgd, unsigned long addr, 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 126 unsigned long end, int nid) 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 127 { 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 @128 void *p; 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 129 p4d_t *p4d; 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 130 unsigned long next; 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 131 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 132 if (pgd_none(*pgd)) { 0d39e2669d7b0f Andrey Ryabinin 2018-01-10 133 p = early_alloc(PAGE_SIZE, nid, true); 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 134 pgd_populate(&init_mm, pgd, p); 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 135 } 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 136 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 137 p4d = p4d_offset(pgd, addr); 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 138 do { 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 139 next = p4d_addr_end(addr, end); 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 140 kasan_populate_p4d(p4d, addr, next, nid); 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 141 } while (p4d++, addr = next, addr != end); 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 142 } 2aeb07365bcd48 Andrey Ryabinin 2017-11-15 143 :::::: The code at line 128 was first introduced by commit :::::: 2aeb07365bcd489620f71390a7d2031cd4dfb83e x86/mm/kasan: Don't use vmemmap_populate() to initialize shadow :::::: TO: Andrey Ryabinin <aryabinin@virtuozzo.com> :::::: CC: Ingo Molnar <mingo@kernel.org> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot