Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp204636rdb; Thu, 22 Feb 2024 00:36:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTy24Z6coh2P5NdMro7ZnVwkvj6D1v9hNRpitnoCF29HZQFmhN2/GK7lYFkVgw9OO9E7UNOSAwRfiorT7QqeylwIYND93Y2UNF8bcoSg== X-Google-Smtp-Source: AGHT+IFIe/lhYbNR89Fkmu/kGF5mmbCjEz7nq+LcWwApu4l+iJ1yGs5yKmZOkKlbwt8JPUn5GjKp X-Received: by 2002:a05:622a:287:b0:42e:202a:f1b3 with SMTP id z7-20020a05622a028700b0042e202af1b3mr9700595qtw.68.1708590997869; Thu, 22 Feb 2024 00:36:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708590997; cv=pass; d=google.com; s=arc-20160816; b=q3DQlXw1eI3OoC0F5VB7RrGf5KEkL1iVP0mj+zO0rdfeJMThM+FoM71oGBr7QhWXCq A/+5TWBtJJym7kPPtqSsuWUHBP+ILYHS0cJ4iKvavdk3smYEw2MYkV8Ma17jWILjhVlO tYCIvasmAyMnjKqHcnhOwoNv0SOjj6FDOjv/N/DNK/LR9zI+3Pb3Q8onBKo/TJHCTIcI zMc9pkKG+pa78Kp9Bjn5nkagqPJS2WRtEvpDTQlAOePZiSuP9saHLgGpUeNN/iXHew4y nHZ2pENy6chhIbu2SzWhQtLwxIZYMsttwuCw09S+O/Q0/kmOJCeP4NWyS2LJrostdmwv aWJw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d7-20020a05622a100700b0042da7d280a7si13586423qte.644.2024.02.22.00.36.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 00:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76114-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76114-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9E58B1C20D66 for ; Thu, 22 Feb 2024 08:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D83EC2374D; Thu, 22 Feb 2024 08:36:25 +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 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 , Abaci Robot 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8284 Signed-off-by: Jiapeng Chong --- fs/pidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1.7.g153144c