Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15424905rwb; Mon, 28 Nov 2022 11:23:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6QAz3d5/ZWjTyWZeoK4R7IFNGlMNCnd6C5q4GFXkA7lCLkfEsUqSkXDIINjfzGapDoxrjJ X-Received: by 2002:a17:90a:e2c2:b0:218:825e:17f8 with SMTP id fr2-20020a17090ae2c200b00218825e17f8mr51656333pjb.129.1669663438005; Mon, 28 Nov 2022 11:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669663437; cv=none; d=google.com; s=arc-20160816; b=pvXTCtrTmhhn0hohoArAgJuFYHMGckONkV/TYNP1A8GymyQzl6jVle28cIcJEZh2yJ lxZXt+26Z/eMTH1E6L/+890ErfUqgknnOqwJqOYYFWsLgAHL2owXg3aAg1f08IPjnLOF roYyJGEKEZPAR2NkIITP2LMbioUKNt+PNxsKHZ5dSVgD9AEB4e7XAWMYOLF/doBlnoBl f+5HGSvNzd3PkdlYLNI+1NnVAB4VUVRNJISfYnIyxKm9A9aRucAvpLgwF+/KuNKyI9Iu rsN5bMreKI4gK5khBTVAR+j3BS9MVYokHFxutUheCjO6JHw67oVZ88VnCTGT6c2Kmr5L dlog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1PbDuE1MWs9TCZTBrZbJoVKByyERr9Tta5KZ43PWvfE=; b=R36jNCyzmrri4m9+6f8SS1JBg8ehycuErou9IhQQ5FSCRjz6sntZG3Gi3HPB3IYXKg SB4j/i1xNT60Omp7/TNbbFktwUkkLdn9Vs2T3sOGCYspAjmjc3a/bgBf+oHsF0/cyar7 YxeGgfvTfQgLe7N0/Aqq9XJA4qQCeR3+2ydEH/tZvcPrvYJxmCvHcVlBkvopDeIzKm3y z8WdHVmzaBBobm/cyFoPevjZvGM3NqRlX8n4V4aVk0UeugNfKx0bsl+AcmuJbHbSb0Ap pJNqbmeZuHmcfy/tvtsHE1kTp5FqXSso7BR3jCGSYY86XeBcm7cfJGTQ9eIQDgZRq/k2 6s+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A8Se4BYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h69-20020a636c48000000b0043941e5532dsi12678209pgc.391.2022.11.28.11.23.46; Mon, 28 Nov 2022 11:23:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A8Se4BYj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbiK1SMk (ORCPT + 84 others); Mon, 28 Nov 2022 13:12:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232976AbiK1SMQ (ORCPT ); Mon, 28 Nov 2022 13:12:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6932FC30 for ; Mon, 28 Nov 2022 09:55:03 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E0BC3B80D1A for ; Mon, 28 Nov 2022 17:54:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E810C433C1; Mon, 28 Nov 2022 17:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669658043; bh=PNyyGskXEL6J2fr0axt60kXMvnypsmn7KyeoTEQji0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A8Se4BYjG+/aU9nCM1LkdL9QcghZZiVXfO0laO+j5HnxZx3D+I7Kfc/knAfzsuL5b F5LRk5RgnItSJscgHgo8jlK6eJxql0guKE0kazvVcOuktAP5AjbwkbM8BNl5z/Jm7E Qel8OnxNx7ry8DjUhuHrmBK60exrHDYfvTatRZPa3iE7LirnsF07Svu4YFqZh2Nr1D wylafqKmOIQBUzoIwzRrWjEJBA16baopqnE4+dbyvPndRG5Wh3yDGnRmZEVUiZ/vlb kxjU4I/XnNwjvhR2IfFemKqAAi5maQcHIHcsjSTfr5a6QwseYlJbtxdoewxg6Z1Tnz ZnKeVXN9OF3nQ== From: SeongJae Park To: kernel test robot Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [sj:damon/next 27/34] mm/damon/sysfs-schemes.c:1409:19: error: incomplete definition of type 'struct mem_cgroup' Date: Mon, 28 Nov 2022 17:54:01 +0000 Message-Id: <20221128175401.17332-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <202211281158.AsAWEmu1-lkp@intel.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Robot, On Mon, 28 Nov 2022 12:00:58 +0800 kernel test robot wrote: > [-- Attachment #1: Type: text/plain, Size: 1995 bytes --] > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next > head: c68bc40dc2022ce015ee828d0fccb34f864934f8 > commit: 80bd927ee54ff864d9a6ceb1c6ce4803b22e7220 [27/34] mm/damon/sysfs-schemes: implement scheme filters > config: x86_64-randconfig-r015-20221128 > compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) > 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=80bd927ee54ff864d9a6ceb1c6ce4803b22e7220 > 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 80bd927ee54ff864d9a6ceb1c6ce4803b22e7220 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 errors (new ones prefixed by >>): > > >> mm/damon/sysfs-schemes.c:1409:19: error: incomplete definition of type 'struct mem_cgroup' > cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); > ~~~~~^ > include/linux/mm_types.h:33:8: note: forward declaration of 'struct mem_cgroup' > struct mem_cgroup; > ^ > 1 error generated. > > > vim +1409 mm/damon/sysfs-schemes.c > > 1404 > 1405 static bool damon_sysfs_memcg_path_eq(struct mem_cgroup *memcg, > 1406 char *memcg_path_buf, char *path) > 1407 { > 1408 #ifdef CONFIG_CGROUPS > > 1409 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); > 1410 if (sysfs_streq(memcg_path_buf, path)) > 1411 return true; > 1412 #endif 'struct mem_cgroup' is defined under '#ifdef CONFIG_MEMCG', so this should be guarded with it. Fixed it[1]. Thank you again! [1] https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git/commit/?h=damon/next&id=dc31f4ababd073e1686de0e51f45c5bbd42e66ac Thanks, SJ > 1413 return false; > 1414 } > 1415