Thread (5 messages) flat view 5 messages, 2 authors, 2017-11-27

[PATCH 1/2] ARM: davinci: make the function argument as const

From: Sekhar Nori <hidden>
Date: 2017-11-27 12:16:01
Also in: lkml

On Monday 16 October 2017 03:38 PM, Bhumika Goyal wrote:
Make the function argument of the function davinci_common_init
as const as it's memory contents are only copied during a
memcpy call. So, the fields of the structure to which the argument
soc_info points to never gets modified and therefore the argument can
be made const.
Add const to the prototype too.

Signed-off-by: Bhumika Goyal <redacted>
The subject line is written too generically. I changed that to

"
ARM: davinci: make argument to davinci_common_init() as const
"

while applying to v4.16/fixes-non-critical

Thanks,
Sekhar
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help