Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756076AbaAGBad (ORCPT ); Mon, 6 Jan 2014 20:30:33 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:44457 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755790AbaAGBac (ORCPT ); Mon, 6 Jan 2014 20:30:32 -0500 X-AuditID: cbfee690-b7f266d00000287c-5d-52cb58b6679b From: Jingoo Han To: "'Andrew Morton'" Cc: linux-kernel@vger.kernel.org, "'Jingoo Han'" Subject: [PATCH 1/3] backlight: kb3886_bl: fix incorrect placement of __initdata marker Date: Tue, 07 Jan 2014 10:30:30 +0900 Message-id: <002101cf0b48$0d38a280$27a9e780$%han@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: Ac8LSA0gEKLTvq6wRRuOH6kV6zbuQQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFIsWRmVeSWpSXmKPExsVy+t8zI91tEaeDDC6t1rCYs34Nm8XlhZdY LS7vmsPmwOxxYsZvFo++LasYPT5vkgtgjuKySUnNySxLLdK3S+DKODj9EUtBG0fFvJmnWRoY 77B1MXJySAiYSHz+NpcJwhaTuHBvPVCci0NIYBmjxNNpu+CKrr6cwwqRmM4o0bf0MDOE84tR 4vDLNrB2NgE1iS9fDrN3MXJwiAjoS7S1aICYzAIuEkeniYBUCAtESqz6s5wVxGYRUJW4+fIu C4jNK2Ar8WHVJ0YIW1Dix+R7YHFmAS2JzduaWCFseYnNa94yg4yUEFCXePRXFyQsIqAnMX/b HagSEYl9L94xglwmIbCKXeLo5Z/MELsEJL5NPsQC0SsrsekAM8RbkhIHV9xgmcAoNgvJ5llI Ns9CsnkWkhULGFlWMYqmFiQXFCelF5noFSfmFpfmpesl5+duYoTE04QdjPcOWB9iTAZaP5FZ SjQ5HxiPeSXxhsZmRhamJ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uLrFq70j0P7mxNVTf6Zd+rBT49KeUtbVj0NEXGJZvjEqsRRnJBpqMRcV JwIAobYF9BoDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The __initdata marker can be virtually anywhere on the line, EXCEPT right after "struct". The preferred location is before the "=" sign if there is one, or before the trailing ";" otherwise. It also fixes the following chechpatch warning. WARNING: __initdata should be placed after kb3886bl_device_table[] Signed-off-by: Jingoo Han --- drivers/video/backlight/kb3886_bl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/kb3886_bl.c b/drivers/video/backlight/kb3886_bl.c index 7592cc2..84a110a 100644 --- a/drivers/video/backlight/kb3886_bl.c +++ b/drivers/video/backlight/kb3886_bl.c @@ -78,7 +78,7 @@ static struct kb3886bl_machinfo *bl_machinfo; static unsigned long kb3886bl_flags; #define KB3886BL_SUSPENDED 0x01 -static struct dmi_system_id __initdata kb3886bl_device_table[] = { +static struct dmi_system_id kb3886bl_device_table[] __initdata = { { .ident = "Sahara Touch-iT", .matches = { -- 1.7.10.4 -- 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/