[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20121116.123358.444599559940168490.davem@davemloft.net>
Date: Fri, 16 Nov 2012 12:33:58 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: grant.likely@...retlab.ca
Cc: linux-kernel@...r.kernel.org, devicetree-discuss@...ts.ozlabs.org,
sparclinux@...r.kernel.org, benh@...nel.crashing.org,
julian.calaby@...il.com
Subject: Re: [PATCH v2] drivers/of: Constify device_node->name and
->path_component_name
From: Grant Likely <grant.likely@...retlab.ca>
Date: Fri, 16 Nov 2012 14:20:25 +0000
> Neither of these should ever be changed once set. Make them const and
> fix up the users that try to modify it in-place. In one case
> kmalloc+memcpy is replaced with kstrdup() to avoid modifying the string.
>
> Build tested with defconfigs on ARM, PowerPC, Sparc, MIPS, x86 among
> others.
>
> Signed-off-by: Grant Likely <grant.likely@...retlab.ca>
Acked-by: David S. Miller <davem@...emloft.net>
--
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