linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bigeasy-staging:memcg 5/5] mm/memcontrol.c:2133:2: warning: #warning Optimisation in place
@ 2022-01-06  2:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-06  2:02 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-06  2:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06  2:02 [bigeasy-staging:memcg 5/5] mm/memcontrol.c:2133:2: warning: #warning Optimisation in place kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).