From nobody Wed Dec 17 13:45:27 2025 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 6E0912904 for ; Mon, 17 Mar 2025 15:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742226746; cv=none; b=iEnDcUdS8QYI5CzLw4ga/uIGxIJq0GdwB/+PP0tDHlGQZArYfpCg9CzTbmm3GFD0rJA28I7tIWigvGpL1tWnTnP2b+qiym56H0T6YZ2x5KepZNrTDZbV0LB71+2RxhhvRbLWTGica8sn/XHZrzTaqaH/i5pryEJLtkz2Ks/8+Kc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742226746; c=relaxed/simple; bh=dUfQ96pcjbRz1+/lt2Zy1k/1dLu56V4jXKxvVQyuiOU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EWEZpQWM6uGdv8CE54CJf+2pAFoHSvc3gh2w2ucbAVrUoHI5SyXMGwv8afDocgPRAD6g/zr1QpbMMkofiSit3QaCIJ7Ia/vurjtJOxnNwJlap5guFRioWbnbPVB8WBtq/tLDNdNN/hxsmMPEW2cVtDbkZggR3IViBICB+gIuLIk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YF24cflZ; arc=none smtp.client-ip=91.218.175.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YF24cflZ" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1742226739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RkKSxDUbBmd7YpUH6TyrziTFRfsGpiWyoLKpjKRDRpw=; b=YF24cflZJipA3SARqd2ek+f0zq1pNmk8GFP1qLE1KL+XVvuNoVR1l+nX+xqRilXU1zakXg KrpHWCSkarOMtL4ztI2rPoKIK6IqbInRDdcFxRht9G2qEnekLLwMAjqt+IjB9BqSqr/ioi 2egij2u1En08Ar3cP6ukRXqoGhZqLvQ= From: Tao Chen To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, brauner@kernel.org Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Tao Chen Subject: [PATCH bpf-next] bpf: Define bpf_token_show_fdinfo with CONFIG_PROC_FS Date: Mon, 17 Mar 2025 23:51:47 +0800 Message-Id: <20250317155147.2933972-1-chen.dylane@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Protect bpf_token_show_fdinfo with CONFIG_PROC_FS check, otherwise it will compile error if CONFIG_PROC_FS is not set. Fixes: 35f96de04127 ("bpf: Introduce BPF token object") Signed-off-by: Tao Chen --- kernel/bpf/token.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/bpf/token.c b/kernel/bpf/token.c index 26057aa13..4396eefde 100644 --- a/kernel/bpf/token.c +++ b/kernel/bpf/token.c @@ -105,7 +105,9 @@ static const struct inode_operations bpf_token_iops =3D= { }; =20 static const struct file_operations bpf_token_fops =3D { .release =3D bpf_token_release, +#ifdef CONFIG_PROC_FS .show_fdinfo =3D bpf_token_show_fdinfo, +#endif }; =20 int bpf_token_create(union bpf_attr *attr) --=20 2.43.0