Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

From: Daniel Borkmann
Date: Fri Jul 10 2020 - 11:19:59 EST


On 7/10/20 8:17 AM, Alexander A. Klimov wrote:
Am 09.07.20 um 22:37 schrieb Daniel Borkmann:
On 7/9/20 9:42 PM, Alexander A. Klimov wrote:
Rationale:
Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp465"
which has nothing to do with XDP.

Signed-off-by: Alexander A. Klimov <grandmaster@xxxxxxxxxxxx>
---
 See also: 20200709132607.7fb42415@carbon/">https://lore.kernel.org/lkml/20200709132607.7fb42415@carbon/

 MAINTAINERS | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 1d4aa7f942de..2bb7feb838af 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -18708,8 +18708,8 @@ F:ÂÂÂ include/trace/events/xdp.h
 F: kernel/bpf/cpumap.c
 F: kernel/bpf/devmap.c
 F: net/core/xdp.c
-N:ÂÂÂ xdp
-K:ÂÂÂ xdp
+N:ÂÂÂ (?:\b|_)xdp(?:\b|_)
+K:ÂÂÂ (?:\b|_)xdp(?:\b|_)

Please also include \W to generally match on non-alphanumeric char given you
explicitly want to avoid [a-z0-9] around the term xdp.
Aren't \W, ^ and $ already covered by \b?

Ah, true; it says '\b really means (?:(?<=\w)(?!\w)|(?<!\w)(?=\w))', so all good.
In case this goes via net or net-next tree:

Acked-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx>