Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1541617ybz; Thu, 23 Apr 2020 00:24:12 -0700 (PDT) X-Google-Smtp-Source: APiQypLgAL3wJEopdYdGmtyOj93Z1aC/bVkZ0gw/ogSWe8bQ/W5IlZYtAUxC52a+XV+MlLaXCjjk X-Received: by 2002:a05:6402:1d09:: with SMTP id dg9mr1719846edb.118.1587626652693; Thu, 23 Apr 2020 00:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587626652; cv=none; d=google.com; s=arc-20160816; b=TaxSDNMD6QPgcVhZoxFqSj7W8O5ZYZwlpNA3I7wGHX0CdQQOcvHjtLrRgPMo0U5RxO 5vUpFgT+ZApKKChtemCFKroNq6hVSzg31yO53VbIK1jmMsNJkSuKYh7Bgdjw+/uoFtW1 DlFpkRbeSBXxstQx7HbxLl+edSC69slkRIUpGXLx66IBkhV4qpKf5UqVlSccI3OGevup vZs7minbbkvQYEjUB6J07Phb2rEhP7pOxRCxNSyiKACXRuLYRNy8EE3OK8ooWBuKs/mF CYcLwVIqZqs0YlpkCUgt/tXvVosS1e3uRG6N3d3PI4RxEK3Zy3/0PJTT7aREUKoXbm+C LELA== 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=UdtZY+ZcxktUXWd/YKa9x2OGUsyihBHK75IlB/3fjxU=; b=HnkDY2tFahVR9/lQUpTvoND9Uqz4j1Z9QaLMQV6AIm0Iv3AevcdSOTYgON2QULs7Re ULou/8jgcvEr1i3DQFNMv8nAyy6HBQ5fVJPTsMZr69iQ+bJX6BAWbw0HJuc4+YnWGffS vC1jUfrwZVpQxBUYzrNsfs8vj2NauopcurxPCdwgBZI7AUSrhhWgpXvxOuFOD67jya20 CUgrfFSCbJ4fBeNeM6zz/fR+v/qV9YTiTYODRHbTPanzAFUVgewNBUE05zrMEdsvxI4A NUunVINDwsQZDtqG7wpFzKKW2WkbUD/v2w3PYqxmVTa/6BvePM2jXQ8WUm9lXvgoJBmG iejg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di15si650795edb.423.2020.04.23.00.23.49; Thu, 23 Apr 2020 00:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbgDWHVd (ORCPT + 99 others); Thu, 23 Apr 2020 03:21:33 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2876 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725562AbgDWHVc (ORCPT ); Thu, 23 Apr 2020 03:21:32 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E36214EA4ACBEAE2ECCD; Thu, 23 Apr 2020 15:21:30 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 23 Apr 2020 15:21:21 +0800 From: Zou Wei To: , , CC: , , Zou Wei Subject: [PATCH -next] qed: Make ll2_cbs static Date: Thu, 23 Apr 2020 15:27:40 +0800 Message-ID: <1587626860-97801-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/net/ethernet/qlogic/qed/qed_ll2.c:2334:20: warning: symbol 'll2_cbs' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/qed/qed_ll2.c index 037e597..4afd857 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_ll2.c +++ b/drivers/net/ethernet/qlogic/qed/qed_ll2.c @@ -2331,7 +2331,7 @@ static void qed_ll2_register_cb_ops(struct qed_dev *cdev, cdev->ll2->cb_cookie = cookie; } -struct qed_ll2_cbs ll2_cbs = { +static struct qed_ll2_cbs ll2_cbs = { .rx_comp_cb = &qed_ll2b_complete_rx_packet, .rx_release_cb = &qed_ll2b_release_rx_packet, .tx_comp_cb = &qed_ll2b_complete_tx_packet, -- 2.6.2