From patchwork Fri Aug 26 03:51:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 12955530 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B48E8ECAAA3 for ; Fri, 26 Aug 2022 03:52:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244154AbiHZDwL (ORCPT ); Thu, 25 Aug 2022 23:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiHZDwK (ORCPT ); Thu, 25 Aug 2022 23:52:10 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 828107CAAE; Thu, 25 Aug 2022 20:52:09 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id p187so301894iod.8; Thu, 25 Aug 2022 20:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=KpNWz8FLPoRf8HXKT4NVUx/ROvWQMe9GuTyq4+JJvJQ=; b=M0DUklRP7+S/Lx4ycAjV8/BdqB1lYK94Vjbif9CCndLqXWMbhwHGGuMwywB7iH++d0 0yVUqhaaIneCPvsLIxB94fwOaVcKvfvjevhpnZOSxwQmIr89280RxK/teiIVpV5S7Kb/ cuo5xJlqtrWv+NtPaIBm5vHhqLw3p8dXsujNFqeIeNpw/kk8NLPcxX2UghDIYzCsKdkB ic4jasn7YTRFurqJoapCbw3X4u64CFwijUQXDbAItm/+MJXpDqLpQwlkfiKW2LhuBOrj NqMTP8GI4/SPDDIY3EbwlqAzmRL39lod/Koqk8MvgbPemLQPDMHKRNOAZy0iPPiqHyGJ Q8bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=KpNWz8FLPoRf8HXKT4NVUx/ROvWQMe9GuTyq4+JJvJQ=; b=agHQ2FbOmuQx2cnXg3aEEvsn+9FPUPgeU8SoxPVVW6KZJcGvSlfAe2gmaqbsA++PQD OTP5A/XFvEaDSx3gJpIrUVXpFM7losgDlDuaD1qCsgBYPAN6hxX9tt47ilA7WevPmM4k X31w7aCmX/eg1my5tddhrXOOoRayouYHqODa1xSFr8YyhyRWu4HrLkK2JVk6fLVXg/wI ujRFAbbxdOgEOjb+W2mRNLDeqUOrOx1gEYQUcP9bpE+i6i/Nu+lRYI+IJAf4W4urtHS0 24n2y0qcKQWEOou33TvANFGjNhAJjn2ctQBcqQPQ/c16nudH+GLjrGulyaK6LCNdmUVC 2RdA== X-Gm-Message-State: ACgBeo1cW75tXWnixUNuv1y6U61oWXfNaEcUOzYVS62/dx3DyZ9uiMbb Ac4OZOZRJHkd/ZzKE+FDoc8ELNBz0Uc33Q== X-Google-Smtp-Source: AA6agR6mCE2eHqs2vnpfln9WspFTBY5pF+AX97AeoVrB9ikh4WPNr4/767Jmd4wKsqp8v+NIl7kb1w== X-Received: by 2002:a02:b80d:0:b0:349:c003:3838 with SMTP id o13-20020a02b80d000000b00349c0033838mr3165903jam.282.1661485928354; Thu, 25 Aug 2022 20:52:08 -0700 (PDT) Received: from james-x399.localdomain (71-33-138-207.hlrn.qwest.net. [71.33.138.207]) by smtp.gmail.com with ESMTPSA id m12-20020a0566022e8c00b0067b75781af9sm525784iow.37.2022.08.25.20.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 20:52:07 -0700 (PDT) From: James Hilliard To: bpf@vger.kernel.org Cc: James Hilliard , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/bpf: declare subprog_noise as static in tailcall_bpf2bpf4 Date: Thu, 25 Aug 2022 21:51:39 -0600 Message-Id: <20220826035141.737919-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Due to bpf_map_lookup_elem being declared static we need to also declare subprog_noise as static. Fixes the following error: progs/tailcall_bpf2bpf4.c:26:9: error: 'bpf_map_lookup_elem' is static but used in inline function 'subprog_noise' which is not static [-Werror] 26 | bpf_map_lookup_elem(&nop_table, &key); | ^~~~~~~~~~~~~~~~~~~ Signed-off-by: James Hilliard Acked-by: Song Liu --- tools/testing/selftests/bpf/progs/tailcall_bpf2bpf4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf4.c b/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf4.c index b67e8022d500..a017d6b2f1dd 100644 --- a/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf4.c +++ b/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf4.c @@ -19,7 +19,7 @@ struct { int count = 0; int noise = 0; -__always_inline int subprog_noise(void) +static __always_inline int subprog_noise(void) { __u32 key = 0;