2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/scripts/coccinelle/misc
Easwar Hariharan 249e7ced72 coccinelle: misc: secs_to_jiffies: implement context and report modes
As requested by Ricardo and Jakub, implement report and context modes for
the secs_to_jiffies Coccinelle script.  While here, add the option to look
for opportunities to use secs_to_jiffies() in headers.

Link: https://lkml.kernel.org/r/20250703225145.152288-1-eahariha@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com>
Closes: https://lore.kernel.org/all/20250129-secs_to_jiffles-v1-1-35a5e16b9f03@chromium.org/
Closes: https://lore.kernel.org/all/20250221162107.409ae333@kernel.org/
Tested-by: Ricardo Ribalda <ribalda@chromium.org>
Cc: Julia Lawall <julia.lawall@inria.fr>
Cc: Nicolas Palix <nicolas.palix@imag.fr>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-07-19 19:08:25 -07:00
..
add_namespace.cocci scripts/nsdeps: get 'make nsdeps' working again 2024-12-03 08:22:25 -08:00
array_size_dup.cocci coccinelle: misc: add array_size_dup script to detect missed overflow checks 2020-08-04 22:46:58 +02:00
array_size.cocci treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 505 2019-06-19 17:11:22 +02:00
badty.cocci treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 505 2019-06-19 17:11:22 +02:00
boolconv.cocci treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 505 2019-06-19 17:11:22 +02:00
cond_no_effect.cocci treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 505 2019-06-19 17:11:22 +02:00
cstptr.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
do_div.cocci coccinelle: semantic patch to check for inappropriate do_div() calls 2021-09-11 22:57:39 +02:00
doubleinit.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
excluded_middle.cocci coccinelle: misc: add excluded_middle.cocci script 2020-09-21 19:45:46 +02:00
flexible_array.cocci coccinelle: misc: restrict patch mode in flexible_array.cocci 2021-05-01 21:23:56 +02:00
ifcol.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
irqf_oneshot.cocci coccinelle: irqf_oneshot: reduce the severity due to false positives 2021-05-01 21:23:57 +02:00
minmax.cocci coccinelle: misc: minmax: Suppress reports for err returns 2024-05-20 21:31:20 +02:00
newline_in_nl_msg.cocci coccinelle: Add missing (GE)NL_SET_ERR_MSG_* to strings ending with newline test 2025-02-27 18:11:37 -08:00
noderef.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
of_table.cocci License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
orplus.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
returnvar.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
secs_to_jiffies.cocci coccinelle: misc: secs_to_jiffies: implement context and report modes 2025-07-19 19:08:25 -07:00
semicolon.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
struct_size.cocci coccinelle: semantic patch to check for potential struct_size calls 2024-02-29 13:38:01 -08:00
swap.cocci coccinelle: misc: add swap script 2021-05-01 21:23:56 +02:00
test_addr.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
uninitialized_var.cocci coccinelle: misc: update uninitialized_var.cocci documentation 2021-05-01 21:23:56 +02:00
warn.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00