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 CA97AC4332F for ; Mon, 28 Nov 2022 00:41:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F03486B0072; Sun, 27 Nov 2022 19:41:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EB3E96B0073; Sun, 27 Nov 2022 19:41:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7B696B0074; Sun, 27 Nov 2022 19:41:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C8C606B0072 for ; Sun, 27 Nov 2022 19:41:52 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 99AD5140997 for ; Mon, 28 Nov 2022 00:41:52 +0000 (UTC) X-FDA: 80180998464.29.6881FB7 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf09.hostedemail.com (Postfix) with ESMTP id AE6B614000B for ; Mon, 28 Nov 2022 00:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669596110; x=1701132110; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=JjEejyMn2VBqUpS7vNcqB4ZqV8pqnM1g+5BHkB5Xwks=; b=QbH1WErcsx8GNr1ESOet7lPzIWHWnWmXrLyDX3KN/DQBAygLBVpVvX9D ZuEw29laL88Ca2Z1IVdVa8m6rTHZEbthPm0IuhUFp0iFYK5GrZuFIS7CJ GkfHnRgo293TcErvveaRlYcCuV6Cdev58cfigE439lx0aVx9wyDWPtpJd FC8E2ted1vY25WeNRVEuvn74sFUKU5lXtAldUbAnEv6bgl9MXZi1NPfE0 2H79/noalSQ3p3K12WxDwEHgQbLVKDNDliAH7dtArfZfd6Ajtr/vAtFtS eUfTs8PNJ9FPtznzgnBSTWJYOkRICkYu36Zf8JZasxwEPuc6lMRZv8Vpj w==; X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="378975841" X-IronPort-AV: E=Sophos;i="5.96,199,1665471600"; d="scan'208";a="378975841" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2022 16:41:49 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10544"; a="645298357" X-IronPort-AV: E=Sophos;i="5.96,199,1665471600"; d="scan'208";a="645298357" Received: from wanmeng-mobl.ccr.corp.intel.com (HELO [10.254.209.116]) ([10.254.209.116]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2022 16:41:47 -0800 Subject: Re: [sj:damon/next 27/30] mm/damon/sysfs-schemes.c:1409:26: error: invalid use of undefined type 'struct mem_cgroup' To: SeongJae Park , kernel test robot Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, oe-kbuild-all@lists.linux.dev References: <20221127185239.82898-1-sj@kernel.org> From: "Chen, Rong A" Message-ID: Date: Mon, 28 Nov 2022 08:41:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20221127185239.82898-1-sj@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669596111; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ptHugriD9sjbvNywnDP7bsY0QVFssO/n2ISgrFQ5m38=; b=aU9ymr4Mp+bMctVXoQ6iJ5NNj3qbgjgde782ifKQgTk8dPlimIc+zFUHlOBI/c9MZEpB1Q Dq/hwMX3LEGm89O9oepSHcF3cZ3jXSEoDrcizxCHbQ+6hLEd1EdYlIDZIo4jIdpG5NznFj Yr3CjAc35L0gi+LPhLYr+qVVAtwxlQ0= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=QbH1WErc; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of rong.a.chen@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=rong.a.chen@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1669596111; a=rsa-sha256; cv=none; b=qbUUWN/zH/IAkJLs10590EkCtHaEkdq3pFoHF978N05G1UMMRR8r8Ldf49FS1m9+GsK9dA jAahV0Jm223DDM/En1BHWcA0yfrXQExSXJH08YJJoeHDL5COLn5P55Yrsa8krqlkIP9EZQ mPykUEndONCEeypr2z044T/MOh2DFso= X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=QbH1WErc; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of rong.a.chen@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=rong.a.chen@intel.com X-Stat-Signature: 9a4jgbkwntopioeudqb1zk8heuyb6wcr X-Rspamd-Queue-Id: AE6B614000B X-Rspamd-Server: rspam08 X-HE-Tag: 1669596110-304983 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: On 11/28/2022 2:52 AM, SeongJae Park wrote: > Hi Robot, > > > Thank you always for the report! > > On Sat, 26 Nov 2022 18:26:31 +0800 kernel test robot wrote: > >> [-- Attachment #1: Type: text/plain, Size: 1887 bytes --] >> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next >> head: 61742c95d33e74cf64b7d5b8e51f12adef425b3e >> commit: d768680bbe8153f2b79382bd2cd5d6734b6f5c42 [27/30] mm/damon/sysfs-schemes: implement scheme filters >> config: xtensa-randconfig-r014-20221124 >> compiler: xtensa-linux-gcc (GCC) 12.1.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/sj/linux.git/commit/?id=d768680bbe8153f2b79382bd2cd5d6734b6f5c42 >> git remote add sj https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git >> git fetch --no-tags sj damon/next >> git checkout d768680bbe8153f2b79382bd2cd5d6734b6f5c42 >> # save the config file >> mkdir build_dir && cp config build_dir/.config >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash mm/damon/ > > I couldn't reproduce this issue as the last command above gives me below error. > > $ COMPILER_INSTALL_PATH=$HOME/0day make.cross W=1 O=../build_test ARCH=xtensa SHELL=/bin/bash mm/damon/ > Compiler will be installed in /home/xxxx/0day > Please update: libc6 Hi SeongJae, It may be due to the old version of libc6 in your environment, could you update it? Best Regards, Rong Chen > ldd /home/xxxx/0day/gcc-12.1.0-nolibc/xtensa-linux/bin/xtensa-linux-gcc > /home/xxxx/0day/gcc-12.1.0-nolibc/xtensa-linux/bin/xtensa-linux-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/xxxx/0day/gcc-12.1.0-nolibc/xtensa-linux/bin/xtensa-linux-gcc) > /home/xxxx/0day/gcc-12.1.0-nolibc/xtensa-linux/bin/xtensa-linux-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/xxxx/0day/gcc-12.1.0-nolibc/xtensa-linux/bin/xtensa-linux-gcc) > setup_crosstool failed > >> >> If you fix the issue, kindly add following tag where applicable >> | Reported-by: kernel test robot >> >> All errors (new ones prefixed by >>): >> >> mm/damon/sysfs-schemes.c: In function 'damon_sysfs_memcg_path_eq': >>>> mm/damon/sysfs-schemes.c:1409:26: error: invalid use of undefined type 'struct mem_cgroup' >> 1409 | cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); >> | ^~ > > Nevertheless, seems the issue was due to missed inclusion of memcontrol.h, > which defines the 'struct mem_cgroup'. Fixed and pushed[1]. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git/commit/?h=damon/next&id=7eaaa606788b0766ece3c105fdcf963aba8511ef > > > Thanks, > SJ > > [...] >