Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp773347rdb; Fri, 9 Feb 2024 00:03:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKkMhLIiptLz2xj7XRK9OBKmLK27CR7DXzOioCKuaiIlZpU4lx5LrlvCHh3ocYVj1zlq9r X-Received: by 2002:ac8:5d47:0:b0:42a:3c46:8a88 with SMTP id g7-20020ac85d47000000b0042a3c468a88mr1156895qtx.38.1707465797505; Fri, 09 Feb 2024 00:03:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707465797; cv=pass; d=google.com; s=arc-20160816; b=jt+8Jt7KyoRioQy10zbrhRCbGkXyrAbd7vaHDbK+Z02FUfxrpOwyBh6suMopOE0+Vi XHc16v9drE2WOUZwm8Sq/ur4V2BqkPPmWiU1EZDq7K5IDdTY90ur/japEkCObt6kpOL2 P1QSgm5ziy+wwsDPAM2BEV1sXk59D9tklMltPerWpw33pZTt8ovPgCJmohdTnAY+cEJh 8e6EI/EiJg017TYdlSb21OTgBKlzzY56e/SFzAE5P3rC45ZJ4VJKO8GnV34Qaelpk/Df inqvGsjH+SukX7TFKuTGmEaMAmZTq0XtXVqYUmuiYfYAqw6mbyQD+vYiV5bbntcwV9na tcMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nNfb3cdcaygLe+x9w54Pa11QMS/Y9FTWJR1bLASCqwM=; fh=kWCaeOoMAEQgn2AOLcLYIKo8m7gD9jKAvJ46ReeAkd8=; b=DTO9qPgHieX6pZmIgjGrAkiG88vtEk1GHO2JkgBj/QiFDOY3eiUG/xM4af7YehaJ3C Zb4W7Bu/IsqXlebj8ejGlEi+4YMQydxHL0xsY0mYleD5ReWztNiPGd1yHJK+NU4Lr8vn 6Z5GSe33GUC6F1+k5Nro9IzMRP9X2LKzrAevCdToHFJgL7ou2UDKmA8lM5K3xNum+ip+ LQcndHXxY+TGX8R+cYmVvj5yPkjCU8SrFr2EB8tElmhVcuyHS3Ci38P03fE7AmDY+MTa S3rskwr1ErOVDoonsDgMlA6Z/tH8v/N/7ovESXETHxR0Z7HsrfHDK6kU7s/UhVTo2jOL HkLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iImVKs7u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXQPkwU6V3cRSWM2UKDmPoCzSk+9M1/GH7HSOtG/K5OzQP61R7xX1Ee8o40Ocgf0LlRfolSnjgVkCXzO+EA4c0KzH6pleDy2qOI1cqKkg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f39-20020a05622a1a2700b0042bfe8c5a23si1344839qtb.137.2024.02.09.00.03.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 00:03:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iImVKs7u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-59101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 457CA1C2276F for ; Fri, 9 Feb 2024 08:03:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30CAB65BBC; Fri, 9 Feb 2024 08:03:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iImVKs7u" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 561BE65BA7; Fri, 9 Feb 2024 08:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707465782; cv=none; b=PHoaL6jWF62fkQuTUOBpKdOxRkOzPlFaXoOQFOufhkmzhm8MOwm5g/5wNeyy77w6FRJgDXjjQH8WrsPTRjKIPhD9c59Wdm5ayg5GGxFKtxKVKHhKTVsDCrZbZJ/WrIENz/KOJrBpuMmtvuX3bjparDVo5sP4ev0xA+ayn83flC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707465782; c=relaxed/simple; bh=2Muc/VDBOnFkSv5EltSjHZ4YlzxsFKvyis0GCBtGEZM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SByO9LPOEnMRhJ8m5ZxLYSHNHDDxVm2+g3/jjZx5fr8N5hiCesYBZsCG1HmQT2BGHb5ROdkRiu519Hb5Te4NGEosLMXLv4QaAiUNWe9H6SIKqkcnzQZ8LDOQrQccJfrNdSGUEYHPnHUQLErpF/cZQptfMnEb/ZvHcGbemCNCl8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iImVKs7u; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94F27C433C7; Fri, 9 Feb 2024 08:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707465781; bh=2Muc/VDBOnFkSv5EltSjHZ4YlzxsFKvyis0GCBtGEZM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iImVKs7ueeAUGAvDStMU3SsSM++eyZXLb70Zs5PYcPJbZ8a/LTHN3gYhZIVGwdzCs uH9Hce6KsdPiyjuh3Ny7zALVcKhAfCko9kf8mE7ypN7WpzRl/dIEOszNMrk3vD8lco lX6KDUNxkzO1IyTZg4WOFhQgnDBzjy8+L1UiXt/s83wqjNQ8cZ8qbF3bJXyf+0x+/9 hWPiwUVNDHb8HCjxsNmTL0emBXGI7pul/Sb1fyC+EiF4bEVaDa2aF0ZiPJhCVmVc5U ZpCDGZ6AqdnILuY8ohFUROgby+dEB1/N8zdRNBuJSoS33bL5NfLi9gbGaID57+eGAF d1Cw733cVFzgA== Date: Fri, 9 Feb 2024 08:02:57 +0000 From: Lee Jones To: Jonathan Corbet Cc: Stephen Rothwell , Florian Eckert , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the leds-lj tree Message-ID: <20240209080257.GI689448@google.com> References: <20240105173352.6ce1a546@canb.auug.org.au> <17b4305d9fe1fbed3e39597f0767f7bd@dev.tdt.de> <20240109222031.6ce4aecc@canb.auug.org.au> <87wmreee6j.fsf@meer.lwn.net> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87wmreee6j.fsf@meer.lwn.net> On Thu, 08 Feb 2024, Jonathan Corbet wrote: > Stephen Rothwell writes: > > > Hi Florian, > > > > On Mon, 08 Jan 2024 08:47:07 +0100 Florian Eckert wrote: > >> > >> Hello Stephen, > >> > >> thanks for your hint > >> > >> On 2024-01-05 07:33, Stephen Rothwell wrote: > >> > Hi all, > >> > > >> > After merging the leds-lj tree, today's linux-next build (htmldocs) > >> > produced this warning: > >> > > >> > Warning: /sys/class/leds//rx is defined 2 times: > >> > Documentation/ABI/testing/sysfs-class-led-trigger-tty:7 > >> > Documentation/ABI/testing/sysfs-class-led-trigger-netdev:49 > >> > Warning: /sys/class/leds//tx is defined 2 times: > >> > Documentation/ABI/testing/sysfs-class-led-trigger-tty:15 > >> > Documentation/ABI/testing/sysfs-class-led-trigger-netdev:34 > >> > >> The behavior of the tty trigger can be controlled via the Rx and Tx file. > >> If a value is set in Rx or Tx, the LED flashes when data is transmitted in > >> this direction. The same behavior is used for the netdev trigger. > >> I have therefore used the same pattern for the new tty trigger as well. > >> > >> I didn't know that the names have to be unique! > >> > >> I'm a bit at a loss as to what to do now. Should I put a prefix "tty_" > >> in front of the names so that we have "tty_rx", "tty_tx"? > >> > >> If we do it this way, however, the general question arises as to whether > >> we do have to use a prefix everywhere! If new triggers are added, then the > >> names for a config file are already used up and anyone who then wants to use > >> the same name for an other trigger with the same config file because it describe > >> the same function must then work with a prefix! > > > > I think this is only a problem with the documentation system, not the > > actual sysfs file naming. Maybe just adding a uniquifying bit to the > > "" part will solve it. Or maybe we need the tooling to be taught > > about placeholders in sysfs names (or maybe there is already a way). > > So I finally remembered to look at this when I had a chance to... yes, > it wants each ABI entry to be unique, and the ones listed here are not. > I *think* the easiest answer is to take a line like: > > What: /sys/class/leds//rx > > and turn it into something like: > > What: /sys/class/leds//rx > > ...that makes the warning go away and, I think, conveys the information > just as well. A bit kludgy, perhaps, but I don't really see anything > else there that could be used to disambiguate the names automatically. Thanks Jon. Please see: https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git/commit/?h=for-leds-next&id=4694dcab92cf0e78ff65978888ae14a6373f1ceb -- Lee Jones [李琼斯]