History

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

Christophe JAILLET committed 6 years ago

Commit 461e1561 parent d1808701 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -479,7 +479,7 @@ our $allocFunctions = qr{(?x: · 478 unmodified lines
479 (?:kv|k|v)[czm]alloc(?:_node|_array)? |479 (?:kv|k|v)[czm]alloc(?:_node|_array)? |
480 kstrdup(?:_const)? |480 kstrdup(?:_const)? |
481 kmemdup(?:_nul)?) |481 kmemdup(?:_nul)?) |
482 (?:\w+)?alloc_skb(?:ip_align)? |482 (?:\w+)?alloc_skb(?:_ip_align)? |
483 # dev_alloc_skb/netdev_alloc_skb, et al483 # dev_alloc_skb/netdev_alloc_skb, et al
484 dma_alloc_coherent484 dma_alloc_coherent
485)};485)};