[<prev] [next>] [day] [month] [year] [list]
Message-id: <000201cdbe4f$71202bc0$53608340$%han@samsung.com>
Date: Fri, 09 Nov 2012 16:54:27 +0900
From: Jingoo Han <jg1.han@...sung.com>
To: 'Andrew Morton' <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Cc: 'Grant Likely' <grant.likely@...retlab.ca>,
'Rob Herring' <rob.herring@...xeda.com>,
'Jingoo Han' <jg1.han@...sung.com>
Subject: [PATCH] of/fdt: add const to char *pathp in of_scan_flat_dt()
Fixed build warning as below:
drivers/of/fdt.c: In function 'of_scan_flat_dt':
drivers/of/fdt.c:490:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
Signed-off-by: Jingoo Han <jg1.han@...sung.com>
---
This patch is based on linux-next-20121109 code tree.
drivers/of/fdt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 0ca0f9e..738228f 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -459,7 +459,7 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,
do {
u32 tag = be32_to_cpup((__be32 *)p);
- char *pathp;
+ const char *pathp;
p += 4;
if (tag == OF_DT_END_NODE) {
--
1.7.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