Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2762007ybb; Sun, 22 Mar 2020 07:09:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtydOw64OIZ02/NJWqo0/uv+u/xpRo534QlJcLy9lhHlRQHcQVSlogAlyxGT2PEBmTA5JyK X-Received: by 2002:a9d:3f49:: with SMTP id m67mr5756506otc.315.1584886196053; Sun, 22 Mar 2020 07:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584886196; cv=none; d=google.com; s=arc-20160816; b=ZWsE93uR5ES8P5/blToFyPZnPsjHPbS4IBuJaE3+qrvCwMATovjreAWQlLQyGSJrKA 5enfo5bRrTDXeZtDOv24ULNE+29gDLIh0Sb0MXFF4WWHltgb3tvxNYsxPK2LGLvhMu94 JtgFkT5as5aZ00McziGDff/XOipBkFD8GhQt1/2rBbO4r5cv1EyWeuiLnh9wSHhP3mVK InlM7mkCU99sfVqRbnziJm6QRYZuu4v2qeGIYfbmTk2JF8YXTwSljuNJYwxBVEH5FWcY QpV95qRQIECCT01lYiHGoRYZlT/+L/JMlTF8LjVDvC0JTg4LeaglEyJByuV4D509kCiN aaqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pBi9Z1+WU4iatz2iMB4jF1UwMBCBTv6eef7cooUFzms=; b=fVz+WVNAZE0sQJ+pvtGzwFyKL3DYZdI2yHrGOwOJTrpomMbN2cK6jdSLTQHrO4O/cE CHDqBf54sLj7yPqfl9RjCcDo+Uhn7fvgEzNf2tVaBFbGeovhGwRr8n0IGdLyy2QtkMNN yO0bZgipQPphd9t77WUr372dUmqu9GxhAjH+s3OqwIshowJlvnfWNyvS0sXW9COAYxZs KUWQS1vdm8uDsl5miqqJlZezJztxN6Zw29CcfRqk2jrSQNZt3tDOR3laVqEe5qS0k06V B5HeieNZVcE1UNu252x/sa/WCsZZxG4q82WgYH6odZ2HsuIkfVhHxL7LFATrAJFEyuCh gf0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TJIxq9L5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g124si609527oia.0.2020.03.22.07.09.44; Sun, 22 Mar 2020 07:09:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TJIxq9L5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726902AbgCVOJQ (ORCPT + 99 others); Sun, 22 Mar 2020 10:09:16 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42539 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbgCVOJP (ORCPT ); Sun, 22 Mar 2020 10:09:15 -0400 Received: by mail-ed1-f67.google.com with SMTP id b21so13201824edy.9; Sun, 22 Mar 2020 07:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pBi9Z1+WU4iatz2iMB4jF1UwMBCBTv6eef7cooUFzms=; b=TJIxq9L5ba4cEhBvxABO8RbqK99o+J/uKW5K1NX4zXF9+ccmgGCPN9xMUi3ODDtmLB PBcy2vAXjGmcFRLGDazaFjQZvbJh+C9y+uSB775OZQa/Bt5Ggi0yydC2VFFqBXH7gj52 LqUsLpN7NtK+REuoB0Nv2mBg0qVXg+k4aMoRmFVo+m6xiMAgWrlFo8W/hI4JadSMvf7J bhqnmhjnGg9m1dsznfGJ6HxlhaTKBtn0UWLHwW+Ec8zCodR4zlWgkqxU1ENYrBPSsQ9d UHQONLyRmz2kJCTh6MrOG+d2qEE7dNmpMg8y2pJLEqAK5KvYotdGwiZn02+j2embB16p W3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pBi9Z1+WU4iatz2iMB4jF1UwMBCBTv6eef7cooUFzms=; b=J1DcsnXm0zWPVxh2lHFMBcVbWxxwbsnarohsNTjO6RrtJGuYFTwtJGs/2OhcfrXOzS RlBS/Omeza/s6TmtostNIrP4t8e4q39hZlIu8FqEhfA4Wq7VyIEw+kr5JUZlK2eCb2mq SG0EDCTNrQ8BteQJK99BuqMQY4d6k24rJlTYSXPi7UeB0GEWifl8NOMDTu1n3JHXKEJG dm8ZVyS3G7q2cszI2bhGCtIv8lN9JNFwrbBXZyaVBAEjNi0mvQl8rVwy2z3tb8nMvKjg VocdeRbzbMI+JFHC5A7yxaeYsN5z2+aIIZPtnFgadOazp0T1XWQKx/QrCRCaK7TaXHwl eWjQ== X-Gm-Message-State: ANhLgQ3D/unUw2dHkkCNc5RqTAWsiaaVgPNebeYhYgcNOu1H/e8JtZ6M DOI7I/rhScA+JTHebTqELMV66jGgG14= X-Received: by 2002:a17:906:34db:: with SMTP id h27mr15609447ejb.111.1584886152225; Sun, 22 Mar 2020 07:09:12 -0700 (PDT) Received: from localhost.localdomain ([2a02:21b0:9002:6131:e6f7:db0e:d6e9:e56e]) by smtp.googlemail.com with ESMTPSA id q21sm223858ejb.47.2020.03.22.07.09.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2020 07:09:11 -0700 (PDT) From: Jean-Philippe Menil To: netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, jpmenil@gmail.com, "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bpf: fix build warning - missing prototype Date: Sun, 22 Mar 2020 15:08:44 +0100 Message-Id: <20200322140844.4674-1-jpmenil@gmail.com> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix build warning when building net/bpf/test_run.o with W=1 due to missing prototype for bpf_fentry_test{1..6}. These functions are only used in test_run.c so just make them static. Therefore inline keyword should sit between storage class and type. Signed-off-by: Jean-Philippe Menil --- net/bpf/test_run.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c index d555c0d8657d..c0dcd29f682c 100644 --- a/net/bpf/test_run.c +++ b/net/bpf/test_run.c @@ -113,32 +113,32 @@ static int bpf_test_finish(const union bpf_attr *kattr, * architecture dependent calling conventions. 7+ can be supported in the * future. */ -int noinline bpf_fentry_test1(int a) +static noinline int bpf_fentry_test1(int a) { return a + 1; } -int noinline bpf_fentry_test2(int a, u64 b) +static noinline int bpf_fentry_test2(int a, u64 b) { return a + b; } -int noinline bpf_fentry_test3(char a, int b, u64 c) +static noinline int bpf_fentry_test3(char a, int b, u64 c) { return a + b + c; } -int noinline bpf_fentry_test4(void *a, char b, int c, u64 d) +static noinline int bpf_fentry_test4(void *a, char b, int c, u64 d) { return (long)a + b + c + d; } -int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e) +static noinline int bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e) { return a + (long)b + c + d + e; } -int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f) +static noinline int bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f) { return a + (long)b + c + d + (long)e + f; } -- 2.25.2