]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: extack: avoid parenthesized string constant warning
authorJohannes Berg <johannes.berg@intel.com>
Mon, 15 Jan 2018 11:42:25 +0000 (12:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 20:15:23 +0000 (15:15 -0500)
commit6dfa2a6a54dc584a9640591249a9c2d275259e51
tree828fa5345eea54c7a0107fb0e1bf6c2306458a1d
parent79eb173c3fc2ab2b5251b4494542ba5d4d856b01
netlink: extack: avoid parenthesized string constant warning

NL_SET_ERR_MSG() and NL_SET_ERR_MSG_ATTR() lead to the following warning
in newer versions of gcc:
  warning: array initialized from parenthesized string constant

Just remove the parentheses, they're not needed in this context since
anyway since there can be no operator precendence issues or similar.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h