From patchwork Thu Sep 17 02:12:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11781271 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 36ED3746 for ; Thu, 17 Sep 2020 02:12:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1FBD120771 for ; Thu, 17 Sep 2020 02:12:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725987AbgIQCM6 (ORCPT ); Wed, 16 Sep 2020 22:12:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12803 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725858AbgIQCM5 (ORCPT ); Wed, 16 Sep 2020 22:12:57 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2F6678C789C4D430621E; Thu, 17 Sep 2020 10:12:55 +0800 (CST) Received: from localhost (10.174.179.108) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Thu, 17 Sep 2020 10:12:47 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH v2 next] fpga: dfl: n3000-nios: Make m10_n3000_info static Date: Thu, 17 Sep 2020 10:12:40 +0800 Message-ID: <20200917021240.40252-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org Fix sparse warning: drivers/fpga/dfl-n3000-nios.c:392:23: warning: symbol 'm10_n3000_info' was not declared. Should it be static? Signed-off-by: YueHaibing --- drivers/fpga/dfl-n3000-nios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/dfl-n3000-nios.c b/drivers/fpga/dfl-n3000-nios.c index 5088f8f0e0cd..686813b59d33 100644 --- a/drivers/fpga/dfl-n3000-nios.c +++ b/drivers/fpga/dfl-n3000-nios.c @@ -389,7 +389,7 @@ static int n3000_nios_init_done_check(struct n3000_nios *ns) return ret; } -struct spi_board_info m10_n3000_info = { +static struct spi_board_info m10_n3000_info = { .modalias = "m10-n3000", .max_speed_hz = 12500000, .bus_num = 0,