Commit 461e1565 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Linus Torvalds

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarJoe Perches <joe@perches.com>
Link: http://lkml.kernel.org/r/20200407190029.892-1-christophe.jaillet@wanadoo.frSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d180870d
...@@ -479,7 +479,7 @@ our $allocFunctions = qr{(?x: ...@@ -479,7 +479,7 @@ our $allocFunctions = qr{(?x:
(?:kv|k|v)[czm]alloc(?:_node|_array)? | (?:kv|k|v)[czm]alloc(?:_node|_array)? |
kstrdup(?:_const)? | kstrdup(?:_const)? |
kmemdup(?:_nul)?) | kmemdup(?:_nul)?) |
(?:\w+)?alloc_skb(?:ip_align)? | (?:\w+)?alloc_skb(?:_ip_align)? |
# dev_alloc_skb/netdev_alloc_skb, et al # dev_alloc_skb/netdev_alloc_skb, et al
dma_alloc_coherent dma_alloc_coherent
)}; )};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment