Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3183328ybd; Mon, 24 Jun 2019 21:11:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKe7fNBAKEMPkN/q1wjrz5qXAWKYlVThTMqBb2OpRya3ys212A68KTlK5hLHm+IDx6Te0O X-Received: by 2002:a63:348:: with SMTP id 69mr31788376pgd.5.1561435883007; Mon, 24 Jun 2019 21:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561435882; cv=none; d=google.com; s=arc-20160816; b=qeaZ63T8xoWef79UWPzdnyj5I1o0ISnYVCLEVsAr77VvWj3CBniAncENH1iftBC9Ku PqMdypQn1qpWI9p1gGqcUHJgjBaPz3h3G5br0iPe7yeoIPb/jWr2mLGs2r7Z3jlVJSwT 7jaMvbgTibeVyc3NUuNghVnH4R2j3TlhgwWeqwLZJLT/srDe6ccvLGBDvHLnolrcAuTy CqH3ClU2iGpk2uOPoOD1FP7Tfz/KVKLfCFkcaaij1/3qLDo4BCPdrH/ValEC4buRawu9 fQdRZNnY4vvia9RjQMvrxeYPuh2sMlOxJP3AEnniCQZQEE5Ckro7Oe+NDKZt8m7jbFB0 ewIQ== 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=C1vKg43tlnIvEDsMOW0hXaM5CEC57C9ppadEJhlOi5s=; b=TzF24RHWhf42TLNWfqOYX1euTwJUdF+dfSIBE2DhXLF5RWbZJRxAWMs9DMH/95ukyy 1MtIhjxIGqvd8QMXPD8gmM4cadjcRKPPkd6QI/vpbpnCyljQEkn6U2dQV7gVLZ8QeLk+ kTE/h/v/VM90Kk/3HQRqwmVO97D+3bBFLwm+xBatmpnj3CImeqtwPyok4s9r0cdA27w6 qo0lxtP8ui6E+Icfw63Q8YFsY6SzFM0ZVL+W9WIfuhBiyTkUWiOZ/kA7Y5Km9dwZrOEK SYMTk+GawovNZ9pQ1OC3GKtvyOiBAZQoKy+NoqKNwzSW+e+hPhNIX7TJGSfUtZ1uJ4vv /+fw== 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 c11si11651136pgk.383.2019.06.24.21.11.07; Mon, 24 Jun 2019 21:11:22 -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 S1730488AbfFYCcv (ORCPT + 99 others); Mon, 24 Jun 2019 22:32:51 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:19103 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726774AbfFYCcv (ORCPT ); Mon, 24 Jun 2019 22:32:51 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2EBA02D62198397EADAF; Tue, 25 Jun 2019 10:32:48 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 25 Jun 2019 10:32:37 +0800 From: YueHaibing To: , , , , , CC: , , , , YueHaibing Subject: [PATCH net-next] xdp: Make __mem_id_disconnect static Date: Tue, 25 Jun 2019 10:31:37 +0800 Message-ID: <20190625023137.29272-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.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: net/core/xdp.c:88:6: warning: symbol '__mem_id_disconnect' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- net/core/xdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/xdp.c b/net/core/xdp.c index b29d7b5..829377c 100644 --- a/net/core/xdp.c +++ b/net/core/xdp.c @@ -85,7 +85,7 @@ static void __xdp_mem_allocator_rcu_free(struct rcu_head *rcu) kfree(xa); } -bool __mem_id_disconnect(int id, bool force) +static bool __mem_id_disconnect(int id, bool force) { struct xdp_mem_allocator *xa; bool safe_to_remove = true; -- 2.7.4