Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932847AbeAKLHd (ORCPT + 1 other); Thu, 11 Jan 2018 06:07:33 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:33028 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932732AbeAKLHc (ORCPT ); Thu, 11 Jan 2018 06:07:32 -0500 From: Wei Yongjun To: Joe Perches , Greg Kroah-Hartman , "Luis R. Rodriguez" , "Zhang Rui" , Felipe Balbi , "Andy Shevchenko" CC: Wei Yongjun , , Subject: [PATCH -next] test_firmware: make local symbol test_fw_config static Date: Thu, 11 Jan 2018 11:13:45 +0000 Message-ID: <1515669225-125691-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Fixes the following sparse warnings: lib/test_firmware.c:99:20: warning: symbol 'test_fw_config' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- lib/test_firmware.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_firmware.c b/lib/test_firmware.c index 964784d..1e907dd3b4 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c @@ -96,7 +96,7 @@ struct test_config { struct device *device); }; -struct test_config *test_fw_config; +static struct test_config *test_fw_config; static ssize_t test_fw_misc_read(struct file *f, char __user *buf, size_t size, loff_t *offset)