Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [sysctl:sysctl-testing 8/16] mm/nommu.c:394:12: error: static declaration of 'sysctl_nr_trim_pages' follows non-static declaration
@ 2025-01-14 18:39 kernel test robot
  2025-01-15  8:14 ` yukaixiong
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2025-01-14 18:39 UTC (permalink / raw)
  To: Kaixiong Yu; +Cc: llvm, oe-kbuild-all, Joel Granados, Lorenzo Stoakes

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl.git sysctl-testing
head:   2fc99f285719e0cce8df1fe21479cb9e6626c2fe
commit: 0450345eca3ca45264db9ab09d31281e001236b7 [8/16] mm: nommu: move sysctl to mm/nommu.c
config: arm-randconfig-001-20250115 (https://download.01.org/0day-ci/archive/20250115/202501150216.3RVz44uS-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250115/202501150216.3RVz44uS-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501150216.3RVz44uS-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/nommu.c:394:12: error: static declaration of 'sysctl_nr_trim_pages' follows non-static declaration
   static int sysctl_nr_trim_pages = CONFIG_NOMMU_INITIAL_TRIM_EXCESS;
              ^
   include/linux/mm.h:4082:12: note: previous declaration is here
   extern int sysctl_nr_trim_pages;
              ^
   1 error generated.


vim +/sysctl_nr_trim_pages +394 mm/nommu.c

   393	
 > 394	static int sysctl_nr_trim_pages = CONFIG_NOMMU_INITIAL_TRIM_EXCESS;
   395	

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-16 11:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 18:39 [sysctl:sysctl-testing 8/16] mm/nommu.c:394:12: error: static declaration of 'sysctl_nr_trim_pages' follows non-static declaration kernel test robot
2025-01-15  8:14 ` yukaixiong
2025-01-15 10:55   ` Miguel Ojeda
2025-01-15 14:23     ` Nathan Chancellor
2025-01-16  2:05       ` yukaixiong
2025-01-16 10:58         ` Joel Granados
2025-01-16 11:07           ` yukaixiong
2025-01-16 10:57   ` Joel Granados

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox