Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp48454pxb; Tue, 28 Sep 2021 15:08:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdefIIOZHonNW8xFGm1l7wXnseDZWf//ltJ/ydQmi6JbPexufCVKMmYHGNWJ/VDopCn2XV X-Received: by 2002:a62:5803:0:b0:447:d62d:161a with SMTP id m3-20020a625803000000b00447d62d161amr44150pfb.85.1632866934087; Tue, 28 Sep 2021 15:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632866934; cv=none; d=google.com; s=arc-20160816; b=L42MKrRFhFkjxrn2ZfFMTZW8jD6DTbkwEPjg7mO5CDcObGcdYZ64iNNrHTRTsFdMBN z9Xgh8vdJp/8FYwAGWEdXLowT9zTWAxaq47n/Fkt7KDoumml/WM/Vz0wTbfxBeNQI9A5 eCswLPWGQiPrjoLWB1GUY+8NfvYRcxQjBPmyZsOhBvlZWvHKp1DSrpBmDf0uWmwyTSgj wJ42CknvBhkqzyP5Ge7VxQt7i07ZivFH74HoOjaP0ghYC1pNlQNV7Hks6hm28hz/oxMC fxQIc+CR8Fxc08ngqegSr7y2In5G7qzrnCPa9cjpOfE9c4KMDCktGW+0RMChs7ubvOSy Gg1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9coATZdYX3MKhTP3srqMlja/LCZKqACOl9E0DrdSac0=; b=u/KYfGlW0+dJ2HrL2VTAvIwoKjApON7tvEHGnGjDXwLv5JzhLfKgo92v2rFXUKSPjs bDbwTdHAAKLOikYJ7JR6tQAvApq+L6WBx5mcDU7PcXarseKmUv7hsTZE3rkOW84KAH6n 1mI3KB84iap6bd2O5HFJ2XPF7K7FEdVeOxtfx9KyrR7mq+53FX8pxFhvHuXlPhbgjnxk +lfap6S32PRIeBZdPKJLpK3+LwnXeeS0aqhCDrYrdTfHAFb9BuikS5nIHzOhvdH7DSzo BhV0rljYdNR9dKeynzXnkTIWfPR4WJEL7Ucz1rfB9Ad6wb6Ihx5PyuQJ0bGPdRxqpREd j7wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mbRghuJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si559432pge.312.2021.09.28.15.08.41; Tue, 28 Sep 2021 15:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mbRghuJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243026AbhI1WJW (ORCPT + 99 others); Tue, 28 Sep 2021 18:09:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:59404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242494AbhI1WJT (ORCPT ); Tue, 28 Sep 2021 18:09:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0DEAA61357; Tue, 28 Sep 2021 22:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632866859; bh=s29u+ndGckzyi3RdYvXQRzn9okKr6F7XeNAuFwFBAEI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mbRghuJx0LY9gMG60LB8EEezX9DZZfcdAXycn0LE760bC8X75ZWJ88gmHtK9y3joL WZZW/27NzHzhj86qfoAp6Hd3COJaGwyCYyumJVY3O/4HBnE9o4TW9cM1tzpMB/+lPz S4vLw6SrdHQmMRH+sxFfAzO16WhsDW3jop8n01/ljkU3u2SmUzOFQw4xeY4qhIuUth iQc5Mswmk9zOYrnVajl6v2t0bQH3X5SW1y6GKYd60ioGlu3QpskSUbSka4wXk0MshI 6OnuiZJek+kVHIfXmoX7O5UEdilCq4IjZOms9vmwwHhAybBbCK+rnAgHLSBbZY55vZ KtyZMPgO989CQ== Date: Wed, 29 Sep 2021 00:07:34 +0200 From: Mauro Carvalho Chehab To: Bjorn Helgaas Cc: Linux Doc Mailing List , Greg Kroah-Hartman , Jonathan Corbet , Amey Narkhede , Bjorn Helgaas , Carlos Bilbao , Leon Romanovsky , Maximilian Luz , Niklas Schnelle , Oded Gabbay , linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/17] ABI: sysfs-bus-pci: add a alternative What fields Message-ID: <20210929000734.77328446@coco.lan> In-Reply-To: <20210928183403.GA715406@bhelgaas> References: <15ba8c07f1b0fd7359106920c8e34a7b9af7aea6.1632750608.git.mchehab+huawei@kernel.org> <20210928183403.GA715406@bhelgaas> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 28 Sep 2021 13:34:03 -0500 Bjorn Helgaas escreveu: > > diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci > > index 1eeac7f59672..16afe3f59cbd 100644 > > --- a/Documentation/ABI/testing/sysfs-bus-pci > > +++ b/Documentation/ABI/testing/sysfs-bus-pci > > @@ -1,4 +1,5 @@ > > What: /sys/bus/pci/drivers/.../bind > > +What: /sys/devices/pciX/.../bind > > Wasn't somebody just updating these wildcard-ish items in pathnames? > > Ah, it was you :) > > https://lore.kernel.org/all/4ede4ec98e295f054f3e5a6f3f9393b5e3d5d2a7.1631782432.git.mchehab+huawei@kernel.org/ > > Changing "virtfnN" to "virtfn". > > Is that same sort of thing applicable here? My system has > > /sys/devices/pci0000:00/... Yes and no ;-) See, there are lots of places under Documentation/ABI that already use X, Y and Z uppercase letters to identify wildcards. As there aren't any sysfs entries that have those uppercase letters, I opted to teach the get_abi.pl script to threat such uppercase chars as wildcards. The same can't be done with N, because the USB subsystem (and a couple of other ABIs) use uppercase N as valid symbols like "bNum.*". Long term, one alternative would be to replace the What fields by a regular expressions on ABI. That would avoid some magic inside get_abi.pl. However, a change like that would require touching almost all files, and has a drawback to make them more obscure - even if we use named group regexes. Thanks, Mauro