Skip to contentSkip to conversation

MAINTAINERS: Better regex for dma_buf|fence|resv

PATCH In review Daniel Vetter 3 participants 3 messages Mar 17, 2020 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MAINTAINERS: Better regex for dma_buf|fence|resv

We're getting some random other stuff that we're not relly interested in, so match only word boundaries. Also avoid the capture group while at it.

Suggested by Joe Perches.

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 3005be638c2c..fc5d5aa53147 100644
@@ -5025,7 +5025,7 @@ F:	include/linux/dma-buf*
 F:	include/linux/reservation.h
 F:	include/linux/*fence.h
 F:	Documentation/driver-api/dma-buf.rst
-K:	dma_(buf|fence|resv)
+K:	'\bdma_(?:buf|fence|resv)\b'
 T:	git git://anongit.freedesktop.org/drm/drm-misc
 
 DMA-BUF HEAPS FRAMEWORK
Signature · 1 line
2.25.1
#1 lore raw

Hi Daniel.

Quoted 1 line · Daniel Vetter

We're getting some random other stuff that we're not relly interested

really

Quoted 4 lines

in, so match only word boundaries. Also avoid the capture group while at it.

Suggested by Joe Perches.

You want a:

The patch looks correct, but I am not fluent in perlish.

Sam

Quoted 31 lines
---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 3005be638c2c..fc5d5aa53147 100644
@@ -5025,7 +5025,7 @@ F:	include/linux/dma-buf*
 F:	include/linux/reservation.h
 F:	include/linux/*fence.h
 F:	Documentation/driver-api/dma-buf.rst
-K:	dma_(buf|fence|resv)
+K:	'\bdma_(?:buf|fence|resv)\b'
 T:	git git://anongit.freedesktop.org/drm/drm-misc
 
 DMA-BUF HEAPS FRAMEWORK
Signature · 6 lines
2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to Daniel Vetter
Quoted 3 lines · Daniel Vetter

We're getting some random other stuff that we're not relly interested in, so match only word boundaries. Also avoid the capture group while at it.

[]

MAINTAINERS

Quoted 1 line
MAINTAINERS +0 -0

[]

MAINTAINERS F: include/linux/dma-buf* · line 5028

Quoted 6 lines
MAINTAINERS +1 -1
@@ -5025,7 +5025,7 @@ F:	include/linux/dma-buf*
 F:	include/linux/reservation.h
 F:	include/linux/*fence.h
 F:	Documentation/driver-api/dma-buf.rst
-K:	dma_(buf|fence|resv)
+K:	'\bdma_(?:buf|fence|resv)\b'

You don't want the single quotes in the K: entry

K: \bdma_(?:buf|fence|resv)\b

My mistake for adding them in the initial suggestion.