archive mirror
 help / color / mirror / Atom feed
* [joro:sev-es-kexec 1/12] kernel/kexec.c:198:13: warning: no previous prototype for function 'arch_kexec_supported'
@ 2021-07-04  4:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-04  4:04 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: clang-built-linux, kbuild-all, linux-kernel

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

tree: sev-es-kexec
head:   3467dc3cdbe65c619cd9b5c8db47da63b0655300
commit: 4eeabbfae0a6163e935a6462acc02fe4f17d3680 [1/12] kexec: Allow architecture code to opt-out at runtime
config: powerpc-randconfig-r005-20210702 (attached as .config)
compiler: clang version 13.0.0 ( 9eb613b2de3163686b1a4bd1160f15ac56a4b083)
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        git remote add joro
        git fetch --no-tags joro sev-es-kexec
        git checkout 4eeabbfae0a6163e935a6462acc02fe4f17d3680
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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

All warnings (new ones prefixed by >>):

   In file included from kernel/kexec.c:10:
   In file included from include/linux/mm.h:9:
   In file included from include/linux/mmdebug.h:5:
   In file included from include/linux/bug.h:5:
   In file included from arch/powerpc/include/asm/bug.h:109:
   In file included from include/asm-generic/bug.h:20:
   In file included from include/linux/kernel.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
   <built-in>:308:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
>> kernel/kexec.c:198:13: warning: no previous prototype for function 'arch_kexec_supported' [-Wmissing-prototypes]
   bool __weak arch_kexec_supported(void)
   kernel/kexec.c:198:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool __weak arch_kexec_supported(void)
   2 warnings generated.

vim +/arch_kexec_supported +198 kernel/kexec.c

   177	/*
   178	 * Exec Kernel system call: for obvious reasons only root may call it.
   179	 *
   180	 * This call breaks up into three pieces.
   181	 * - A generic part which loads the new kernel from the current
   182	 *   address space, and very carefully places the data in the
   183	 *   allocated pages.
   184	 *
   185	 * - A generic part that interacts with the kernel and tells all of
   186	 *   the devices to shut down.  Preventing on-going dmas, and placing
   187	 *   the devices in a consistent state so a later kernel can
   188	 *   reinitialize them.
   189	 *
   190	 * - A machine specific part that includes the syscall number
   191	 *   and then copies the image to it's final destination.  And
   192	 *   jumps into the image at entry.
   193	 *
   194	 * kexec does not sync, or unmount filesystems so if you need
   195	 * that to happen you need to do that yourself.
   196	 */
 > 198	bool __weak arch_kexec_supported(void)
   199	{
   200		return true;
   201	}

0-DAY CI Kernel Test Service, Intel Corporation

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

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

only message in thread, other threads:[~2021-07-04  4:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04  4:04 [joro:sev-es-kexec 1/12] kernel/kexec.c:198:13: warning: no previous prototype for function 'arch_kexec_supported' 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).