[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111272014.WOYNLUV6-lkp@intel.com>
Date: Sat, 27 Nov 2021 20:15:29 +0800
From: kernel test robot <lkp@...el.com>
To: Waiman Long <longman@...hat.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Shakeel Butt <shakeelb@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>
Subject: mm/memcontrol.c:785:20: warning: unused function 'mod_objcg_mlstate'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c5c17547b778975b3d83a73c8d84e8fb5ecf3ba5
commit: 68ac5b3c8db2fda00af594eca4100aceaf927c0e mm/memcg: cache vmstat data in percpu memcg_stock_pcp
date: 5 months ago
config: mips-randconfig-r022-20211122 (https://download.01.org/0day-ci/archive/20211127/202111272014.WOYNLUV6-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c133fb321f7ca6083ce15b6aa5bf89de6600e649)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=68ac5b3c8db2fda00af594eca4100aceaf927c0e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 68ac5b3c8db2fda00af594eca4100aceaf927c0e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> mm/memcontrol.c:785:20: warning: unused function 'mod_objcg_mlstate'
static inline void mod_objcg_mlstate(struct obj_cgroup
^
mm/memcontrol.c:946:29: warning: unused function 'memcg_kmem_bypass'
static __always_inline bool memcg_kmem_bypass(void)
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 153, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $0, $1 # atomic_add
addu $0, $2
sc $0, $1
beqz $0, 1b
.set pop
'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 5162b558d8c0b542e752b037e72a69d5fd51eb1e)
Target: mips-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-5162b558d8/bin
clang-14: note: diagnostic msg:
Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net nr_bisected scripts security sound source usr virt
vim +/mod_objcg_mlstate +785 mm/memcontrol.c
784
> 785 static inline void mod_objcg_mlstate(struct obj_cgroup *objcg,
786 struct pglist_data *pgdat,
787 enum node_stat_item idx, int nr)
788 {
789 struct mem_cgroup *memcg;
790 struct lruvec *lruvec;
791
792 rcu_read_lock();
793 memcg = obj_cgroup_memcg(objcg);
794 lruvec = mem_cgroup_lruvec(memcg, pgdat);
795 __mod_memcg_lruvec_state(lruvec, idx, nr);
796 rcu_read_unlock();
797 }
798
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists