Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp448083lqh; Sat, 4 May 2024 07:32:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3+shrBA2uiM+Ebo9uXboyaLHenzjA5DRurvLe/Jy33R4afc3Ei/3B8eQJGkbT6pF1x/qamwv89ZqEJktKM9uWYcXH2NNzBwMKybRY0w== X-Google-Smtp-Source: AGHT+IEhv2gx8VO3laGHlMwRYGQXB7xwyoUcQ3mtBZRlwrlyiOvFrXz4ypB0UtdhOtMXIvNnAwtm X-Received: by 2002:a17:907:3ce:b0:a59:9b75:b8c with SMTP id su14-20020a17090703ce00b00a599b750b8cmr2487752ejb.14.1714833121698; Sat, 04 May 2024 07:32:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714833121; cv=pass; d=google.com; s=arc-20160816; b=X0PoCBbsQJB4BmFs1P8UtcUcRdP3hMOpqQyWQuR895T2VIruyZzGL3TeyBcNgG4NC5 vKMvFo2luMvqfeNnBhX6rFw0B3NEuDMWZo7miC9GU8kiSaq2T9Qe98rk23wwVhbfrtgf ghGpXw0g2ybZCFoYeWnEwaUiWIoklrErBbiHO3sfbfmhrjronFEdKHB97wnwjxYmImrd vkZHajwbSEmhonlEx8lXN7t6COt5+uYyTUdfZ7JZIY+A7pzfLnvFHzImbH+wtTuzjCCL bfb6i6OAavkUg+FfBa45RACWIO17D2/yYFWL7BYaUpR0ygDN38H9094C1Oeqmz/eLqtW qBCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Bl7Htj2E0cYxEzwcCwFU9Y9ladS7Nw/q9QVpwJsfzdA=; fh=gCpyv/rh3OdWo6zpY3E9ZeDWnYJ0YuPJ2cZjtre7bp8=; b=iF+SyJN6Ye67PODWWtWDzhew5HWuKOPFK0RT2U8GDYGY0CwiA0RIUHluyY4j9r+yTf TVymMd1xrex/MVI0LBSUjaa7N3Mk6EKq/7KQhxcLsYa4V8xmT6LI5ckoPSfMhTGDePaw V2E9GOgUQILO0khoMHICGonGh3aScLPPnz2aIkqO+OJ4mnYZBujLFLiaEy+aYRHD/qor GmAEx0EoydpSlFUtGxH0vShZWXzo0Po+zg5ab7RQFWT7CQtPXpUcbRJ6mNDIVwrxwJqN VYrvk/1EP0bMjcOQxWb7z7AdbQhes+E1DfsfTD49qTmiUjmHgQgEbBphaKO0sH2eb2U/ OLgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-168704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168704-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ga42-20020a1709070c2a00b00a59a9180365si721839ejc.248.2024.05.04.07.32.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 07:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-168704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168704-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6C0901F21E60 for ; Sat, 4 May 2024 14:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C7A23C47C; Sat, 4 May 2024 14:31:48 +0000 (UTC) Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) (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 9D00533D8; Sat, 4 May 2024 14:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.95.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714833108; cv=none; b=fIOSrXyCvh+bzsE24U5gFKFs5cktDHYBHMLfOsodDlurRZSEDcaoWzKdyGtYfS+3HQQvtzboZvs3FijgcxmC5pQ5oW87QQt6bR2qe8rN9ga1cKmsECQnVyBkg28Tt/5Abm7D2LwAC7SPF19TeZ0vHL2FZOsKVOapNZPR2Azrzbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714833108; c=relaxed/simple; bh=ocpnnfd8vO1ZXDw0k7uVLJrLdgKTWsFe7g9KPbqBpRQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ymnk2TiepjKVtDuM+OFkYusALG5F8X0SZN7h4De88iU1XZxpa/fxM4q2xPZRVW+CkE+pUtzYNt0WdL98uXaFsDkffr+yLiRkcuKEn+3BMMv8TFgg1JDzz689S7tLvzdfnkbXVKB9QcCWSeDYnrckRek/htO6L9RiDK0YEBfRAH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=83.223.95.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 8667D300102B7; Sat, 4 May 2024 16:31:42 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 672E936599; Sat, 4 May 2024 16:31:42 +0200 (CEST) Date: Sat, 4 May 2024 16:31:42 +0200 From: Lukas Wunner To: Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Cc: Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org, Dennis Dalessandro , linux-rdma@vger.kernel.org, Shuai Xue , Will Deacon , Mark Rutland , Jonathan Cameron , Yicong Yang , Jijie Shao , Bjorn Andersson , Konrad Dybcio , Khuong Dinh , linux-arm-kernel@lists.infradead.org, Corentin Chary , "Luke D. Jones" , Henrique de Moraes Holschuh , ibm-acpi-devel@lists.sourceforge.net, Azael Avalos , Hans de Goede , Ilpo Jaervinen , platform-driver-x86@vger.kernel.org, Anil Gurumur thy , Sudarsana Kalluru , Tyrel Datwyler , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, Don Brace , storagedev@microchip.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: Re: [PATCH 0/6] Deduplicate string exposure in sysfs Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: Dear Greg, On Sat, Apr 20, 2024 at 10:00:00PM +0200, Lukas Wunner wrote: > Introduce a generic ->show() callback to expose a string as a device > attribute in sysfs. Deduplicate various identical callbacks across > the tree. > > Result: Minus 216 LoC, minus 1576 bytes vmlinux size (x86_64 allyesconfig). > > This is a byproduct of my upcoming PCI device authentication v2 patches. > > > Lukas Wunner (6): > driver core: Add device_show_string() helper for sysfs attributes > hwmon: Use device_show_string() helper for sysfs attributes > IB/qib: Use device_show_string() helper for sysfs attributes > perf: Use device_show_string() helper for sysfs attributes > platform/x86: Use device_show_string() helper for sysfs attributes > scsi: Use device_show_string() helper for sysfs attributes This series hasn't been applied to driver-core-next AFAICS and the merge window is drawing closer. So far only patches 1, 2 and 5 have been ack'ed by the respective subsystem maintainers. If the missing acks are the reason it hasn't been applied, would it be possibe to apply only 1, 2 and 5? I would then resubmit the other ones individually to the subsystem maintainers in the next cycle. Thanks! Lukas