From nobody Mon Feb 9 06:28:08 2026 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4060D198E75 for ; Tue, 20 Aug 2024 16:40:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724172038; cv=none; b=N83Y6YawY110EOS1H2/FPwDjgiBixxvO8zwISK9v6i1MS9xlt0pN7n+zOr0bbwOQA8yi1Fi1iKtL7gjTo+XEy6wRtH86xuVEljp9agiM0gEA4kJSpHOpcp6uA/SOFDluO4GLOu06J6DR0RT8M9eHSqAbSSdzt5iRmMfkPWHP1P4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724172038; c=relaxed/simple; bh=Px4o3ybZn+EhCvnxZ9ITUU05sxboY1gwiT/t/n47Eqk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=CX+XUm1sT1i/YgdENSrCUFfzvub0sc187BsUxjlAHhRw8ybAkDBfSEHQisDK27eic7BxAdpR6cijmV8tKgAT7V0rD0jhbBwNFaROorzAlGjt5ZjYbMKkQGo2Cnar6rBJrubjsh2QaTnHPBQ/UgJlIj9UtgOmyVDk9NhP/ENI1LI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=CozGDtWj; arc=none smtp.client-ip=209.85.210.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="CozGDtWj" Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-70df4b5cdd8so276801a34.1 for ; Tue, 20 Aug 2024 09:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1724172034; x=1724776834; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=ENlu+2a9FTwR4Z9MjTmktYFRdqAIvmAoZoo/YtZ/k3k=; b=CozGDtWjwIJ476MERE3u9kGiN8FrLX49tQkKhySZgKX9k+N1ra09wYRPDNNDXx4ov2 98ev9PwtjaBNW1eRbwdiEmpgvnWGfB7IuQyEGUJFaAVIdgflL0sHunzVccG9iNCVaoFG fsLyyypfchCDN4DGL5AsoibDllurcSbW7R1WK4jP9uGg1ywEqcc0+QNHUtxSHHvzCQ6C f3oBW21VM5l6H1L3acl2ocJMKQex3prg4N4f+DJcWzY0yAqTiKZfQHSvbvy1fg+5XpaA KqFR7jLw2PxAPRPkIHFH13oOj6iHbc64t7RislmuIi8QsxPN1qntxvYdKEbzBT/M/BbC /yTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724172034; x=1724776834; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ENlu+2a9FTwR4Z9MjTmktYFRdqAIvmAoZoo/YtZ/k3k=; b=sXbJPmU4fLaP2HaWXFlh6P7ikuaOYrowjiZp0dv2pQzR9ylSMM1qesS6f+KwOzLcm3 XTPNxRHsae/TJ7utFKJEWHjnu8OpqKxrNBL+IJanFa7u+ytqT9DiA9Jnwu0R7kxjtNzK GntArRf+8wqTRQG7d93zY3OICS01rLK6b9IKi2u3J0sR0OFwUnZ7y55qoCVBV1spLWu0 bTG1c/U6zKacSA2VxMBr3hxVssgYuBRhoUJm7Qdp4oForqN7ltBLxkNNfw4XViNFjMhR X9ofalVvwG9TsHk37b9rmvUB5WeQUzUyqANjvYoOD3vv4sqXhubbr5M7FTnvBFdE7sO3 jtcg== X-Forwarded-Encrypted: i=1; AJvYcCVOV68l99MUDEvO5IDOXCsmdQQDCGrTMe69wLwAQGYvqbAOVb7HnfKfX+yklVMDjLjZA51Zw2ZzHBfyno0=@vger.kernel.org X-Gm-Message-State: AOJu0YzoqgEIyZJv+7wgC+9pNRyvovEhS8SBKVQCX0nKTqAjMFjt9EpB vnH7dpdS6sv2qDu7ksHjOSfWMlHaDPURtQJp1hJ9jShLIEsvfrxRM8gaIQLnqJ+e72Oe3S/OjcR U X-Google-Smtp-Source: AGHT+IFVJZjcS3gy5aFpaFbN6ZaTMn6rqWk2HDYqa3JCl5e37bRbj4pfKSVj1FgMIXRY++ii3OPnbA== X-Received: by 2002:a05:6870:9a12:b0:261:23f6:78d with SMTP id 586e51a60fabf-2701c574ec9mr19099932fac.41.1724172034199; Tue, 20 Aug 2024 09:40:34 -0700 (PDT) Received: from [127.0.1.1] (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2706f8a3ca2sm1270456fac.49.2024.08.20.09.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 09:40:33 -0700 (PDT) From: David Lechner Date: Tue, 20 Aug 2024 11:40:18 -0500 Subject: [PATCH] scripts/get_abi.pl: more strict matching of [XYZ] Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240820-scripts-fix-get_abi-xyz-v1-1-6f6aea9b638b@baylibre.com> X-B4-Tracking: v=1; b=H4sIAPHGxGYC/x2M2wpAQBBAf0XzbGpscvsVSbsM5gXtSIv8u83jq XPOA8peWKFJHvB8isq2RsjSBIbFrjOjjJHBkMmpMoQ6eNkPxUkCznz01gmG60ayjlztClNmNcR 69xyV/9x27/sBPS7wlGkAAAA= To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, David Lechner X-Mailer: b4 0.14.1 When using `scripts/get_abi.pl undefined --search-string=3Diio` to try to find undocumented ABI's in the IIO subsystem, no matches were found. This was due to the fact that we have documented a directory naming pattern: What: /sys/bus/iio/devices/iio:deviceX which gets translated to the regex /sys/.*/iio\:device.* which matches everything under every iio:device directory, causing any attributes below this directory to incorrectly be filtered out as already documented. This patch makes the matching more strict by changing the replacement for [XYZ] from .* to [^/]* so that we don't match the directory separator. This way documenting directories won't filter out everything contained in the directory as already being documented. Signed-off-by: David Lechner --- get_maintainers.pl didn't pick up any matches for this patch, so I guess this would go through the kbuild tree? (Since MAINTAINERS says: "KERNEL BUILD + files below scripts/ (unless maintained elsewhere)") --- scripts/get_abi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index de1c0354b50c..f65158694852 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -867,7 +867,7 @@ sub undefined_symbols { $what =3D~ s/\{[^\}]+\}/.*/g; $what =3D~ s/\[[^\]]+\]/.*/g; =20 - $what =3D~ s/[XYZ]/.*/g; + $what =3D~ s/[XYZ]/[^\/]*/g; =20 # Recover [0-9] type of patterns $what =3D~ s/\xf4/[/g; --- base-commit: 521b1e7f4cf0b05a47995b103596978224b380a8 change-id: 20240820-scripts-fix-get_abi-xyz-0ab0b9b62719 Best regards, --=20 David Lechner