All of lore.kernel.org
 help / color / mirror / Atom feed
* [mips-linux:mips-next 76/76] arch/mips/kernel/traps.c:1904:17: warning: no previous prototype for 'do_gsexc'
@ 2020-07-31 23:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-31 23:12 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head:   bc6e8dc112133a60efbede8acde36dd5d1e748a1
commit: bc6e8dc112133a60efbede8acde36dd5d1e748a1 [76/76] MIPS: handle Loongson-specific GSExc exception
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
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
        git checkout bc6e8dc112133a60efbede8acde36dd5d1e748a1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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/traps.c:438:17: warning: no previous prototype for 'do_be' [-Wmissing-prototypes]
     438 | asmlinkage void do_be(struct pt_regs *regs)
         |                 ^~~~~
   arch/mips/kernel/traps.c:741:17: warning: no previous prototype for 'do_ov' [-Wmissing-prototypes]
     741 | asmlinkage void do_ov(struct pt_regs *regs)
         |                 ^~~~~
   arch/mips/kernel/traps.c:865:17: warning: no previous prototype for 'do_fpe' [-Wmissing-prototypes]
     865 | asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
         |                 ^~~~~~
   arch/mips/kernel/traps.c:1018:17: warning: no previous prototype for 'do_bp' [-Wmissing-prototypes]
    1018 | asmlinkage void do_bp(struct pt_regs *regs)
         |                 ^~~~~
   arch/mips/kernel/traps.c:1110:17: warning: no previous prototype for 'do_tr' [-Wmissing-prototypes]
    1110 | asmlinkage void do_tr(struct pt_regs *regs)
         |                 ^~~~~
   arch/mips/kernel/traps.c:1152:17: warning: no previous prototype for 'do_ri' [-Wmissing-prototypes]
    1152 | asmlinkage void do_ri(struct pt_regs *regs)
         |                 ^~~~~
   arch/mips/kernel/traps.c:1391:17: warning: no previous prototype for 'do_cpu' [-Wmissing-prototypes]
    1391 | asmlinkage void do_cpu(struct pt_regs *regs)
         |                 ^~~~~~
   arch/mips/kernel/traps.c:1496:17: warning: no previous prototype for 'do_msa_fpe' [-Wmissing-prototypes]
    1496 | asmlinkage void do_msa_fpe(struct pt_regs *regs, unsigned int msacsr)
         |                 ^~~~~~~~~~
   arch/mips/kernel/traps.c:1516:17: warning: no previous prototype for 'do_msa' [-Wmissing-prototypes]
    1516 | asmlinkage void do_msa(struct pt_regs *regs)
         |                 ^~~~~~
   arch/mips/kernel/traps.c:1537:17: warning: no previous prototype for 'do_mdmx' [-Wmissing-prototypes]
    1537 | asmlinkage void do_mdmx(struct pt_regs *regs)
         |                 ^~~~~~~
   arch/mips/kernel/traps.c:1549:17: warning: no previous prototype for 'do_watch' [-Wmissing-prototypes]
    1549 | asmlinkage void do_watch(struct pt_regs *regs)
         |                 ^~~~~~~~
   arch/mips/kernel/traps.c:1576:17: warning: no previous prototype for 'do_mcheck' [-Wmissing-prototypes]
    1576 | asmlinkage void do_mcheck(struct pt_regs *regs)
         |                 ^~~~~~~~~
   arch/mips/kernel/traps.c: In function 'do_mcheck':
   arch/mips/kernel/traps.c:1579:17: warning: variable 'prev_state' set but not used [-Wunused-but-set-variable]
    1579 |  enum ctx_state prev_state;
         |                 ^~~~~~~~~~
   arch/mips/kernel/traps.c: At top level:
   arch/mips/kernel/traps.c:1607:17: warning: no previous prototype for 'do_mt' [-Wmissing-prototypes]
    1607 | asmlinkage void do_mt(struct pt_regs *regs)
         |                 ^~~~~
   arch/mips/kernel/traps.c:1643:17: warning: no previous prototype for 'do_dsp' [-Wmissing-prototypes]
    1643 | asmlinkage void do_dsp(struct pt_regs *regs)
         |                 ^~~~~~
   arch/mips/kernel/traps.c:1651:17: warning: no previous prototype for 'do_reserved' [-Wmissing-prototypes]
    1651 | asmlinkage void do_reserved(struct pt_regs *regs)
         |                 ^~~~~~~~~~~
   arch/mips/kernel/traps.c:1827:17: warning: no previous prototype for 'cache_parity_error' [-Wmissing-prototypes]
    1827 | asmlinkage void cache_parity_error(void)
         |                 ^~~~~~~~~~~~~~~~~~
   arch/mips/kernel/traps.c:1875:17: warning: no previous prototype for 'do_ftlb' [-Wmissing-prototypes]
    1875 | asmlinkage void do_ftlb(void)
         |                 ^~~~~~~
>> arch/mips/kernel/traps.c:1904:17: warning: no previous prototype for 'do_gsexc' [-Wmissing-prototypes]
    1904 | asmlinkage void do_gsexc(struct pt_regs *regs, u32 diag1)
         |                 ^~~~~~~~
   arch/mips/kernel/traps.c:1939:6: warning: no previous prototype for 'ejtag_exception_handler' [-Wmissing-prototypes]
    1939 | void ejtag_exception_handler(struct pt_regs *regs)
         |      ^~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/kernel/traps.c:1984:17: warning: no previous prototype for 'nmi_exception_handler' [-Wmissing-prototypes]
    1984 | void __noreturn nmi_exception_handler(struct pt_regs *regs)
         |                 ^~~~~~~~~~~~~~~~~~~~~

vim +/do_gsexc +1904 arch/mips/kernel/traps.c

  1903	
> 1904	asmlinkage void do_gsexc(struct pt_regs *regs, u32 diag1)
  1905	{
  1906		u32 exccode = (diag1 & LOONGSON_DIAG1_EXCCODE) >>
  1907				LOONGSON_DIAG1_EXCCODE_SHIFT;
  1908		enum ctx_state prev_state;
  1909	
  1910		prev_state = exception_enter();
  1911	
  1912		switch (exccode) {
  1913		case 0x08:
  1914			/* Undocumented exception, will trigger on certain
  1915			 * also-undocumented instructions accessible from userspace.
  1916			 * Processor state is not otherwise corrupted, but currently
  1917			 * we don't know how to proceed. Maybe there is some
  1918			 * undocumented control flag to enable the instructions?
  1919			 */
  1920			force_sig(SIGILL);
  1921			break;
  1922	
  1923		default:
  1924			/* None of the other exceptions, documented or not, have
  1925			 * further details given; none are encountered in the wild
  1926			 * either. Panic in case some of them turn out to be fatal.
  1927			 */
  1928			show_regs(regs);
  1929			panic("Unhandled Loongson exception - GSCause = %08x", diag1);
  1930		}
  1931	
  1932		exception_exit(prev_state);
  1933	}
  1934	

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

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

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

only message in thread, other threads:[~2020-07-31 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 23:12 [mips-linux:mips-next 76/76] arch/mips/kernel/traps.c:1904:17: warning: no previous prototype for 'do_gsexc' 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.