All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [android-common:android13-5.10 7/51] arch/arm64/kernel/machine_kexec.c:62:5: warning: no previous prototype for function 'machine_kexec_post_load'
Date: Wed, 14 Jul 2021 02:29:19 +0800	[thread overview]
Message-ID: <202107140213.S7dABDti-lkp@intel.com> (raw)

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

tree:   https://android.googlesource.com/kernel/common android13-5.10
head:   663bbfa2a48a042ef172114830ccf6ad1a16677c
commit: bdc7abb880337dc68bd400d3a69df9d61275e402 [7/51] UPSTREAM: arm64: kexec: move relocation function setup
config: arm64-randconfig-r003-20210713 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android13-5.10
        git checkout bdc7abb880337dc68bd400d3a69df9d61275e402
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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/arm64/kernel/machine_kexec.c:62:5: warning: no previous prototype for function 'machine_kexec_post_load' [-Wmissing-prototypes]
   int machine_kexec_post_load(struct kimage *kimage)
       ^
   arch/arm64/kernel/machine_kexec.c:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int machine_kexec_post_load(struct kimage *kimage)
   ^
   static 
   arch/arm64/kernel/machine_kexec.c:238:6: warning: no previous prototype for function 'machine_crash_shutdown' [-Wmissing-prototypes]
   void machine_crash_shutdown(struct pt_regs *regs)
        ^
   arch/arm64/kernel/machine_kexec.c:238:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void machine_crash_shutdown(struct pt_regs *regs)
   ^
   static 
   2 warnings generated.


vim +/machine_kexec_post_load +62 arch/arm64/kernel/machine_kexec.c

    61	
  > 62	int machine_kexec_post_load(struct kimage *kimage)
    63	{
    64		void *reloc_code = page_to_virt(kimage->control_code_page);
    65	
    66		memcpy(reloc_code, arm64_relocate_new_kernel,
    67		       arm64_relocate_new_kernel_size);
    68		kimage->arch.kern_reloc = __pa(reloc_code);
    69	
    70		/* Flush the reloc_code in preparation for its execution. */
    71		__flush_dcache_area(reloc_code, arm64_relocate_new_kernel_size);
    72		flush_icache_range((uintptr_t)reloc_code, (uintptr_t)reloc_code +
    73				   arm64_relocate_new_kernel_size);
    74	
    75		return 0;
    76	}
    77	

---
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: 33161 bytes --]

                 reply	other threads:[~2021-07-13 18:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107140213.S7dABDti-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.