lkml.org 
[lkml]   [2019]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] tags: fix "config ..." false positives
"config" regex is too loose, giving a few false positives

CONFIG_and drivers/pci/controller/Kconfig /^ config and MMIO accesses.$/;" r
CONFIG_option arch/x86/Kconfig /^ config option.$/;" r
CONFIG_option init/Kconfig /^ config option determines the parameter's default value.$/;" r
and drivers/pci/controller/Kconfig /^ config and MMIO accesses.$/;" r
option arch/x86/Kconfig /^ config option.$/;" r
option init/Kconfig /^ config option determines the parameter's default value.$/;" r

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

scripts/tags.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -213,8 +213,8 @@ regex_c=(
'/\<\(DEFINE\|DECLARE\)_STATIC_KEY_\(TRUE\|FALSE\)\(\|_RO\)(\([[:alnum:]_]\+\)/\4/'
)
regex_kconfig=(
- '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)/\2/'
- '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)/CONFIG_\2/'
+ '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)$/\2/'
+ '/^[[:blank:]]*\(menu\|\)config[[:blank:]]\+\([[:alnum:]_]\+\)$/CONFIG_\2/'
)
setup_regex()
{
\
 
 \ /
  Last update: 2019-10-20 18:49    [W:0.042 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site