Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp204936lqq; Wed, 12 Jun 2024 23:55:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6rnWo8vnUVw33zF7l3R3VCFi6B0UWyklDv+TQ7tEXK1yyswVEjM55/KQUityrQu807xFzSKA03XQj7LpNRvmCXtEmIbCuH4AiFHONkA== X-Google-Smtp-Source: AGHT+IETTIXPcLqUVar41WTTLLLPzInFQl4YFNQxAyL1sDr8GluRQXT4FBj3Q7nVHWd+KfdCwvk1 X-Received: by 2002:a17:906:1b54:b0:a62:49ae:cd7b with SMTP id a640c23a62f3a-a6f5242c7b5mr112887966b.24.1718261745682; Wed, 12 Jun 2024 23:55:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718261745; cv=pass; d=google.com; s=arc-20160816; b=QW1RjhPnIZtkB+8q70Y/XlDFBTv6FC21wzMyirKp7+ld/yN7vrLSOotY8PFGfP1+oV LYUMGyWcS5VVPDDHc4Hy2WA9Q6RUf6KV7QBfolkgkXlTd6+KgF2SpUUFqv0yd+YDPnhQ y2OIjA5HDxyomuN7T0ulIu/W5l1iDSzZUFweZnSRcpY3/uTMqH3NHF/NKtpiararkG3l TQgEYu1SCYEdZF42gUogZ8t2apGkvzxA5fWpJ9f2/PdxbpDWAglLs1O0kn8ggIIxwMms +QQ/uA6oa7KV0ELOSztgclIUqnoCApkKiqRIJkgOuWMJ5ePmkJ5kFkfbJ/xM+YFYuQ7y nNsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=uvtc0YBAnC2B819Gibjx5Bv5CLdMi0xklaJpylldvxo=; fh=8nuov8aXiPj2td6PuvXzgxP/BPRFOzhTac7mudDOPs0=; b=BvcNU16nOMXuojU8EZ/pjiqKrPJHFjItY2r8PYcMxKnEYLkkHL+qJhtYsYKD00bfAp zWgP0IKLcIF3U2WMbBUcci5O7UUzbsFc0iCjiYrsOs+ryHihg40gJTSDAW+/2SvuPzO5 dqg2g42JR9XITqbAs1jsOigMBFXRb15yLPsp8kqO9DWOLWYeoLQxOkBChY8aT4RzVsZc vC64L8AqTi+EiWdcIALqeIJwKQTUINaB4Xk/laozvguk/wwrCzq5lw88c7zbQMz42LN3 eswIX965cFLn1ZCOC0qR3ScoajwUO6Qq7kX+6lqSQKOSY0X07tESKB+GpE+D6QJo+pwb Kvww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-212661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212661-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56dd6494si37838366b.290.2024.06.12.23.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-212661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212661-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6A1BD1F2321E for ; Thu, 13 Jun 2024 06:55:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E802E137C38; Thu, 13 Jun 2024 06:55:34 +0000 (UTC) Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EAE2130485; Thu, 13 Jun 2024 06:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718261734; cv=none; b=hdOy2qdW6KwmdHWQANLGNA+HeuQwOoRLE90qZEHJPPlqX6rb4gh1NU83/dTSjDhkeeRotijN1cQLvzad3HGXUOTt6P1kmeTfnUds+zqnmcsPiQOwfeWVUQsxYDH4Fc69QrF4UUnFRUZNjoXATRu4xewCClFKG/moTjufzBZlYLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718261734; c=relaxed/simple; bh=IdZQJKQuQHoYb+6SnBjywKNI9W9Zw3NoblQod5oTVHY=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=MggfKN52ekHCBw481JIOvS4cPrR3tDrogYHYvLgMnPByMiuvELxPPaZuIv2AYuFmUBqkiwgb4rpokOfLyHOcsmSet/H7d91Eu0kzyudMCzKkMURXX295SDRdGB4cD+xTuA0e08INpCVDsYT7u0/71muViIxrCna+U7ezEjuVLMU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4W0CpZ4XTlz4f3jcx; Thu, 13 Jun 2024 14:55:18 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id B01251A0568; Thu, 13 Jun 2024 14:55:28 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgAn+RHfl2pm_4JmPQ--.42616S3; Thu, 13 Jun 2024 14:55:28 +0800 (CST) Subject: Re: [PATCH RFC -next 1/7] kernfs: export pr_cont_kernfs_path() To: Greg KH , Yu Kuai Cc: axboe@kernel.dk, tj@kernel.org, josef@toxicpanda.com, lizefan.x@bytedance.com, hannes@cmpxchg.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20240613014937.1326020-1-yukuai1@huaweicloud.com> <20240613014937.1326020-2-yukuai1@huaweicloud.com> <2024061314-moodiness-snowflake-14c5@gregkh> From: Yu Kuai Message-ID: <724f3d15-769e-705d-986f-75a33ad6d715@huaweicloud.com> Date: Thu, 13 Jun 2024 14:55:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <2024061314-moodiness-snowflake-14c5@gregkh> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgAn+RHfl2pm_4JmPQ--.42616S3 X-Coremail-Antispam: 1UD129KBjvdXoWruF43Kr1xuw1fZw48KFyDJrb_yoWDCwc_Cr 1DC3429w13X3W2yFs0yrZxtrZ0gan5uF4YvayUJrWDtF95ta4rAwsYq3s5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yu Kuai >> >> This helper is used in iocost, prepare to build iocost as kernel module. >> >> Signed-off-by: Yu Kuai >> --- >> fs/kernfs/dir.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c >> index 458519e416fe..84ad163a4281 100644 >> --- a/fs/kernfs/dir.c >> +++ b/fs/kernfs/dir.c >> @@ -279,6 +279,7 @@ void pr_cont_kernfs_path(struct kernfs_node *kn) >> out: >> spin_unlock_irqrestore(&kernfs_pr_cont_lock, flags); >> } >> +EXPORT_SYMBOL_GPL(pr_cont_kernfs_path); > > This isn't the helper that needs to be exported, it's a include wrapper > that is using this for cgroups. Please document this much better and > perhaps, just fix up the cgroups code instead? Thanks for the notice, I didn't think much of this, just export API that is called from iocost. I'll look into this. Thanks, Kuai > > thanks, > > greg k-h > . >