Skip to content

Commit 8f49309

Browse files
committed
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull misc kbuild updates: "This is the remaining part of kbuild stuff for v4.1-rc1: - One wew coccinelle script and a clarification of the proposed fix in bugon.coccinelle - CONFIG_KERNEL_LZ4 support for extract-ikconfig" * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warning scripts/extract-ikconfig: Support LZ4-compressed images. irqf_oneshot.cocci: add check of devm_request_threaded_irq()
2 parents b153f1d + 3323641 commit 8f49309

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

scripts/coccinelle/misc/irqf_oneshot.cocci

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,38 @@ virtual org
1212
virtual report
1313

1414
@r1@
15+
expression dev;
1516
expression irq;
1617
expression thread_fn;
1718
expression flags;
1819
position p;
1920
@@
21+
(
2022
request_threaded_irq@p(irq, NULL, thread_fn,
2123
(
2224
flags | IRQF_ONESHOT
2325
|
2426
IRQF_ONESHOT
2527
)
2628
, ...)
29+
|
30+
devm_request_threaded_irq@p(dev, irq, NULL, thread_fn,
31+
(
32+
flags | IRQF_ONESHOT
33+
|
34+
IRQF_ONESHOT
35+
)
36+
, ...)
37+
)
2738

2839
@depends on patch@
40+
expression dev;
2941
expression irq;
3042
expression thread_fn;
3143
expression flags;
3244
position p != r1.p;
3345
@@
46+
(
3447
request_threaded_irq@p(irq, NULL, thread_fn,
3548
(
3649
-0
@@ -40,6 +53,17 @@ request_threaded_irq@p(irq, NULL, thread_fn,
4053
+flags | IRQF_ONESHOT
4154
)
4255
, ...)
56+
|
57+
devm_request_threaded_irq@p(dev, irq, NULL, thread_fn,
58+
(
59+
-0
60+
+IRQF_ONESHOT
61+
|
62+
-flags
63+
+flags | IRQF_ONESHOT
64+
)
65+
, ...)
66+
)
4367

4468
@depends on context@
4569
position p != r1.p;

scripts/extract-ikconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ try_decompress '\3757zXZ\000' abcde unxz
6161
try_decompress 'BZh' xy bunzip2
6262
try_decompress '\135\0\0\0' xxx unlzma
6363
try_decompress '\211\114\132' xy 'lzop -d'
64+
try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
6465

6566
# Bail out:
6667
echo "$me: Cannot find kernel config." >&2

0 commit comments

Comments
 (0)