Message ID | 20240222083604.11280-1-jiapeng.chong@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-76114-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp112147dyb; Thu, 22 Feb 2024 00:37:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWMB/BFy9Wn02PKGHoCH/7/XlxQaB7mk3rdCi45XC0HQcjs4QZrfqBfnYoByLSB4j3o0QPlvVB5tQpJOE/b3lniy4G7Q== X-Google-Smtp-Source: AGHT+IEJZ9S1LFu7seTwrn4ClauJmOH13Vqp1RPUlQHaD9+dDXvtTnLQxKY6x6srpk3lKPc7gKD4 X-Received: by 2002:a17:903:249:b0:1d7:5d88:f993 with SMTP id j9-20020a170903024900b001d75d88f993mr22463519plh.41.1708591064476; Thu, 22 Feb 2024 00:37:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708591064; cv=pass; d=google.com; s=arc-20160816; b=nigop4HhEVvh+hA/jtbtSaZPHWhmXEP93k4vldisjpSmgoocyE8XyiTakaK0XQH0S2 2Kh6Hh4bozCLh1z1EXa238XkIZkDKLS33G0GlRDH10e0HXb1JK/zoTjM8krFifc4tXl/ cNbqF4Rvb9Yu66mOsy73Aw/VaMXINdZd7an97FRRL5PsnJBPkiS4gHhCSYiYlf5RDDPd RVElFa4s6EC9nmug4ci6KX6anECvz7JtBa2BABfNgt2sv7gqVv7FPBzBI56NtEdLNHsl agcms/MBNZeD0fMZMyR+X1mbv9HVqOkqlPnGjDhoQavWPCnzLxeukq8vMzs50+oQ9JPy RYuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=X9yz07D9w8yMy5Y7IPBs0+pEkB7vyXUOF8tVyxWbAGg=; fh=vl93V/CJopDb9DodrAaOPTg7aVM8avGcfrv7oRlW4tE=; b=z1ICGh3+IINlTAF9u77j9WAzqYfUf6cp0AshTjP2Yq8gVNIgXMGgniiB5TU3koNRlq f4Q1GAxTvqtVa5QGmD5rBPmDW2JxBC38jov9pzqH1N6xUT63avrnTaGrcsDfugU3wSN4 pVpzhy37lffHvt984qo8mHNkkkOCgzXP4a4mRpxA0lHz/raETi0ROXMP7o9+YUn2WE+z f45TYxUcf9jgPxBZYUHhsHBmwvGH3ngAvzP51APW1KfFtHZVTZEAYp5kuEHTt/lj/K8D mnZRo1FaV8wszRW0dG0lseEytETBR+tZAeV31xYbGFwTwsaG9jFkM1YBqNlxX/KEiBUr pp1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b="aRcOHS/r"; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-76114-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76114-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id e6-20020a170902ef4600b001dc324da157si2867622plx.120.2024.02.22.00.37.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:37:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76114-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b="aRcOHS/r"; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-76114-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76114-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 95855B21DED for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 08:36:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0C1822F14; Thu, 22 Feb 2024 08:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="aRcOHS/r" Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) (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 8AF9517583; Thu, 22 Feb 2024 08:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.101 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708590985; cv=none; b=UnvW8r0ao0m3hwlsl3FNSbGNIrlzJq3ogdewHlQI5CvumSwR94wTGrzVC9cgTd4MYrSUJ6MihyghLvNCwsZ4AJ+olxieZ1UV1dOsK/rGelOoW8hsG6Fb6k3DFKbeVAME3BQnH5B9HrCY4FJXZWpC0Lk103xJNH0uB1mld2ZbdWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708590985; c=relaxed/simple; bh=35o1s17GEgTofroVACV50mopTUDx11285gHuW9ReeHc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=N5zcJ/xOkKHkOy6hLLhlnsd4v22Z8XRQoX45rcuG9U5D0GwR7uRxmzlFxpkh5IEervnNSx/QIuRipXDXOVm52sSs1c1MVz91kUSRri2Iqa+hZQYUsV56JC2sd+WAVnI/UMx4/9Bw+KdX/ZfzdA1IS0ZqJvbXWv0v1cIEcbRm5uA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=aRcOHS/r; arc=none smtp.client-ip=115.124.30.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1708590977; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=X9yz07D9w8yMy5Y7IPBs0+pEkB7vyXUOF8tVyxWbAGg=; b=aRcOHS/ryawRguaMzeoX1EZy6J9O3pMn81rVoRha0GmUmsTPwQ+YNjoH8aKraWjiWdTrtPFy2PYbscwsuzQK+JNwqFua3yQhfPaP5KGKaGo8ky4Gz5KkfyHYAl8SPBWppQGJaSrpjRKwAg8XUDJOOVc2mic1fIFnVgK5dHVwiKg= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R561e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0W10YCEV_1708590966; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W10YCEV_1708590966) by smtp.aliyun-inc.com; Thu, 22 Feb 2024 16:36:16 +0800 From: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> To: viro@zeniv.linux.org.uk Cc: brauner@kernel.org, jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH] pidfd: make pidfs_dentry_operations static Date: Thu, 22 Feb 2024 16:36:04 +0800 Message-Id: <20240222083604.11280-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791587583749087817 X-GMAIL-MSGID: 1791587583749087817 |
Series |
pidfd: make pidfs_dentry_operations static
|
|
Commit Message
Jiapeng Chong
Feb. 22, 2024, 8:36 a.m. UTC
The pidfs_dentry_operations are not used outside the file pidfs.c, so the
modification is defined as static.
fs/pidfs.c:175:32: warning: symbol 'pidfs_dentry_operations' was not declared. Should it be static?
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8284
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
fs/pidfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Already fixed. Thanks.
diff --git a/fs/pidfs.c b/fs/pidfs.c index c33501c9cd8b..85e9617f0aee 100644 --- a/fs/pidfs.c +++ b/fs/pidfs.c @@ -172,7 +172,7 @@ static void pidfdfs_prune_dentry(struct dentry *dentry) } } -const struct dentry_operations pidfs_dentry_operations = { +static const struct dentry_operations pidfs_dentry_operations = { .d_delete = always_delete_dentry, .d_dname = pidfs_dname, .d_prune = pidfdfs_prune_dentry,