mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [bigeasy-staging:memcg 5/5] mm/memcontrol.c:2133:2: warning: #warning Optimisation in place
Date: Thu, 6 Jan 2022 10:02:23 +0800	[thread overview]
Message-ID: <202201060957.kIjdfilS-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git memcg
head:   47e47279015085e921d201c2d7f46f138c55d6f0
commit: 47e47279015085e921d201c2d7f46f138c55d6f0 [5/5] memcg: Kind of micro benchmark.
config: m68k-randconfig-r014-20220105 (https://download.01.org/0day-ci/archive/20220106/202201060957.kIjdfilS-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.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/bigeasy/staging.git/commit/?id=47e47279015085e921d201c2d7f46f138c55d6f0
        git remote add bigeasy-staging https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git
        git fetch --no-tags bigeasy-staging memcg
        git checkout 47e47279015085e921d201c2d7f46f138c55d6f0
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash

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

>> mm/memcontrol.c:2133:2: warning: #warning Optimisation in place [-Wcpp]
    2133 | #warning Optimisation in place
         |  ^~~~~~~


vim +2133 mm/memcontrol.c

  2126	
  2127	struct memcg_stock_pcp {
  2128		/* Protects memcg_stock_pcp */
  2129		local_lock_t stock_lock;
  2130		struct mem_cgroup *cached; /* this never be root cgroup */
  2131		unsigned int nr_pages;
  2132	#ifndef DO_NO_OPTIMISATION
> 2133	#warning Optimisation in place
  2134		/* Protects only task_obj */
  2135		local_lock_t task_obj_lock;
  2136		struct obj_stock task_obj;
  2137	#endif
  2138		struct obj_stock irq_obj;
  2139	
  2140		struct work_struct work;
  2141		unsigned long flags;
  2142	#define FLUSHING_CACHED_CHARGE	0
  2143	};
  2144	static DEFINE_PER_CPU(struct memcg_stock_pcp, memcg_stock) = {
  2145		.stock_lock = INIT_LOCAL_LOCK(stock_lock),
  2146	#ifndef DO_NO_OPTIMISATION
  2147		.task_obj_lock = INIT_LOCAL_LOCK(task_obj_lock),
  2148	#endif
  2149	};
  2150	static DEFINE_MUTEX(percpu_charge_mutex);
  2151	

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

                 reply	other threads:[~2022-01-06  2:03 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=202201060957.kIjdfilS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bigeasy@linutronix.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome