Skip to content

Commit 461e156

Browse files
tititiou36torvalds
authored andcommitted
checkpatch: fix a typo in the regex for $allocFunctions
Here, we look for function such as 'netdev_alloc_skb_ip_align', so a '_' is missing in the regex. To make sure: grep -r --include=*.c skbip_a * | wc ==> 0 results grep -r --include=*.c skb_ip_a * | wc ==> 112 results Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Joe Perches <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent d180870 commit 461e156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ sub hash_show_words {
479479
(?:kv|k|v)[czm]alloc(?:_node|_array)? |
480480
kstrdup(?:_const)? |
481481
kmemdup(?:_nul)?) |
482-
(?:\w+)?alloc_skb(?:ip_align)? |
482+
(?:\w+)?alloc_skb(?:_ip_align)? |
483483
# dev_alloc_skb/netdev_alloc_skb, et al
484484
dma_alloc_coherent
485485
)};

0 commit comments

Comments
 (0)