From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6CD1E7716C for ; Thu, 5 Dec 2024 09:21:10 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Y3pm537qRz2yN3; Thu, 5 Dec 2024 20:21:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2604:1380:45d1:ec00::3" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1733390469; cv=none; b=hT7mK6Z9FKrM4CYBM1gxIa0yIEHUrXuIIQKaLnzEd+eYxTNjMx9/JF9SMVTFYHZcE7s8yZgyarC+yhJ+O0y71f7103/5XvuZ9eXNg8iYEYyDuJY9qYdp54I1bp1FOWRMxiFDXiGKhh+hO+/okkY0d/iiUZ+8SKbtrT78b6BmcNjzBKyCsa4GmL4WjZoqNVWXoN+RTPE2MisPuFlOoagICj6vpSn3GZQtx924Ls1ib8KAzJll66wSv2HXr8nyxjZGVgY00sLwRZbSZosAuglIafPLQziO5NRFgtgXgi8Ff7cenNTm+chQhu8A+qIhqndpNsIlrM9AaT6UNiF7g+HluA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1733390469; c=relaxed/relaxed; bh=1hYsn3bVYfCdFiaXJuWqS6VAXMhaADSnAeDc/1GJ6E0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ALXxzhHKHZkTIC7H687NgGp60GKANG3bV4/f8xDzGxbSFad5WOY0dARzwy81/orgNhL1LxZm2/lpClk17y6MaFUXxyn5yRwX8auLjAGFla3CltHzf+256uJsWF2pZeeQA2pClRukWUJ10e0I9KuTrqetza1QKetuHAzK28dspiCYXgIVQPxnbFfHtduCUZN/el5cliN46lba7qAs9nl0t33sbmfeQplVgVtoViaV2k0C+0eTh7Uv3UYoAKy6mk4b7iUMFYO4LzQwm0VVjs0YFa4/14nSkqKG7v2bgOxmBRk1ZZrmpmK3quvcMb1REsdpvZ/Ujca8u8i+cWB8t1S0Kw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=KfvweuEt; dkim-atps=neutral; spf=pass (client-ip=2604:1380:45d1:ec00::3; helo=nyc.source.kernel.org; envelope-from=tzungbi@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=KfvweuEt; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:45d1:ec00::3; helo=nyc.source.kernel.org; envelope-from=tzungbi@kernel.org; receiver=lists.ozlabs.org) Received: from nyc.source.kernel.org (nyc.source.kernel.org [IPv6:2604:1380:45d1:ec00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Y3pm44K7Cz2xs4 for ; Thu, 5 Dec 2024 20:21:08 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 7A45CA42ACD; Thu, 5 Dec 2024 09:19:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41A9BC4CED1; Thu, 5 Dec 2024 09:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733390464; bh=ToTCGlDhZeWb307fMIu1lkFbt/mZmVrs0IkZOqW0GhI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KfvweuEtbQQYSiPUbmCtKLV+F6lG2isa7yDEEWXoGfN9QcvH2SJ6TAtNu8pBHDojN bZBjlHQG/YZGEyv2Z3P0iD4Z3Flp7P8WOrk8eDWRS3WpsclKGvOtVv3PdLYg0ZbDfI BnYAj3NtWcDR9q7tYripwoy0Q4OHT4awo6LAYFUVP+FaXl3AHsPUAP+Cgp+ad1dGqn I1A5SLnFLN3TnFgzXmS08FJYW0cNhH1vQf5++lAJqKTqHjLlXwO/C3Ud9j7pFKZPKl Pe5YOYiyALK7EYs7FoKODkw788Oms6mlDSLFDRURnFXKBZYahUHdrZ7XEte7dGAJzV adBZUFBjQWhtw== Date: Thu, 5 Dec 2024 09:20:59 +0000 From: Tzung-Bi Shih To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Brian Norris , Julius Werner , "James E.J. Bottomley" , "Martin K. Petersen" , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, chrome-platform@lists.linux.dev, linux-scsi@vger.kernel.org Subject: Re: [PATCH 3/5] powerpc/powernv/flash: Use BIN_ATTR_ADMIN_WO() for bin_attribute definition Message-ID: References: <20241202-sysfs-const-bin_attr-admin_wo-v1-0-f489116210bf@weissschuh.net> <20241202-sysfs-const-bin_attr-admin_wo-v1-3-f489116210bf@weissschuh.net> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20241202-sysfs-const-bin_attr-admin_wo-v1-3-f489116210bf@weissschuh.net> On Mon, Dec 02, 2024 at 08:00:38PM +0100, Thomas Weißschuh wrote: > Using the macro saves some lines of code and prepares the attribute for > the general constifications of struct bin_attributes. > > While at it also constify the callback parameter. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Tzung-Bi Shih