Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp258197rdd; Tue, 9 Jan 2024 03:20:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEogvQ3Ga9EpWuzIqLC/Xzau6GUlgdAGNocZFzum/rP/rKSLtFUXrIODHEnIH6QVV1A+ALN X-Received: by 2002:a17:906:58d:b0:a28:93cb:19a6 with SMTP id 13-20020a170906058d00b00a2893cb19a6mr458869ejn.61.1704799250902; Tue, 09 Jan 2024 03:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704799250; cv=none; d=google.com; s=arc-20160816; b=TaPVnsSxP0f65KigoRLgkJryfpJfRi+yYFUWNkPnWkIwfUK3wSreUIyPJA6T7c4/cs hZBVvbruNImNBbEtJpsL7a83NiR6w2e+jB+At08y6QhjGqiPONizKvPo8Pu9PoIbgDY9 5D2l2D9F4rN5sIPQS1a1bWjhu5rPUCQ1S0r2cMAJomX5L76XE02BnuV1sys2l20KwuA3 hLcMzkKV6Z8n/wx/S1TjgA+qf9OT3XAJ2I4FPXih2FbbW3EEiISfLDx3h22D/qAUiRjR e8qpeQEmP0jekfVHIlcoPYXyF9WIX57kXORMIMLa5QzbG/fLULVXB4K2vmzuzUNVR33o OgkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=g2o0sp+obm3C+i8AIlUzPBvR52lZ5IozrJgX9L/WxhA=; fh=92PnpxvynEkcpxQf5pERizPKZYwThLlUkPfDWsxLkAE=; b=v5lifWJAIyUc32sPiroSb11WZYqWup7qBWX3SNVwuF2lDgL6Bbu+fsYd0/UJSjOB+D znpVdCS7k8PZFiaGm69pyoMCw2trI9e4w2DqUQ+o3geruGYDT6E2dm7sKvQKj1ZoH0MI HoF3LLSOos5x1MoZkUGMQvbT7ZQEN/aTFKAF5zPqH9QK+RZUYQ0mIz1bXBAl1SIDwWKt /3ZqFTwrMw2/JBgVa8FMSxQqNkxSkxazcRJTE2qWcDOpBOhzOwloXP0gk/uRzzkmWONG /WydbFEIXuazL0d7U6GifzNpJsGOhJJO2uPNTcpOFXmCJc/1lHaME+MqUGLf9OegTdHj Uqfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=oNyW75Ym; spf=pass (google.com: domain of linux-kernel+bounces-20755-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lt26-20020a170906fa9a00b00a2934eecdcesi681040ejb.425.2024.01.09.03.20.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20755-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=oNyW75Ym; spf=pass (google.com: domain of linux-kernel+bounces-20755-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9BFDE1F2593A for ; Tue, 9 Jan 2024 11:20:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CE3F36B10; Tue, 9 Jan 2024 11:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="oNyW75Ym" Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (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 601EF29431; Tue, 9 Jan 2024 11:20:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1704799233; bh=g2o0sp+obm3C+i8AIlUzPBvR52lZ5IozrJgX9L/WxhA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oNyW75YmpuFGiq59LWtxmS1dA8SsLNiAYNJQm3byQaXQE1EoSjhbFUK/tPdAaS6PZ 7qJtU5Nduzh/1BFxhLw/vzCavq5AnWcF5IwUxwRB31LtDAopvhkh0xXvrXgwmeCriK YvIgK9cfW2kBMUP3CKgB2FeBS6hs8b3+Wi7oqEnaZiZ5DihumRZovLLtze+OKAyoJS LPhVy36grcfuB9h1pBMTLjbOu/afqhkv6Iqs7PYOXjPAvhraZNfRSiT9QSyxxJ5RRU 4tRNxIkrBCn1Vb9+BugsGNaubPiCOl5DdmxrI6fmgaAROta4SmveO5pQ8Wuenl4V38 WYsFXOT6BLzsQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4T8T4d1LQyz4wch; Tue, 9 Jan 2024 22:20:32 +1100 (AEDT) Date: Tue, 9 Jan 2024 22:20:31 +1100 From: Stephen Rothwell To: Florian Eckert Cc: Jonathan Corbet , Lee Jones , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the leds-lj tree Message-ID: <20240109222031.6ce4aecc@canb.auug.org.au> In-Reply-To: <17b4305d9fe1fbed3e39597f0767f7bd@dev.tdt.de> References: <20240105173352.6ce1a546@canb.auug.org.au> <17b4305d9fe1fbed3e39597f0767f7bd@dev.tdt.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/rRe=mVmiiNQBI0gO1M.LNlk"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/rRe=mVmiiNQBI0gO1M.LNlk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Florian, On Mon, 08 Jan 2024 08:47:07 +0100 Florian Eckert wrote: > > Hello Stephen, >=20 > thanks for your hint >=20 > On 2024-01-05 07:33, Stephen Rothwell wrote: > > Hi all, > >=20 > > After merging the leds-lj tree, today's linux-next build (htmldocs) > > produced this warning: > >=20 > > 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 =20 >=20 > 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. >=20 > I didn't know that the names have to be unique! >=20 > 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"? >=20 > 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 d= escribe > 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). --=20 Cheers, Stephen Rothwell --Sig_/rRe=mVmiiNQBI0gO1M.LNlk Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmWdK/8ACgkQAVBC80lX 0GxeGwf8Cas2QEbX8fm38wekU0LqoDRU6qxknQtt+cshSeZbdyJu3lSQ+Q2c7wwg TOi1CrkXg9KRBeJ02Sp/yQEL/BwYRTJUx+CeGcuzxDILYMLcjyL1uJnOa3xRwq54 ZpUE8ZRLZO9EHG6NZYLPud1CdPTN1Dxzh6vr3HRA+qQLF6PIpZdC4NIr0mRcrO0r e+VEcgP2v8J0oONHCZbTAMm18AQepYuQ4RTsa8TVz/mFz8WA7u1Y9JaHGRATaZ1L HoMCgCOMdf9qbNNdUkkPCENM0qrLWQdwfJk4GiXBM/htea/G/115rgq7MpqhU9jz Nz36yUpHUgp0Gb8OWx5YrGbsC9FBPg== =YQkM -----END PGP SIGNATURE----- --Sig_/rRe=mVmiiNQBI0gO1M.LNlk--