Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5754151rwd; Wed, 24 May 2023 06:25:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+KzjOZhYcoRs3vjOUXrGlcn1Aar4i6WadJxoaL/8qNZJWJ1UsVCzKNJmM1TnMWoyNV8Hh X-Received: by 2002:a05:6a20:158a:b0:100:c3fe:a653 with SMTP id h10-20020a056a20158a00b00100c3fea653mr19712616pzj.29.1684934735153; Wed, 24 May 2023 06:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684934735; cv=none; d=google.com; s=arc-20160816; b=DajTfmdz4e00ggVuuW3SskLXW6gyRmeOjyEu0emYP0lxE4r/WBzwlrRoMv5PCtSasM 7uBBE2XFO9VzgOichF+1vljkR7ycLJ5cJhuHJ/sLFQDEiHhTJ8a+V2N1PLL0ZBO+fuC/ 1lyjrfEIy2ywztmEdoU2i+idKMTVhsYoyzPRj4rdlI40ZkkoabY/m8bmWY9rv23xkNkY eK6y8L54KyrWCpN8aIoXhI4yapqZAzuHmSMUc4AVhfJnPie6MTg8NvkiUnmlltw0NNlt 1Deufi58ML+VlFKI30kqglC6TbCQbgXJ03I+vSZB4+8BwT8Ry8MPaY9LE/ok34XzuREw 6+fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=raB7OJ7UdVre69aPRy4rO+ZRGCd+zuLQcF+Qv/YoZG8=; b=qJmq1IpqUzK//VP7TsPEah2yn01vUalUq/hOA7YXarLgKEgag/ZN1lxztsNZeqM09K Wh2LFoSRyfDAU9+jlkxgQClIxuRNu/zHp5wvifefR/JD8wmGZ6CiUjG5M+sq6hCAw5rE nt09f+Jkdun9aZ+RWIslqkyL+WFHwtxeWCejuhwO8/EkWkiMQ6grsSTRdw7AErBhB8+I VrhGHs+FaZ22WLdYNeiILLjnp2TykbgLyDTngphzMQ9JGykTnPfO79MSFjGvZukjKvb7 3sWNaGjjyZawZpDTw/yWq8q+u9nUPEtwJ90odSUUgbm2HrNZgSUiAtsIUEI/e5/aF7ub Flyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=KeN+SZ3c; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=E6pqQAcW; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a638f4f000000b00534849cb1aesi861101pgn.142.2023.05.24.06.25.20; Wed, 24 May 2023 06:25:35 -0700 (PDT) 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=@arndb.de header.s=fm3 header.b=KeN+SZ3c; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=E6pqQAcW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbjEXNYL (ORCPT + 99 others); Wed, 24 May 2023 09:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233337AbjEXNXv (ORCPT ); Wed, 24 May 2023 09:23:51 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1DBAE9; Wed, 24 May 2023 06:23:49 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id B89263200201; Wed, 24 May 2023 09:23:45 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 24 May 2023 09:23:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684934625; x=1685021025; bh=ra B7OJ7UdVre69aPRy4rO+ZRGCd+zuLQcF+Qv/YoZG8=; b=KeN+SZ3c314DpYLTMq MBBXznHtrN2C+qFdeSIJq3xOBZ0k29HIC+Xtw6daL+hf9K5z8EyWyGcHGyo5bmux Ade06pXwCVbRZWyrqwUq5i0SeM2ZORXKbW6F4p1ybuaWErf4zIxhdFC1nm0s74Kj MvDP4siVQQD9P2pBX3hkTL76qx5cTU8LMrn2s+69+M+NEFuK03eSspFgs/6LjBz5 19WiTORXXhHSrwaT2puNtkAdy1QUAINDeyCu7skj3fk5mwwxbiqrxAYR+B2WqYv8 +xBr1qCJgSrnU+YINARYe94FeBkRVNkPyeoFXqAj9fgf757atGqCTiBDlzoDVQ2r mjhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684934625; x=1685021025; bh=raB7OJ7UdVre6 9aPRy4rO+ZRGCd+zuLQcF+Qv/YoZG8=; b=E6pqQAcWCmgAa1czwjMCpTyu9whwy 2M4I2KVD0Gae7jhhVOV6WiZr5W18owt4YYHKsYbM2Gwxp0y6qo2/61S5ZSkNQEss mt8SOKFwkTygqSrZfXDHt43AyQ+YrVTxCd5xjVJ6jQKE5I0IGTtEUJUWUjshUnkP /J2PJB20kSXTbytywZ1xdNLIHQH2wkmOLFllRXlfxDu1pWMQKGywc5Gsw8SDjInE B7A7N6TAS8nE0msYcUYN3UKjqZFTMkdcpJ8WMsEivMAw4tZ+KdMx6PIXkQQIq/cO bttJROhbaE9nn8auKbIakqIJWmvFZIK5mH3K0sQdSP1P+y0m+tm+GzD2g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejhedgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C5888B60086; Wed, 24 May 2023 09:23:44 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-441-ga3ab13cd6d-fm-20230517.001-ga3ab13cd Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230523194930.2116181-1-arnd@kernel.org> Date: Wed, 24 May 2023 15:23:24 +0200 From: "Arnd Bergmann" To: "Yonghong Song" , "Arnd Bergmann" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" Cc: "John Fastabend" , "Martin KaFai Lau" , "Song Liu" , "Yonghong Song" , "KP Singh" , "Stanislav Fomichev" , "Hao Luo" , "Jiri Olsa" , "Jason A . Donenfeld" , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] [v2] bpf: hide unused bpf_patch_call_args Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, May 24, 2023, at 05:05, Yonghong Song wrote: > On 5/23/23 12:43 PM, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> This function has no callers and no declaration when CONFIG_BPF_JIT_ALWAYS_ON >> is enabled: >> >> kernel/bpf/core.c:2075:6: error: no previous prototype for 'bpf_patch_call_args' [-Werror=missing-prototypes] > > If CONFIG_BPF_JIT_ALWAYS_ON is enabled, the definition of > bpf_patch_call_args should be invisible. Maybe I missed something. > Could you list *ALL& bpf related config options in your setup > so people can reproduce you above error messages? Sorry, my mistake. I've reworded the changelog now to fix this: | This function is only used when CONFIG_BPF_JIT_ALWAYS_ON is disabled, | but CONFIG_BPF_SYSCALL is enabled. When both are turned off, the | prototype is missing but the unused function is still compiled, | as seen from this W=1 warning: | | kernel/bpf/core.c:2075:6: error: no previous prototype for 'bpf_patch_call_args' [-Werror=missing-prototypes] | | Add a matching #ifdef for the definition to leave it out. If this makes sense now, I'll send out a v3. Arnd