Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4882493yba; Wed, 10 Apr 2019 06:57:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2wxUSG9x5AfCFpYs/oS4DfNXvUYGNTHrWT6zzHje9/QwJm90rVdl+n/dVMZ5pUXLGvlmB X-Received: by 2002:a63:ed48:: with SMTP id m8mr27170941pgk.104.1554904678797; Wed, 10 Apr 2019 06:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554904678; cv=none; d=google.com; s=arc-20160816; b=vtvOOHYyyi5bcen4FfMKLTZx4ciSwBtJCDgLEUPbiV1fJWlPDsEbt9Ca0T7LqB1D3B i5Co42m6Vh5PF37zsIc6iqTNhQRoSaE/SEwUVM6cGxEAFm6vQ88fA6X7eczA5z1Ln9TH ctesATD479BY7++riEt2Ob+6vcvzbfyH3QetM0iCBGoHR8UKxdZEMBhJxCSQOAGx+37g SPZLrsJ/KH5Fx6nIHPAXKpw3wEr6GxHHZ3DbVcGXfS5BLwJUiM40Ut7x262o+7iubNl1 0PkqTqxl4NbNcYdenn0he0ZVTqlPC2ZSZH4oYbEe+DWdtVjqcdfYWhLTiu9KIx24R8CH LYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=IdmYjK/9+8ok66d9fzDHpIOwIdIJNR/fOPYv95gZjOE=; b=WdwxvQ8CEh2cQWpK6jMD6PXJWalYaqdNBjtqP2FvdGeJ1jtFypuF85+2TGzCzIKFev bWXO3LXH3n9DBUEYk15L+BNUY7Xz3DAVELBiq9g/BJNP/q45TRnxa/dH2CBk91t1PtKO Qn66/W2IDbl+ayiejRvy1IN1uhRYZhdapUmfRQO+WkUcsHuXPKmICIbNqi/MsYvvYPJ+ c26s/0LY/a2W5VKUDMnpx/h9qlJCskURAmkVj/xCjbXDLJgKlpmMrp/ZH8xKtilk6GhG 4MEtjFNcM2SY31Yr+uSOUYhl+k50+4cqBsIJqJNWBUtphOMXiL1GkbECWcb5Qzaa6RoV GDRA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si14817279pll.251.2019.04.10.06.57.42; Wed, 10 Apr 2019 06:57:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732221AbfDJNzs (ORCPT + 99 others); Wed, 10 Apr 2019 09:55:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6143 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730195AbfDJNzr (ORCPT ); Wed, 10 Apr 2019 09:55:47 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A4B40962C441F931E2CE; Wed, 10 Apr 2019 21:55:43 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.408.0; Wed, 10 Apr 2019 21:55:32 +0800 From: Yue Haibing To: , , , , , , , CC: , , , , YueHaibing Subject: [PATCH] MIPS: eBPF: Make ebpf_to_mips_reg() static Date: Wed, 10 Apr 2019 21:49:23 +0800 Message-ID: <20190410134923.35100-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fix sparse warning: arch/mips/net/ebpf_jit.c:196:5: warning: symbol 'ebpf_to_mips_reg' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- arch/mips/net/ebpf_jit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/mips/net/ebpf_jit.c b/arch/mips/net/ebpf_jit.c index 3548a69..dfd5a4b 100644 --- a/arch/mips/net/ebpf_jit.c +++ b/arch/mips/net/ebpf_jit.c @@ -193,8 +193,9 @@ enum which_ebpf_reg { * separate frame pointer, so BPF_REG_10 relative accesses are * adjusted to be $sp relative. */ -int ebpf_to_mips_reg(struct jit_ctx *ctx, const struct bpf_insn *insn, - enum which_ebpf_reg w) +static int ebpf_to_mips_reg(struct jit_ctx *ctx, + const struct bpf_insn *insn, + enum which_ebpf_reg w) { int ebpf_reg = (w == src_reg || w == src_reg_no_fp) ? insn->src_reg : insn->dst_reg; -- 2.7.4