All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ardb:arm64-ro-page-tables-pkvm 10/35] arch/arm64/kvm/hyp/nvhe/early_alloc.c:18:15: warning: no previous prototype for 'hyp_early_alloc_nr_pages'
Date: Tue, 23 Feb 2021 02:24:26 +0800	[thread overview]
Message-ID: <202102230225.nAz3E3ip-lkp@intel.com> (raw)

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

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head:   147019c64ba96b2f39f3e952d2833db8a3f6395b
commit: 266772be0e13ff4b230105c58f217481d9c23d43 [10/35] KVM: arm64: Introduce an early Hyp page allocator
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
        # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=266772be0e13ff4b230105c58f217481d9c23d43
        git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
        git fetch --no-tags ardb arm64-ro-page-tables-pkvm
        git checkout 266772be0e13ff4b230105c58f217481d9c23d43
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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/kvm/hyp/nvhe/early_alloc.c:18:15: warning: no previous prototype for 'hyp_early_alloc_nr_pages' [-Wmissing-prototypes]
      18 | unsigned long hyp_early_alloc_nr_pages(void)
         |               ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:25:7: warning: no previous prototype for 'hyp_early_alloc_contig' [-Wmissing-prototypes]
      25 | void *hyp_early_alloc_contig(unsigned int nr_pages)
         |       ^~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:46:7: warning: no previous prototype for 'hyp_early_alloc_page' [-Wmissing-prototypes]
      46 | void *hyp_early_alloc_page(void *arg)
         |       ^~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/early_alloc.c:51:6: warning: no previous prototype for 'hyp_early_alloc_init' [-Wmissing-prototypes]
      51 | void hyp_early_alloc_init(unsigned long virt, unsigned long size)
         |      ^~~~~~~~~~~~~~~~~~~~


vim +/hyp_early_alloc_nr_pages +18 arch/arm64/kvm/hyp/nvhe/early_alloc.c

    17	
  > 18	unsigned long hyp_early_alloc_nr_pages(void)
    19	{
    20		return (cur - base) >> PAGE_SHIFT;
    21	}
    22	
    23	extern void clear_page(void *to);
    24	
  > 25	void *hyp_early_alloc_contig(unsigned int nr_pages)
    26	{
    27		unsigned long ret = cur, i, p;
    28	
    29		if (!nr_pages)
    30			return NULL;
    31	
    32		cur += nr_pages << PAGE_SHIFT;
    33		if (cur > end) {
    34			cur = ret;
    35			return NULL;
    36		}
    37	
    38		for (i = 0; i < nr_pages; i++) {
    39			p = ret + (i << PAGE_SHIFT);
    40			clear_page((void *)(p));
    41		}
    42	
    43		return (void *)ret;
    44	}
    45	
  > 46	void *hyp_early_alloc_page(void *arg)
    47	{
    48		return hyp_early_alloc_contig(1);
    49	}
    50	
  > 51	void hyp_early_alloc_init(unsigned long virt, unsigned long size)

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

                 reply	other threads:[~2021-02-22 18:24 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=202102230225.nAz3E3ip-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.