Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp407166lqg; Thu, 11 Apr 2024 06:46:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhBk1Md6hs97iLK/zTaHIQn/xcCxp7Vtb0Zrllu6cmpDD77kas1MABIZBjmcUpWAlO1L4zbEXYeUKkERC0zp8cK9MKG7a2Kqi/N1aBtg== X-Google-Smtp-Source: AGHT+IHaNkc6SSVEvHnYJi5GwlqZKGm1dDv6XTJoqbxyoRzHYiL89uVrxfDZahvPDFwZhgNnqzQK X-Received: by 2002:a05:620a:b97:b0:78e:bd5d:79c0 with SMTP id k23-20020a05620a0b9700b0078ebd5d79c0mr3618199qkh.0.1712843207574; Thu, 11 Apr 2024 06:46:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712843207; cv=pass; d=google.com; s=arc-20160816; b=LrVS12s9XVVPCKwmWzBxlZnKkH1gAaEOVALKL86rrqarE8/1odQpXrrJX8rwMNE9it 2ym2OZDBQE4aShzKaf41lGcAKTb1ZbziIEtTxVSR9VDDxiBDEZSRH0+GXNmSH1LdPkwY Dd9DOrkst+ESA83vSfxBlPz63S/nu+2fH4f8lp3aDUAHL+SnaB1p4bxZsLBlP81bTbD3 10FaSCPGG39rm3LPha5rjQyPW0lHfyGfetXi5bh8sIAiB0p38B+vUvKlYaQVcI5J0xMF 7wsvpgEXMzmgj8U0IU86RIa5I5PBygU9NobEe+6e5k09+aYKQ9FV82FVgOTuv+BzbbLT D0Mg== 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=ZZJvfpU0NZNmpDWXK3uTjCkMAry3xOYYLX71RDG5p/U=; fh=aLP+ucirqOcESES+SZObb4ySizLxz4U4ZGzX2G9LjQc=; b=PhYe7Ev84CLBX5BUh7gOTM98bWjQaKT2r2gLLIsiT+YKamVRFWK4A4dgFQLUtLeCLm VNpzRY/a0xGl+3jaAZ4r2EHjj9einO3ngtx1bHuqpbw7bf3Gzy6v2PiQSp0E73TMoF/2 EwydxrTBL4ttXasY6hqLzvAUg9J0XQ5MVH796Q8arp9WjkL/+zwjCozQqMdjVLKlVbPj IJUbRo5Hs10X1SKc36KltdEX+siV4ycdaXKJwt9HGpBSNqsVDGttX09A5Itn/YukttcT 4klE8kEZtaLH8yEv4a45JRxQ0KDR8hk/sEXkzcLZCIKpeNb/ZcIAJuWfUamKAEJSornd FMMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-140554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140554-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id az31-20020a05620a171f00b0078ec7f4507dsi280159qkb.69.2024.04.11.06.46.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:46:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140554-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-140554-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140554-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4C2D61C221D9 for ; Thu, 11 Apr 2024 13:46:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D06514F9FC; Thu, 11 Apr 2024 13:40:02 +0000 (UTC) Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) (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 E6AB314F9F2; Thu, 11 Apr 2024 13:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.223.78.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842801; cv=none; b=hlIng1xdjTAbk7v+6q7dtIkec4OT2WIIbS30ef82lxw6/lktsJx625RxC9Kelv/rcL8plaDWw1W+/koBImqYDa25DepbY73qpEJylTeNZ0vWbtTxoArf252yfmXbUJRxlsAKWFPseNIsVZYPO482EZFAgsa0Pwnxf9HFI9zgGC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842801; c=relaxed/simple; bh=UuA5dm6koMgua9DkhFOmmz7faxSDfh7lrYIohOK6E+4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LA5wpeGwMe43VQCzrI9HwhMHeuMhF0QTrI89NMScnypuwjGoYITSGMPESOcetmftlReZ5C2G0SB3FSLfZhuufTjuryjIxqX7U4w7nlbSUWD3A7k1wATtEcgUfXeNunNSoet5pIvKafby5Mny+/j7JeOxWXG/dSV5aD1XvDTc2C0= 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.78.240 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 [IPv6:2a01:37:1000::53df:5f1c:0]) (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 bmailout2.hostsharing.net (Postfix) with ESMTPS id 5FE7E28013A52; Thu, 11 Apr 2024 15:39:50 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4AE723FFCDE; Thu, 11 Apr 2024 15:39:50 +0200 (CEST) Date: Thu, 11 Apr 2024 15:39:50 +0200 From: Lukas Wunner To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, Jean Delvare , Ard Biesheuvel , linux-efi@vger.kernel.org, Zhenyu Wang , Zhi Wang , intel-gvt-dev@lists.freedesktop.org, Daniel Lezcano , linux-pm@vger.kernel.org, Luis Chamberlain , linux-modules@vger.kernel.org Subject: Re: [PATCH 0/2] Deduplicate bin_attribute simple read() callbacks Message-ID: References: <2024041128-huddling-humped-4304@gregkh> 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: <2024041128-huddling-humped-4304@gregkh> On Thu, Apr 11, 2024 at 03:07:46PM +0200, Greg Kroah-Hartman wrote: > On Sat, Apr 06, 2024 at 03:52:00PM +0200, Lukas Wunner wrote: > > For my upcoming PCI device authentication v2 patches, I have the need > > to expose a simple buffer in virtual memory as a bin_attribute. > > > > It turns out we've duplicated the ->read() callback for such simple > > buffers a fair number of times across the tree. > > > > So instead of reinventing the wheel, I decided to introduce a common > > helper and eliminate all duplications I could find. > > > > I'm open to a bikeshedding discussion on the sysfs_bin_attr_simple_read() > > name. ;) > > Seems like no one objects, should I just take this through my > driver-core tree for 6.10? That would be awesome, thank you! Lukas