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 1EE3DC433F5 for ; Tue, 24 May 2022 13:11:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 84B718D0003; Tue, 24 May 2022 09:11:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7FB688D0002; Tue, 24 May 2022 09:11:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6E86B8D0003; Tue, 24 May 2022 09:11:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 5FC428D0002 for ; Tue, 24 May 2022 09:11:39 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 218D534A31 for ; Tue, 24 May 2022 13:11:39 +0000 (UTC) X-FDA: 79500673518.09.DB35781 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf21.hostedemail.com (Postfix) with ESMTP id 451441C002A for ; Tue, 24 May 2022 13:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653397898; x=1684933898; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DAhDI6GjyqETdXWl+Dy+y5irHu9wRTkAlq4aGCSkc28=; b=WjS2iy1BnpDRff/+JH8jYMMHR1qSfSoVlXJ2U61PC/FgJCJJGi/3gLdD qRE7Fokb+LVX8FBPkx190mkaRL5nWDbRhivvG6doDTob27HWwmACAseYO UeY2Kt4Ty2/c8OtIzZBZj14HFu3cbKh4ZyR/Lt3TnzHx0QcgJ6eJPqRX/ IH7M0KVwJudClKo83sHDcY7NwXVK8fEpObRuKiTpxU6YIEPWHZJpp2Mfq 1awbYhQTygp1LrV+mhKqgzQYpCrJy+x4AjAxNG8M5D1TdI2q0d/ujohNn S3AHAYIhTkjaJwqtxkZhlVv0ZjRl385GFEvEp/y2xMaNxs7Zq2C9c9Nn4 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="272343596" X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="272343596" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 06:11:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="663904189" Received: from lkp-server01.sh.intel.com (HELO db63a1be7222) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 24 May 2022 06:11:34 -0700 Received: from kbuild by db63a1be7222 with local (Exim 4.95) (envelope-from ) id 1ntUJx-00024I-A5; Tue, 24 May 2022 13:11:33 +0000 Date: Tue, 24 May 2022 21:10:36 +0800 From: kernel test robot To: hezhongkun , hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, lizefan.x@bytedance.com, Hezhongkun Subject: Re: [PATCH] mm: memcontrol: add the mempolicy interface for cgroup v2. Message-ID: <202205242108.pqUxw2OF-lkp@intel.com> References: <20220524103638.473-1-hezhongkun.hzk@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220524103638.473-1-hezhongkun.hzk@bytedance.com> X-Rspam-User: X-Rspamd-Queue-Id: 451441C002A X-Stat-Signature: xabqhgp7epiyie5acx3hwszdkwuf3qpf Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=WjS2iy1B; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf21.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.120) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam04 X-HE-Tag: 1653397885-99074 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: Hi hezhongkun, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.18 next-20220524] [cannot apply to akpm-mm/mm-everything] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/hezhongkun/mm-memcontrol-add-the-mempolicy-interface-for-cgroup-v2/20220524-183922 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 143a6252e1b8ab424b4b293512a97cca7295c182 config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220524/202205242108.pqUxw2OF-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/6adb0a02c27c8811bee9783451ee25155baf490e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review hezhongkun/mm-memcontrol-add-the-mempolicy-interface-for-cgroup-v2/20220524-183922 git checkout 6adb0a02c27c8811bee9783451ee25155baf490e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> mm/mempolicy.c:179:19: warning: no previous prototype for 'get_cgrp_or_task_policy' [-Wmissing-prototypes] 179 | struct mempolicy *get_cgrp_or_task_policy(struct task_struct *p) | ^~~~~~~~~~~~~~~~~~~~~~~ mm/mempolicy.c: In function 'get_cgrp_or_task_policy': >> mm/mempolicy.c:182:36: error: implicit declaration of function 'mem_cgroup_from_task'; did you mean 'perf_cgroup_from_task'? [-Werror=implicit-function-declaration] 182 | struct mem_cgroup *memcg = mem_cgroup_from_task(p); | ^~~~~~~~~~~~~~~~~~~~ | perf_cgroup_from_task >> mm/mempolicy.c:182:36: warning: initialization of 'struct mem_cgroup *' from 'int' makes pointer from integer without a cast [-Wint-conversion] >> mm/mempolicy.c:184:30: error: invalid use of undefined type 'struct mem_cgroup' 184 | pol = (memcg && memcg->mempolicy) ? memcg->mempolicy : get_task_policy(p); | ^~ mm/mempolicy.c:184:50: error: invalid use of undefined type 'struct mem_cgroup' 184 | pol = (memcg && memcg->mempolicy) ? memcg->mempolicy : get_task_policy(p); | ^~ mm/mempolicy.c: In function 'get_cgrp_or_vma_policy': mm/mempolicy.c:1799:36: warning: initialization of 'struct mem_cgroup *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1799 | struct mem_cgroup *memcg = mem_cgroup_from_task(current); | ^~~~~~~~~~~~~~~~~~~~ mm/mempolicy.c:1801:30: error: invalid use of undefined type 'struct mem_cgroup' 1801 | pol = (memcg && memcg->mempolicy) ? memcg->mempolicy : get_vma_policy(vma, addr); | ^~ mm/mempolicy.c:1801:50: error: invalid use of undefined type 'struct mem_cgroup' 1801 | pol = (memcg && memcg->mempolicy) ? memcg->mempolicy : get_vma_policy(vma, addr); | ^~ cc1: some warnings being treated as errors vim +182 mm/mempolicy.c 178 > 179 struct mempolicy *get_cgrp_or_task_policy(struct task_struct *p) 180 { 181 struct mempolicy *pol; > 182 struct mem_cgroup *memcg = mem_cgroup_from_task(p); 183 > 184 pol = (memcg && memcg->mempolicy) ? memcg->mempolicy : get_task_policy(p); 185 return pol; 186 } 187 -- 0-DAY CI Kernel Test Service https://01.org/lkp