Skip to contentSkip to conversation

Fix MAINTAINERS: remove any use of {a,b}

PATCH In review Anthony PERARD 5 participants 6 messages Feb 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix MAINTAINERS: remove any use of {a,b}

This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

Also, it does not work.

---
 MAINTAINERS | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
MAINTAINERS +6 -3
index db14cfe..cc44cbd 100644
@@ -212,7 +212,8 @@ F:	xen/include/xen/iommu.h
 KCONFIG
 M:	Doug Goldstein <[email protected]>
 S:	Supported
-F:	docs/misc/kconfig{,-language}.txt
+F:	docs/misc/kconfig.txt
+F:	docs/misc/kconfig-language.txt
 F:	xen/tools/kconfig/
 
 KDD DEBUGGER
@@ -223,8 +224,10 @@ F:	tools/debugger/kdd/
 KEXEC
 M:      David Vrabel <[email protected]>
 S:      Supported
-F:      xen/common/{kexec,kimage}.c
-F:      xen/include/{kexec,kimage}.h
+F:      xen/common/kexec.c
+F:      xen/common/kimage.c
+F:      xen/include/kexec.h
+F:      xen/include/kimage.h
 F:      xen/arch/x86/machine_kexec.c
 F:      xen/arch/x86/x86_64/kexec_reloc.S
 
Signature · 7 lines
Anthony PERARD


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 25.02.16 at 13:21, <[email protected]> wrote:

This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

Also, it does not work.

But who said these are (expected to be) regex patterns? At the top of the file, only K: is described as holding such. F:, otoh, refers to wildcards, which {x,y} is kind of an extension of, so I'd rather keep things as they are.

Jan

Quoted 34 lines
---
 MAINTAINERS | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
MAINTAINERS +6 -3
index db14cfe..cc44cbd 100644
@@ -212,7 +212,8 @@ F:	xen/include/xen/iommu.h
 KCONFIG
 M:	Doug Goldstein <[email protected]>
 S:	Supported
-F:	docs/misc/kconfig{,-language}.txt
+F:	docs/misc/kconfig.txt
+F:	docs/misc/kconfig-language.txt
 F:	xen/tools/kconfig/
 
 KDD DEBUGGER
@@ -223,8 +224,10 @@ F:	tools/debugger/kdd/
 KEXEC
 M:      David Vrabel <[email protected]>
 S:      Supported
-F:      xen/common/{kexec,kimage}.c
-F:      xen/include/{kexec,kimage}.h
+F:      xen/common/kexec.c
+F:      xen/common/kimage.c
+F:      xen/include/kexec.h
+F:      xen/include/kimage.h
 F:      xen/arch/x86/machine_kexec.c
 F:      xen/arch/x86/x86_64/kexec_reloc.S
 
Signature · 1 line
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 10 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 25.02.16 at 13:21, <[email protected]> wrote:

This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked
by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

Also, it does not work.

But who said these are (expected to be) regex patterns?

I expect this is a bug in get_maintainer.pl's regexes for parsing the file, not that the field itself is expected to be a regex.

Ian

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 8 lines · Ian Campbell
Quoted 7 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 25.02.16 at 13:21, <[email protected]> wrote:

This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked
by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Also, it does not work.

But who said these are (expected to be) regex patterns?

I expect this is a bug in get_maintainer.pl's regexes for parsing the file, not that the field itself is expected to be a regex.

I would say that it's a missing feature of get_maintainer.pl. It understand . * and ?, and I guess also [].

I can try to handle {,} in get_maintainer.pl if you wish.

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v1 1/1
#4 lore raw
In reply to Anthony PERARD
Quoted 2 lines · Anthony PERARD

This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

F: is supposed to be globs, not regexes, I thought but...

Quoted 4 lines

Also, it does not work.

MAINTAINERS +0 -0
@@ -223,8 +224,10 @@ F:	tools/debugger/kdd/
 KEXEC

MAINTAINERS F: tools/debugger/kdd/ · line 232

Quoted 10 lines
MAINTAINERS +4 -2
 M:      David Vrabel <[email protected]>
 S:      Supported
-F:      xen/common/{kexec,kimage}.c
-F:      xen/include/{kexec,kimage}.h
+F:      xen/common/kexec.c
+F:      xen/common/kimage.c
+F:      xen/include/kexec.h
+F:      xen/include/kimage.h
 F:      xen/arch/x86/machine_kexec.c
 F:      xen/arch/x86/x86_64/kexec_reloc.S

... I prefer this way of listing files since it's easier for humans to parse.

David

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v1 1/1
#5 lore raw
In reply to Anthony PERARD
Quoted 15 lines · Anthony PERARD

This is the complain from perl:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^docs/misc/kconfig{ <-- HERE ,-language}\.txt/ at scripts/get_maintainer.pl line 731.

Also, it does not work.

---
 MAINTAINERS | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
MAINTAINERS +0 -0
index db14cfe..cc44cbd 100644

MAINTAINERS F: xen/include/xen/iommu.h · line 218

Quoted 8 lines
MAINTAINERS +2 -1
@@ -212,7 +212,8 @@ F:	xen/include/xen/iommu.h
 KCONFIG
 M:	Doug Goldstein <[email protected]>
 S:	Supported
-F:	docs/misc/kconfig{,-language}.txt
+F:	docs/misc/kconfig.txt
+F:	docs/misc/kconfig-language.txt
 F:	xen/tools/kconfig/
 

I copied David's section so I assumed it was ok. But this is fine by me.

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel