From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752016AbdEIIs5 (ORCPT ); Tue, 9 May 2017 04:48:57 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33121 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbdEIIs4 (ORCPT ); Tue, 9 May 2017 04:48:56 -0400 From: Guru Das Srinagesh To: linux@roeck-us.net, groeck@chromium.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: typec: Make undeclared symbol static Date: Tue, 9 May 2017 01:48:53 -0700 Message-Id: <1494319733-28375-1-git-send-email-gurooodas@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config' was not declared. Should it be static? Signed-off-by: Guru Das Srinagesh --- drivers/staging/typec/tcpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c index 5e5be74..df72d8b 100644 --- a/drivers/staging/typec/tcpci.c +++ b/drivers/staging/typec/tcpci.c @@ -425,7 +425,7 @@ static const struct regmap_config tcpci_regmap_config = { .max_register = 0x7F, /* 0x80 .. 0xFF are vendor defined */ }; -const struct tcpc_config tcpci_tcpc_config = { +static const struct tcpc_config tcpci_tcpc_config = { .type = TYPEC_PORT_DFP, .default_role = TYPEC_SINK, }; -- 2.7.4