mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-19 00:47:38 +00:00
The NL_SET_ERR_MSG_MOD macro is used to report a string describing an error message to userspace via the netlink extended ACK structure. It should not have a trailing newline. Add a cocci script which catches cases where the newline marker is present. Using this script, fix the handful of cases which accidentally included a trailing new line. I couldn't figure out a way to get a patch mode working, so this script only implements context, report, and org. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| add_namespace.cocci | ||
| array_size.cocci | ||
| badty.cocci | ||
| boolconv.cocci | ||
| boolinit.cocci | ||
| boolreturn.cocci | ||
| bugon.cocci | ||
| cond_no_effect.cocci | ||
| cstptr.cocci | ||
| doubleinit.cocci | ||
| ifaddr.cocci | ||
| ifcol.cocci | ||
| irqf_oneshot.cocci | ||
| newline_in_nl_msg.cocci | ||
| noderef.cocci | ||
| of_table.cocci | ||
| orplus.cocci | ||
| returnvar.cocci | ||
| semicolon.cocci | ||
| warn.cocci | ||