Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163Ab2KTLtb (ORCPT ); Tue, 20 Nov 2012 06:49:31 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:52779 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752492Ab2KTLta (ORCPT ); Tue, 20 Nov 2012 06:49:30 -0500 X-AuditID: cbfee61b-b7f616d00000319b-ee-50ab6e3fcb47 From: Kukjin Kim To: "'Sachin Kamat'" , linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, patches@linaro.org References: <1353300961-22632-1-git-send-email-sachin.kamat@linaro.org> In-reply-to: <1353300961-22632-1-git-send-email-sachin.kamat@linaro.org> Subject: RE: [PATCH 1/1] pinctrl: Samsung: Do not initialise statics to 0 Date: Tue, 20 Nov 2012 20:49:19 +0900 Message-id: <0c8a01cdc715$1312c410$39384c30$%kim@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac3GEwe7xGUJWj8aTxycVDMrdoC0XQBAem7w Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrKIsWRmVeSWpSXmKPExsVy+t8zI137vNUBBr3TBCwu75rD5sDo8XmT XABjFJdNSmpOZllqkb5dAlfG9QeLWAqecVTsP9bO3sDYx97FyMEhIWAi0XmpoouRE8gUk7hw bz1bFyMXh5DAMkaJhmcrWCESJhJ7jt1ghUgsYpS4ebCFHcKZxyTR8HoxO0gVm4CGxOH3z8Bs EQEviYvzfzOC2MwCBhJTz+4FiwsJuEv0T1vMBmJzCnhITPvYA1YjLOAp8a51Cdg2FgFViRvf VrKCXMcrYCvReCgeJMwrICjxY/I9FoiRWhLrdx5ngrDlJTavecsM8Yy6xKO/uhAXGEl0z33L DlEiIrHvxTtGiOkCEt8mH2KBKJeV2HSAGeQTCY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lZGplZGJmYm+MQVhLnbfZICRASSE8sSc1O TS1ILYIZx8TBKdXAWPP6j8+JXyzXUrckN19z3cM2qyQ8flGaG9ufuhqjxGuLdHSL+tgYU1VO +31infKbn3dfZkby85d/2Q5FhK9LqT32IrVwUv8Ht0l2M8LnfutcfX3xgpZ33D7pe7RVF107 mZhx5HSn3/u5+dPEdA86x8n94GYxnrUpZ+7P1r0WzrfOqWddr93PrMRSnJFoqMVcVJwIAOXP 4cMIAwAA X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1328 Lines: 48 Sachin Kamat wrote: > > Static variables are initialised to 0 by GCC. > Fixes the following checkpatch error: > ERROR: do not initialise statics to 0 or NULL > FILE: pinctrl/pinctrl-samsung.c:50: > static unsigned int pin_base = 0; > > Signed-off-by: Sachin Kamat > --- > drivers/pinctrl/pinctrl-samsung.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl- > samsung.c > index 81c9896..36f8875 100644 > --- a/drivers/pinctrl/pinctrl-samsung.c > +++ b/drivers/pinctrl/pinctrl-samsung.c > @@ -47,7 +47,7 @@ struct pin_config { > { "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN }, > }; > > -static unsigned int pin_base = 0; > +static unsigned int pin_base; > > static inline struct samsung_pin_bank *gc_to_pin_bank(struct gpio_chip > *gc) > { > -- > 1.7.4.1 Looks OK to me. Linus, can I pick this up in my tree? Thanks. Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/