From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E29D7C433EF for ; Sun, 13 Feb 2022 22:33:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 50A436B0072; Sun, 13 Feb 2022 17:33:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4923D6B0073; Sun, 13 Feb 2022 17:33:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 30DB16B0078; Sun, 13 Feb 2022 17:33:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0205.hostedemail.com [216.40.44.205]) by kanga.kvack.org (Postfix) with ESMTP id 1FEC66B0072 for ; Sun, 13 Feb 2022 17:33:16 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id D75E7951B6 for ; Sun, 13 Feb 2022 22:33:15 +0000 (UTC) X-FDA: 79139208792.28.1606178 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf19.hostedemail.com (Postfix) with ESMTP id CA5B01A0008 for ; Sun, 13 Feb 2022 22:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644791594; x=1676327594; h=date:from:to:cc:subject:message-id:mime-version; bh=971JhnVBoFb6X05hqx76zRjjoZWkClyuYbSZUvxRits=; b=OkfCvpnihopGtaLC8Jimbg3iIRc3HlYKcsJyINClsEciHmdA6J+aulIq dju95r1n6uugaoGrg3Jod96ebBJwstKIy4Iem46eSL2dzp1/MhXRnW83u Ghxd2nWThdiSsQCJHgEkA8/IdRzf4hTVKNXSU3KxkWJU2zHlq1h1jOw/T MmRAH7zqxMekeVGII76oVEiV5C2tqpbNds8yOJ8P1cIiALEF4XwTlrV1D 5UK+UEuZo/ubEpuCboJVRFAUCvlyopZ+IiE+LZ2KhyYW9iy6PLfVf1EIY AwYDYVlVcyEQ2Kwk02aFkgrZTqGWdg1dfaMWqeN+tQbD/JP3NaBPQxeap w==; X-IronPort-AV: E=McAfee;i="6200,9189,10257"; a="310715366" X-IronPort-AV: E=Sophos;i="5.88,366,1635231600"; d="scan'208";a="310715366" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2022 14:33:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,366,1635231600"; d="scan'208";a="569714200" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 13 Feb 2022 14:33:11 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nJNQc-0007vG-La; Sun, 13 Feb 2022 22:33:10 +0000 Date: Mon, 14 Feb 2022 06:32:40 +0800 From: kernel test robot To: Shakeel Butt Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Muchun Song , Andrew Morton , Linux Memory Management List Subject: mm/memcontrol.c:2774:20: error: unused function 'cancel_charge' Message-ID: <202202140629.MxlIbXOG-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: CA5B01A0008 X-Rspam-User: Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=OkfCvpni; spf=none (imf19.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: ibam75waa1yrcf73mjizkyrbbw1fhgw9 X-Rspamd-Server: rspam11 X-HE-Tag: 1644791594-296918 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 754e0b0e35608ed5206d6a67a791563c631cec07 commit: 58056f77502f3567b760c9a8fc8d2e9081515b2d memcg, kmem: further deprecate kmem.limit_in_bytes date: 3 months ago config: arm-randconfig-r005-20220213 (https://download.01.org/0day-ci/archive/20220214/202202140629.MxlIbXOG-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b) 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 arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58056f77502f3567b760c9a8fc8d2e9081515b2d git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 58056f77502f3567b760c9a8fc8d2e9081515b2d # 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=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> mm/memcontrol.c:2774:20: error: unused function 'cancel_charge' [-Werror,-Wunused-function] static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages) ^ mm/memcontrol.c:3339:19: error: unused function 'mem_cgroup_move_swap_account' [-Werror,-Wunused-function] static inline int mem_cgroup_move_swap_account(swp_entry_t entry, ^ 2 errors generated. vim +/cancel_charge +2774 mm/memcontrol.c 2773 > 2774 static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages) 2775 { 2776 if (mem_cgroup_is_root(memcg)) 2777 return; 2778 2779 page_counter_uncharge(&memcg->memory, nr_pages); 2780 if (do_memsw_account()) 2781 page_counter_uncharge(&memcg->memsw, nr_pages); 2782 } 2783 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org