linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Xu <peterx@redhat.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Huang, Ying" <ying.huang@intel.com>
Subject: [linux-next:master 4318/4736] arch/x86/mm/init.c:1057:15: warning: no previous prototype for 'arch_max_swapfile_size'
Date: Sat, 3 Sep 2022 07:32:02 +0800	[thread overview]
Message-ID: <202209030759.1ODqXm2p-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e47eb90a0a9ae20b82635b9b99a8d0979b757ad8
commit: c21e4d92cbb920b50a809409bc56c6ca4f09e7bf [4318/4736] mm/swap: cache maximum swapfile size when init swap
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220903/202209030759.1ODqXm2p-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c21e4d92cbb920b50a809409bc56c6ca4f09e7bf
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout c21e4d92cbb920b50a809409bc56c6ca4f09e7bf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/mm/ mm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> arch/x86/mm/init.c:1057:15: warning: no previous prototype for 'arch_max_swapfile_size' [-Wmissing-prototypes]
    1057 | unsigned long arch_max_swapfile_size(void)
         |               ^~~~~~~~~~~~~~~~~~~~~~
--
>> mm/swapfile.c:2820:22: warning: no previous prototype for 'arch_max_swapfile_size' [-Wmissing-prototypes]
    2820 | __weak unsigned long arch_max_swapfile_size(void)
         |                      ^~~~~~~~~~~~~~~~~~~~~~


vim +/arch_max_swapfile_size +1057 arch/x86/mm/init.c

  1055	
  1056	#ifdef CONFIG_SWAP
> 1057	unsigned long arch_max_swapfile_size(void)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


             reply	other threads:[~2022-09-02 23:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-02 23:32 kernel test robot [this message]
2022-09-04 17:35 ` Peter Xu

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=202209030759.1ODqXm2p-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=peterx@redhat.com \
    --cc=ying.huang@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox