[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1333055554-31300-14-git-send-email-u.kleine-koenig@pengutronix.de>
Date: Thu, 29 Mar 2012 23:12:31 +0200
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Cc: kernel@...gutronix.de, Kyungmin Park <kyungmin.park@...sung.com>,
Tomasz Stanislawski <t.stanislaws@...sung.com>,
Mauro Carvalho Chehab <mchehab@...radead.org>,
linux-arm-kernel@...ts.infradead.org, linux-media@...r.kernel.org
Subject: [PATCH 14/17] media/video/s5p-tv: mark const init data with __initconst instead of __initdata
As long as there is no other non-const variable marked __initdata in the
same compilation unit it doesn't hurt. If there were one however
compilation would fail with
error: $variablename causes a section type conflict
because a section containing const variables is marked read only and so
cannot contain non-const variables.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: Kyungmin Park <kyungmin.park@...sung.com>
Cc: Tomasz Stanislawski <t.stanislaws@...sung.com>
Cc: Mauro Carvalho Chehab <mchehab@...radead.org>
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-media@...r.kernel.org
---
drivers/media/video/s5p-tv/mixer_drv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/s5p-tv/mixer_drv.c b/drivers/media/video/s5p-tv/mixer_drv.c
index a2c0c25..edca065 100644
--- a/drivers/media/video/s5p-tv/mixer_drv.c
+++ b/drivers/media/video/s5p-tv/mixer_drv.c
@@ -461,7 +461,7 @@ static struct platform_driver mxr_driver __refdata = {
static int __init mxr_init(void)
{
int i, ret;
- static const char banner[] __initdata = KERN_INFO
+ static const char banner[] __initconst = KERN_INFO
"Samsung TV Mixer driver, "
"(c) 2010-2011 Samsung Electronics Co., Ltd.\n";
printk(banner);
--
1.7.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists