Re: [PATCH v2] drivers/of: Constify device_node->name and ->path_component_name

2012-11-29 Thread Grant Likely
On Wed, 28 Nov 2012 10:46:04 +1100, Michael Neuling wrote: > > 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 w

Re: [PATCH v2] drivers/of: Constify device_node->name and ->path_component_name

2012-11-27 Thread Michael Neuling
> 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. Gran

Re: [PATCH v2] drivers/of: Constify device_node->name and ->path_component_name

2012-11-16 Thread David Miller
From: Grant Likely Date: Fri, 16 Nov 2012 14:20:25 + > 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 defconf