All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:openEuler-1.0-LTS 1605/1605] arch/x86/mm/pageattr.c:1787:5: warning: no previous prototype for function 'set_memory_global'
@ 2025-07-01  9:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-01  9:45 UTC (permalink / raw)
  To: kernel; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head:   890108d01fde2c3b6dde4d169b695ce64362f135
commit: eac7073aa69aa1cac819aa712146284f53f642b1 [1605/1605] x86/mm/pti: Clear Global bit more aggressively
config: x86_64-buildonly-randconfig-2001-20250501 (https://download.01.org/0day-ci/archive/20250701/202507011110.QFxtjmpf-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507011110.QFxtjmpf-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/202507011110.QFxtjmpf-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/x86/mm/pageattr.c:170:6: warning: no previous prototype for function 'arch_invalidate_pmem' [-Wmissing-prototypes]
     170 | void arch_invalidate_pmem(void *addr, size_t size)
         |      ^
   arch/x86/mm/pageattr.c:170:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     170 | void arch_invalidate_pmem(void *addr, size_t size)
         | ^
         | static 
   arch/x86/mm/pageattr.c:556:17: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
     556 |         pte_t new_pte, old_pte, *tmp;
         |                        ^
   arch/x86/mm/pageattr.c:1781:5: warning: no previous prototype for function 'set_memory_nonglobal' [-Wmissing-prototypes]
    1781 | int set_memory_nonglobal(unsigned long addr, int numpages)
         |     ^
   arch/x86/mm/pageattr.c:1781:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    1781 | int set_memory_nonglobal(unsigned long addr, int numpages)
         | ^
         | static 
>> arch/x86/mm/pageattr.c:1787:5: warning: no previous prototype for function 'set_memory_global' [-Wmissing-prototypes]
    1787 | int set_memory_global(unsigned long addr, int numpages)
         |     ^
   arch/x86/mm/pageattr.c:1787:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    1787 | int set_memory_global(unsigned long addr, int numpages)
         | ^
         | static 
   4 warnings generated.


vim +/set_memory_global +1787 arch/x86/mm/pageattr.c

  1786	
> 1787	int set_memory_global(unsigned long addr, int numpages)
  1788	{
  1789		return change_page_attr_set(&addr, numpages,
  1790					    __pgprot(_PAGE_GLOBAL), 0);
  1791	}
  1792	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-01  9:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-01  9:45 [openeuler:openEuler-1.0-LTS 1605/1605] arch/x86/mm/pageattr.c:1787:5: warning: no previous prototype for function 'set_memory_global' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.