Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143533pxb; Wed, 10 Feb 2021 00:45:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYnbCh18b2zRg8Bv2Aql08nq5rf2k6gaYvG8hV0DhlmfEHvhYWmK2gSeJGVIdGDEUAeZBq X-Received: by 2002:a17:906:d189:: with SMTP id c9mr1997932ejz.36.1612946754300; Wed, 10 Feb 2021 00:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946754; cv=none; d=google.com; s=arc-20160816; b=vr0X+kwIlvaWRhcku6/ACjaTz2dvaRo8amB0zrCgXdcqoClH1o2SQinmGZUcVtkjwu fIleVlWPOUx5/lt6MZvNSIaTTqV8cOOyxzbdvzyn1Hd7kgmxak4HyOlCaX9u6RfBP2BK 1zKgo9uYaC3lQlFnV4obTGzh7XB5n3FHt8O5d4H2hO+J5cFdr+IazrTtgoJg6o1khTBh D493hy6JDzueaIqj0NkFAn9DClXa+8mFHXQw09kxT5q5lAQluNfcs8Sg36TbkzseZyP4 spw322tgJJ9r7hIsMGEl2bf6+yFs3uU4Jm2HG1kX/lTdBbl5ZndbhY2ia0CsMtk+rdTF 2f5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Y8PsAGIwDwGnWV7wn9mogjh/a4aWBqTXEhUCIQ85c9c=; b=uolfsKQHyB85CTv5yQbGQXXRjFK8wX4sAEHPT8Tvwj0gDkZ3+YEtOEjJTtBRthd4YU 6IT17vBcqu5oQKUmQw8y7qNJv6G5hUtRAJmMnEZ3C6TYjONLbIVvUX2Oj73cboAzBOnX K3hFsMwUI1Ks7bSSdJfMyQTRojNQ//0IM0zdtdYb9sG60KoO4klwMqXUo24fgsvxES0a o/SYLrS0fjxd5nlTZtKqUjeg6Oe936Bug27HYpWtrdUR2nw+x3dy/0TPZjEChhEn55DK 0sdso/3b36CQtUI2bpLMo3nsfn1zWHlEr058t0o/cmb2fjlsCziYr69s8kud1Uhd5QOv 7YlQ== 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 v4si1244227edj.37.2021.02.10.00.45.30; Wed, 10 Feb 2021 00:45:54 -0800 (PST) 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 S233187AbhBJHtc (ORCPT + 99 others); Wed, 10 Feb 2021 02:49:32 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12505 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232977AbhBJHsr (ORCPT ); Wed, 10 Feb 2021 02:48:47 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DbBfS045bzjLJl; Wed, 10 Feb 2021 15:46:40 +0800 (CST) Received: from localhost.localdomain (10.175.102.38) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Wed, 10 Feb 2021 15:47:53 +0800 From: Wei Yongjun To: Hulk Robot , Lee Jones , "Hans de Goede" CC: Wei Yongjun , , Subject: [PATCH -next] mfd: arizona: Make some symbols static Date: Wed, 10 Feb 2021 07:56:26 +0000 Message-ID: <20210210075626.1096193-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: drivers/mfd/arizona-spi.c:28:31: warning: symbol 'reset_gpios' was not declared. Should it be static? drivers/mfd/arizona-spi.c:29:31: warning: symbol 'ldoena_gpios' was not declared. Should it be static? Those symbols are not used outside of arizona-spi.c, so this commit marks them static. Fixes: e933836744a2 ("mfd: arizona: Add support for ACPI enumeration of WM5102 connected over SPI") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/mfd/arizona-spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/arizona-spi.c b/drivers/mfd/arizona-spi.c index 24a2c75d691a..aa1d6f94ae53 100644 --- a/drivers/mfd/arizona-spi.c +++ b/drivers/mfd/arizona-spi.c @@ -25,8 +25,8 @@ #include "arizona.h" #ifdef CONFIG_ACPI -const struct acpi_gpio_params reset_gpios = { 1, 0, false }; -const struct acpi_gpio_params ldoena_gpios = { 2, 0, false }; +static const struct acpi_gpio_params reset_gpios = { 1, 0, false }; +static const struct acpi_gpio_params ldoena_gpios = { 2, 0, false }; static const struct acpi_gpio_mapping arizona_acpi_gpios[] = { { "reset-gpios", &reset_gpios, 1, },