mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vasily Averin <vvs@virtuozzo.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, 0day robot <lkp@intel.com>
Subject: include/linux/memcontrol.h:1804:5: warning: no previous prototype for function 'memcg_charge_bulk_pages'
Date: Thu, 14 Oct 2021 23:12:35 +0800	[thread overview]
Message-ID: <202110142327.aSIfSMro-lkp@intel.com> (raw)

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20211014-160451/Vasily-Averin/memcg-enable-memory-accounting-in-__alloc_pages_bulk/20211008-172703
head:   834132e4456c615433314628b950f9dd10406698
commit: 834132e4456c615433314628b950f9dd10406698 memcg: enable memory accounting in __alloc_pages_bulk
date:   7 hours ago
config: hexagon-randconfig-r041-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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://github.com/0day-ci/linux/commit/834132e4456c615433314628b950f9dd10406698
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20211014-160451/Vasily-Averin/memcg-enable-memory-accounting-in-__alloc_pages_bulk/20211008-172703
        git checkout 834132e4456c615433314628b950f9dd10406698
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

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 >>):

   In file included from net/ipv6/af_inet6.c:40:
   In file included from include/linux/icmpv6.h:6:
   In file included from include/linux/ipv6.h:91:
   In file included from include/linux/tcp.h:19:
   In file included from include/net/sock.h:53:
>> include/linux/memcontrol.h:1804:5: warning: no previous prototype for function 'memcg_charge_bulk_pages' [-Wmissing-prototypes]
   int memcg_charge_bulk_pages(gfp_t gfp, int nr_pages,
       ^
   include/linux/memcontrol.h:1804:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int memcg_charge_bulk_pages(gfp_t gfp, int nr_pages,
   ^
   static 
   1 warning generated.
--
   In file included from net/ipv6/ip6_fib.c:28:
   In file included from include/net/ip.h:28:
   In file included from include/net/inet_sock.h:22:
   In file included from include/net/sock.h:53:
>> include/linux/memcontrol.h:1804:5: warning: no previous prototype for function 'memcg_charge_bulk_pages' [-Wmissing-prototypes]
   int memcg_charge_bulk_pages(gfp_t gfp, int nr_pages,
       ^
   include/linux/memcontrol.h:1804:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int memcg_charge_bulk_pages(gfp_t gfp, int nr_pages,
   ^
   static 
   net/ipv6/ip6_fib.c:1377:25: warning: variable 'pn' set but not used [-Wunused-but-set-variable]
           struct fib6_node *fn, *pn = NULL;
                                  ^
   2 warnings generated.


vim +/memcg_charge_bulk_pages +1804 include/linux/memcontrol.h

  1803	
> 1804	int memcg_charge_bulk_pages(gfp_t gfp, int nr_pages,
  1805				    struct list_head *page_list,
  1806				    struct page **page_array)
  1807	{
  1808		return 0;
  1809	}
  1810	#endif /* CONFIG_MEMCG_KMEM */
  1811	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

                 reply	other threads:[~2021-10-14 15:13 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=202110142327.aSIfSMro-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=vvs@virtuozzo.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

Powered by JetHome