Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-02-27 | coccinelle: Add missing (GE)NL_SET_ERR_MSG_* to strings ending with newline test | Gal Pressman | |
Add missing (GE)NL_SET_ERR_MSG_*() variants to the list of macros checked for strings ending with a newline. Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Gal Pressman <gal@nvidia.com> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Link: https://patch.msgid.link/20250226093904.6632-2-gal@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> | |||
2022-08-07 | update Coccinelle URL | Julia Lawall | |
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> | |||
2020-05-07 | net: remove newlines in NL_SET_ERR_MSG_MOD | Jacob Keller | |
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> |