mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] of/fdt: add const to char *pathp in of_scan_flat_dt()
@ 2012-11-09  7:54 Jingoo Han
  0 siblings, 0 replies; only message in thread
From: Jingoo Han @ 2012-11-09  7:54 UTC (permalink / raw)
  To: 'Andrew Morton', linux-kernel
  Cc: 'Grant Likely', 'Rob Herring', 'Jingoo Han'

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@samsung.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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-09  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09  7:54 [PATCH] of/fdt: add const to char *pathp in of_scan_flat_dt() Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®