linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines'
@ 2021-09-17 20:30 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-17 20:30 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: llvm, kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 23789 bytes --]

Hi Paul,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ddf21bd8ab984ccaa924f090fc7f515bb6d51414
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date:   12 months ago
config: mips-randconfig-r006-20210917 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes]
   void output_ptreg_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_ptreg_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes]
   void output_task_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_task_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes]
   void output_thread_info_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_info_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes]
   void output_thread_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes]
   void output_mm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_mm_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes]
   void output_sc_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:220:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_sc_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes]
   void output_signal_defined(void)
        ^
   arch/mips/kernel/asm-offsets.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_signal_defined(void)
   ^
   static 
>> arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines' [-Wmissing-prototypes]
   void output_cps_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:392:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_cps_defines(void)
   ^
   static 
   8 warnings generated.
--
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes]
   void output_ptreg_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_ptreg_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes]
   void output_task_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_task_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes]
   void output_thread_info_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_info_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes]
   void output_thread_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes]
   void output_mm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_mm_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes]
   void output_sc_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:220:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_sc_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes]
   void output_signal_defined(void)
        ^
   arch/mips/kernel/asm-offsets.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_signal_defined(void)
   ^
   static 
>> arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines' [-Wmissing-prototypes]
   void output_cps_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:392:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_cps_defines(void)
   ^
   static 
   8 warnings generated.


vim +/output_cps_defines +392 arch/mips/kernel/asm-offsets.c

^1da177e4c3f41 arch/mips/kernel/offset.c      Linus Torvalds    2005-04-16  254  
^1da177e4c3f41 arch/mips/kernel/offset.c      Linus Torvalds    2005-04-16 @255  void output_signal_defined(void)
^1da177e4c3f41 arch/mips/kernel/offset.c      Linus Torvalds    2005-04-16  256  {
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  257  	COMMENT("Linux signal numbers.");
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  258  	DEFINE(_SIGHUP, SIGHUP);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  259  	DEFINE(_SIGINT, SIGINT);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  260  	DEFINE(_SIGQUIT, SIGQUIT);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  261  	DEFINE(_SIGILL, SIGILL);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  262  	DEFINE(_SIGTRAP, SIGTRAP);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  263  	DEFINE(_SIGIOT, SIGIOT);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  264  	DEFINE(_SIGABRT, SIGABRT);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  265  	DEFINE(_SIGEMT, SIGEMT);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  266  	DEFINE(_SIGFPE, SIGFPE);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  267  	DEFINE(_SIGKILL, SIGKILL);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  268  	DEFINE(_SIGBUS, SIGBUS);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  269  	DEFINE(_SIGSEGV, SIGSEGV);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  270  	DEFINE(_SIGSYS, SIGSYS);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  271  	DEFINE(_SIGPIPE, SIGPIPE);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  272  	DEFINE(_SIGALRM, SIGALRM);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  273  	DEFINE(_SIGTERM, SIGTERM);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  274  	DEFINE(_SIGUSR1, SIGUSR1);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  275  	DEFINE(_SIGUSR2, SIGUSR2);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  276  	DEFINE(_SIGCHLD, SIGCHLD);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  277  	DEFINE(_SIGPWR, SIGPWR);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  278  	DEFINE(_SIGWINCH, SIGWINCH);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  279  	DEFINE(_SIGURG, SIGURG);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  280  	DEFINE(_SIGIO, SIGIO);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  281  	DEFINE(_SIGSTOP, SIGSTOP);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  282  	DEFINE(_SIGTSTP, SIGTSTP);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  283  	DEFINE(_SIGCONT, SIGCONT);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  284  	DEFINE(_SIGTTIN, SIGTTIN);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  285  	DEFINE(_SIGTTOU, SIGTTOU);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  286  	DEFINE(_SIGVTALRM, SIGVTALRM);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  287  	DEFINE(_SIGPROF, SIGPROF);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  288  	DEFINE(_SIGXCPU, SIGXCPU);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  289  	DEFINE(_SIGXFSZ, SIGXFSZ);
fd04d2067508d4 arch/mips/kernel/asm-offsets.c Christoph Lameter 2008-04-29  290  	BLANK();
^1da177e4c3f41 arch/mips/kernel/offset.c      Linus Torvalds    2005-04-16  291  }
^1da177e4c3f41 arch/mips/kernel/offset.c      Linus Torvalds    2005-04-16  292  
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  293  #ifdef CONFIG_CPU_CAVIUM_OCTEON
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  294  void output_octeon_cop2_state_defines(void)
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  295  {
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  296  	COMMENT("Octeon specific octeon_cop2_state offsets.");
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  297  	OFFSET(OCTEON_CP2_CRC_IV,	octeon_cop2_state, cop2_crc_iv);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  298  	OFFSET(OCTEON_CP2_CRC_LENGTH,	octeon_cop2_state, cop2_crc_length);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  299  	OFFSET(OCTEON_CP2_CRC_POLY,	octeon_cop2_state, cop2_crc_poly);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  300  	OFFSET(OCTEON_CP2_LLM_DAT,	octeon_cop2_state, cop2_llm_dat);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  301  	OFFSET(OCTEON_CP2_3DES_IV,	octeon_cop2_state, cop2_3des_iv);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  302  	OFFSET(OCTEON_CP2_3DES_KEY,	octeon_cop2_state, cop2_3des_key);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  303  	OFFSET(OCTEON_CP2_3DES_RESULT,	octeon_cop2_state, cop2_3des_result);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  304  	OFFSET(OCTEON_CP2_AES_INP0,	octeon_cop2_state, cop2_aes_inp0);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  305  	OFFSET(OCTEON_CP2_AES_IV,	octeon_cop2_state, cop2_aes_iv);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  306  	OFFSET(OCTEON_CP2_AES_KEY,	octeon_cop2_state, cop2_aes_key);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  307  	OFFSET(OCTEON_CP2_AES_KEYLEN,	octeon_cop2_state, cop2_aes_keylen);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  308  	OFFSET(OCTEON_CP2_AES_RESULT,	octeon_cop2_state, cop2_aes_result);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  309  	OFFSET(OCTEON_CP2_GFM_MULT,	octeon_cop2_state, cop2_gfm_mult);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  310  	OFFSET(OCTEON_CP2_GFM_POLY,	octeon_cop2_state, cop2_gfm_poly);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  311  	OFFSET(OCTEON_CP2_GFM_RESULT,	octeon_cop2_state, cop2_gfm_result);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  312  	OFFSET(OCTEON_CP2_HSH_DATW,	octeon_cop2_state, cop2_hsh_datw);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  313  	OFFSET(OCTEON_CP2_HSH_IVW,	octeon_cop2_state, cop2_hsh_ivw);
6b3a287e6351b0 arch/mips/kernel/asm-offsets.c David Daney       2015-01-15  314  	OFFSET(OCTEON_CP2_SHA3,		octeon_cop2_state, cop2_sha3);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  315  	OFFSET(THREAD_CP2,	task_struct, thread.cp2);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  316  	OFFSET(THREAD_CVMSEG,	task_struct, thread.cvmseg.cvmseg);
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  317  	BLANK();
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  318  }
babed555695fad arch/mips/kernel/asm-offsets.c David Daney       2008-12-11  319  #endif
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  320  
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  321  #ifdef CONFIG_HIBERNATION
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  322  void output_pbe_defines(void)
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  323  {
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  324  	COMMENT(" Linux struct pbe offsets. ");
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  325  	OFFSET(PBE_ADDRESS, pbe, address);
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  326  	OFFSET(PBE_ORIG_ADDRESS, pbe, orig_address);
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  327  	OFFSET(PBE_NEXT, pbe, next);
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  328  	DEFINE(PBE_SIZE, sizeof(struct pbe));
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  329  	BLANK();
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  330  }
363c55cae53742 arch/mips/kernel/asm-offsets.c Wu Zhangjin       2009-06-04  331  #endif
12e25f8e1920b1 arch/mips/kernel/asm-offsets.c Sanjay Lal        2012-11-21  332  
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  333  #ifdef CONFIG_CPU_PM
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  334  void output_pm_defines(void)
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  335  {
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  336  	COMMENT(" PM offsets. ");
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  337  #ifdef CONFIG_EVA
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  338  	OFFSET(SSS_SEGCTL0,	mips_static_suspend_state, segctl[0]);
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  339  	OFFSET(SSS_SEGCTL1,	mips_static_suspend_state, segctl[1]);
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  340  	OFFSET(SSS_SEGCTL2,	mips_static_suspend_state, segctl[2]);
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  341  #endif
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  342  	OFFSET(SSS_SP,		mips_static_suspend_state, sp);
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  343  	BLANK();
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  344  }
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  345  #endif
74e91335190c62 arch/mips/kernel/asm-offsets.c James Hogan       2014-03-04  346  
2725f3778fddb7 arch/mips/kernel/asm-offsets.c Paul Burton       2018-11-07  347  #ifdef CONFIG_MIPS_FP_SUPPORT
12e25f8e1920b1 arch/mips/kernel/asm-offsets.c Sanjay Lal        2012-11-21  348  void output_kvm_defines(void)
12e25f8e1920b1 arch/mips/kernel/asm-offsets.c Sanjay Lal        2012-11-21  349  {
9165dabb2500b3 arch/mips/kernel/asm-offsets.c Masanari Iida     2016-09-17  350  	COMMENT(" KVM/MIPS Specific offsets. ");
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  351  
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  352  	OFFSET(VCPU_FPR0, kvm_vcpu_arch, fpu.fpr[0]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  353  	OFFSET(VCPU_FPR1, kvm_vcpu_arch, fpu.fpr[1]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  354  	OFFSET(VCPU_FPR2, kvm_vcpu_arch, fpu.fpr[2]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  355  	OFFSET(VCPU_FPR3, kvm_vcpu_arch, fpu.fpr[3]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  356  	OFFSET(VCPU_FPR4, kvm_vcpu_arch, fpu.fpr[4]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  357  	OFFSET(VCPU_FPR5, kvm_vcpu_arch, fpu.fpr[5]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  358  	OFFSET(VCPU_FPR6, kvm_vcpu_arch, fpu.fpr[6]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  359  	OFFSET(VCPU_FPR7, kvm_vcpu_arch, fpu.fpr[7]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  360  	OFFSET(VCPU_FPR8, kvm_vcpu_arch, fpu.fpr[8]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  361  	OFFSET(VCPU_FPR9, kvm_vcpu_arch, fpu.fpr[9]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  362  	OFFSET(VCPU_FPR10, kvm_vcpu_arch, fpu.fpr[10]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  363  	OFFSET(VCPU_FPR11, kvm_vcpu_arch, fpu.fpr[11]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  364  	OFFSET(VCPU_FPR12, kvm_vcpu_arch, fpu.fpr[12]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  365  	OFFSET(VCPU_FPR13, kvm_vcpu_arch, fpu.fpr[13]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  366  	OFFSET(VCPU_FPR14, kvm_vcpu_arch, fpu.fpr[14]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  367  	OFFSET(VCPU_FPR15, kvm_vcpu_arch, fpu.fpr[15]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  368  	OFFSET(VCPU_FPR16, kvm_vcpu_arch, fpu.fpr[16]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  369  	OFFSET(VCPU_FPR17, kvm_vcpu_arch, fpu.fpr[17]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  370  	OFFSET(VCPU_FPR18, kvm_vcpu_arch, fpu.fpr[18]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  371  	OFFSET(VCPU_FPR19, kvm_vcpu_arch, fpu.fpr[19]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  372  	OFFSET(VCPU_FPR20, kvm_vcpu_arch, fpu.fpr[20]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  373  	OFFSET(VCPU_FPR21, kvm_vcpu_arch, fpu.fpr[21]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  374  	OFFSET(VCPU_FPR22, kvm_vcpu_arch, fpu.fpr[22]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  375  	OFFSET(VCPU_FPR23, kvm_vcpu_arch, fpu.fpr[23]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  376  	OFFSET(VCPU_FPR24, kvm_vcpu_arch, fpu.fpr[24]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  377  	OFFSET(VCPU_FPR25, kvm_vcpu_arch, fpu.fpr[25]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  378  	OFFSET(VCPU_FPR26, kvm_vcpu_arch, fpu.fpr[26]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  379  	OFFSET(VCPU_FPR27, kvm_vcpu_arch, fpu.fpr[27]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  380  	OFFSET(VCPU_FPR28, kvm_vcpu_arch, fpu.fpr[28]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  381  	OFFSET(VCPU_FPR29, kvm_vcpu_arch, fpu.fpr[29]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  382  	OFFSET(VCPU_FPR30, kvm_vcpu_arch, fpu.fpr[30]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  383  	OFFSET(VCPU_FPR31, kvm_vcpu_arch, fpu.fpr[31]);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  384  
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  385  	OFFSET(VCPU_FCR31, kvm_vcpu_arch, fpu.fcr31);
539cb89fbdfe08 arch/mips/kernel/asm-offsets.c James Hogan       2015-03-05  386  	OFFSET(VCPU_MSA_CSR, kvm_vcpu_arch, fpu.msacsr);
98e91b8457d81f arch/mips/kernel/asm-offsets.c James Hogan       2014-11-18  387  	BLANK();
12e25f8e1920b1 arch/mips/kernel/asm-offsets.c Sanjay Lal        2012-11-21  388  }
2725f3778fddb7 arch/mips/kernel/asm-offsets.c Paul Burton       2018-11-07  389  #endif
0ee958e102b62b arch/mips/kernel/asm-offsets.c Paul Burton       2014-01-15  390  
0ee958e102b62b arch/mips/kernel/asm-offsets.c Paul Burton       2014-01-15  391  #ifdef CONFIG_MIPS_CPS
0ee958e102b62b arch/mips/kernel/asm-offsets.c Paul Burton       2014-01-15 @392  void output_cps_defines(void)

:::::: The code at line 392 was first introduced by commit
:::::: 0ee958e102b62b418c2fb46c3439d4262067a5fc MIPS: Coherent Processing System SMP implementation

:::::: TO: Paul Burton <paul.burton@imgtec.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33300 bytes --]

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

* arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines'
@ 2021-11-05 16:42 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-05 16:42 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: llvm, kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 10875 bytes --]

Hi Paul,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date:   1 year, 2 months ago
config: mips-randconfig-r036-20211020 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9660563950aaed54020bfdf0be07e7096a9553e4)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes]
   void output_ptreg_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_ptreg_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes]
   void output_task_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_task_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes]
   void output_thread_info_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_info_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes]
   void output_thread_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes]
   void output_thread_fpu_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_fpu_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes]
   void output_mm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_mm_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes]
   void output_sc_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:220:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_sc_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes]
   void output_signal_defined(void)
        ^
   arch/mips/kernel/asm-offsets.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_signal_defined(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:334:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes]
   void output_pm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_pm_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:348:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes]
   void output_kvm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:348:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_kvm_defines(void)
   ^
   static 
>> arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines' [-Wmissing-prototypes]
   void output_cps_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:392:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_cps_defines(void)
   ^
   static 
   11 warnings generated.
--
>> arch/mips/kernel/mips-mt.c:50:6: warning: no previous prototype for function 'mips_mt_regdump' [-Wmissing-prototypes]
   void mips_mt_regdump(unsigned long mvpctl)
        ^
   arch/mips/kernel/mips-mt.c:50:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mips_mt_regdump(unsigned long mvpctl)
   ^
   static 
>> arch/mips/kernel/mips-mt.c:159:6: warning: no previous prototype for function 'mips_mt_set_cpuoptions' [-Wmissing-prototypes]
   void mips_mt_set_cpuoptions(void)
        ^
   arch/mips/kernel/mips-mt.c:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mips_mt_set_cpuoptions(void)
   ^
   static 
   2 warnings generated.
--
   arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes]
   void output_ptreg_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_ptreg_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes]
   void output_task_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_task_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes]
   void output_thread_info_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_info_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes]
   void output_thread_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes]
   void output_thread_fpu_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_thread_fpu_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes]
   void output_mm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_mm_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes]
   void output_sc_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:220:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_sc_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes]
   void output_signal_defined(void)
        ^
   arch/mips/kernel/asm-offsets.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_signal_defined(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:334:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes]
   void output_pm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_pm_defines(void)
   ^
   static 
   arch/mips/kernel/asm-offsets.c:348:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes]
   void output_kvm_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:348:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_kvm_defines(void)
   ^
   static 
>> arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines' [-Wmissing-prototypes]
   void output_cps_defines(void)
        ^
   arch/mips/kernel/asm-offsets.c:392:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void output_cps_defines(void)
   ^
   static 
   11 warnings generated.


vim +/output_cps_defines +392 arch/mips/kernel/asm-offsets.c

0ee958e102b62b Paul Burton 2014-01-15  390  
0ee958e102b62b Paul Burton 2014-01-15  391  #ifdef CONFIG_MIPS_CPS
0ee958e102b62b Paul Burton 2014-01-15 @392  void output_cps_defines(void)

:::::: The code at line 392 was first introduced by commit
:::::: 0ee958e102b62b418c2fb46c3439d4262067a5fc MIPS: Coherent Processing System SMP implementation

:::::: TO: Paul Burton <paul.burton@imgtec.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32573 bytes --]

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

end of thread, other threads:[~2021-11-05 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 20:30 arch/mips/kernel/asm-offsets.c:392:6: warning: no previous prototype for function 'output_cps_defines' kernel test robot
2021-11-05 16:42 kernel test robot

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).