diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 18:31:49 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 18:31:49 -0400 |
| commit | 8f49309a261dbe9b5217908e0e8ee8da7f148695 (patch) | |
| tree | c4c606e15eefd9ce06f798e02b3ad682971f6b35 /scripts | |
| parent | b153f1d37a7d469501482bb3b38f398d4e778616 (diff) | |
| parent | 33236415ece63d5689411f3ddb676eeb93af2698 (diff) | |
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()
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/coccinelle/misc/irqf_oneshot.cocci | 24 | ||||
| -rwxr-xr-x | scripts/extract-ikconfig | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/coccinelle/misc/irqf_oneshot.cocci b/scripts/coccinelle/misc/irqf_oneshot.cocci index 6cfde94be0ef..a24a754ae1d7 100644 --- a/scripts/coccinelle/misc/irqf_oneshot.cocci +++ b/scripts/coccinelle/misc/irqf_oneshot.cocci | |||
| @@ -12,11 +12,13 @@ virtual org | |||
| 12 | virtual report | 12 | virtual report |
| 13 | 13 | ||
| 14 | @r1@ | 14 | @r1@ |
| 15 | expression dev; | ||
| 15 | expression irq; | 16 | expression irq; |
| 16 | expression thread_fn; | 17 | expression thread_fn; |
| 17 | expression flags; | 18 | expression flags; |
| 18 | position p; | 19 | position p; |
| 19 | @@ | 20 | @@ |
| 21 | ( | ||
| 20 | request_threaded_irq@p(irq, NULL, thread_fn, | 22 | request_threaded_irq@p(irq, NULL, thread_fn, |
| 21 | ( | 23 | ( |
| 22 | flags | IRQF_ONESHOT | 24 | flags | IRQF_ONESHOT |
| @@ -24,13 +26,24 @@ flags | IRQF_ONESHOT | |||
| 24 | IRQF_ONESHOT | 26 | IRQF_ONESHOT |
| 25 | ) | 27 | ) |
| 26 | , ...) | 28 | , ...) |
| 29 | | | ||
| 30 | devm_request_threaded_irq@p(dev, irq, NULL, thread_fn, | ||
| 31 | ( | ||
| 32 | flags | IRQF_ONESHOT | ||
| 33 | | | ||
| 34 | IRQF_ONESHOT | ||
| 35 | ) | ||
| 36 | , ...) | ||
| 37 | ) | ||
| 27 | 38 | ||
| 28 | @depends on patch@ | 39 | @depends on patch@ |
| 40 | expression dev; | ||
| 29 | expression irq; | 41 | expression irq; |
| 30 | expression thread_fn; | 42 | expression thread_fn; |
| 31 | expression flags; | 43 | expression flags; |
| 32 | position p != r1.p; | 44 | position p != r1.p; |
| 33 | @@ | 45 | @@ |
| 46 | ( | ||
| 34 | request_threaded_irq@p(irq, NULL, thread_fn, | 47 | request_threaded_irq@p(irq, NULL, thread_fn, |
| 35 | ( | 48 | ( |
| 36 | -0 | 49 | -0 |
| @@ -40,6 +53,17 @@ request_threaded_irq@p(irq, NULL, thread_fn, | |||
| 40 | +flags | IRQF_ONESHOT | 53 | +flags | IRQF_ONESHOT |
| 41 | ) | 54 | ) |
| 42 | , ...) | 55 | , ...) |
| 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 | ) | ||
| 43 | 67 | ||
| 44 | @depends on context@ | 68 | @depends on context@ |
| 45 | position p != r1.p; | 69 | position p != r1.p; |
diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig index e1862429ccda..3b42f255e2ba 100755 --- a/scripts/extract-ikconfig +++ b/scripts/extract-ikconfig | |||
| @@ -61,6 +61,7 @@ try_decompress '\3757zXZ\000' abcde unxz | |||
| 61 | try_decompress 'BZh' xy bunzip2 | 61 | try_decompress 'BZh' xy bunzip2 |
| 62 | try_decompress '\135\0\0\0' xxx unlzma | 62 | try_decompress '\135\0\0\0' xxx unlzma |
| 63 | try_decompress '\211\114\132' xy 'lzop -d' | 63 | try_decompress '\211\114\132' xy 'lzop -d' |
| 64 | try_decompress '\002\041\114\030' xyy 'lz4 -d -l' | ||
| 64 | 65 | ||
| 65 | # Bail out: | 66 | # Bail out: |
| 66 | echo "$me: Cannot find kernel config." >&2 | 67 | echo "$me: Cannot find kernel config." >&2 |
