Re: [PATCH v2 1/3] MIPS: Remove noreturn attribute for die()

From: Tiezhu Yang
Date: Mon Aug 14 2023 - 02:25:20 EST




On 08/14/2023 01:24 PM, kernel test robot wrote:
Hi Tiezhu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.5-rc6 next-20230809]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Tiezhu-Yang/MIPS-Remove-noreturn-attribute-for-die/20230814-115513
base: linus/master
patch link: https://lore.kernel.org/r/1691985181-28363-2-git-send-email-yangtiezhu%40loongson.cn
patch subject: [PATCH v2 1/3] MIPS: Remove noreturn attribute for die()
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20230814/202308141322.sZl3fv7u-lkp@xxxxxxxxx/config)
compiler: mips-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230814/202308141322.sZl3fv7u-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308141322.sZl3fv7u-lkp@xxxxxxxxx/


...

arch/mips/kernel/traps.c: In function 'die':
arch/mips/kernel/traps.c:426:1: warning: 'noreturn' function does return
426 | }
| ^

Thanks for your report, the follow up patch #2 of this patch series
can silence the above warning.

[PATCH v2 2/3] MIPS: Modify the declaration for die()
https://lore.kernel.org/all/1691985181-28363-3-git-send-email-yangtiezhu@xxxxxxxxxxx/

Thanks,
Tiezhu