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 16310C43602 for ; Thu, 2 Jul 2026 15:58:09 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4grhPC5bKlz2ykc; Fri, 03 Jul 2026 01:58:07 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c0a:e001:78e:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1783007887; cv=none; b=AYMg7RVABQoSRk6VRIeYtxhNEOdFUaDwjl2ZDDOjaTYeNDqs7H0GOTkf30k/eWOe6iUUbNICJqgjBH0I5Pe5d493ygPuLrnGLKj1fasqdl3lLuQtV1G7mvrXhbGZTYdtmygj35GKUjNQfbYpig6vApk9w+jFIeZ+QIugj6S0S4XH1kv8ZE555OWO1aKuoS+0ZKcmjl5tX5WhslT/o6iSiewJerO5JjLxFGp7+1bKk6gcneDmOT9sBRf1mM4/gqASAeiqw833R1hHixOIjswyDKYTTJaj/0CstIrN6OehSf0MAyWBhwpnjsxwWAR+gBap6X+TM1a6So0udoPtZyqdTQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1783007887; c=relaxed/relaxed; bh=2GojpbKbN4k2MdbuYx8HDDnbJJg9jcM6tSbyryOEvMk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UfIs45BMX6T8Lfes0mmaqiB5/QyZu/Hn5qTqnjp1RIBy9FWdtM/dFoN7DLjy4a2FPalHs7qUmXOXicRMAzY8Y+D7PfbUlpNzcsOmxuwzg1BMpcgmG3crOW3qnyrc/ra288jwk4+qV02PRKfiWlyQnEpJ1tKCdTJsyOPwsvqmlWnxp0OTg8zS4aHuBPifP7yRM+5mXIVFDwXRv1Wjw2ppULvXgNdQTFqDp1ws1qagbIYWAZrntnwPu6cgSSVS9OQYOQ2b0t6nikzhmotlkCwmv5AFOIhjMHJyJK9MeiDH2/iZVhDg0qzRl6vEss7C7U3KX3fdS0UivWaHGLLd6YIgrA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=SJnNNRP+; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=gregkh@linuxfoundation.org; receiver=lists.ozlabs.org) smtp.mailfrom=linuxfoundation.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=SJnNNRP+; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linuxfoundation.org (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=gregkh@linuxfoundation.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) (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 4grhP971Mbz2yjx for ; Fri, 03 Jul 2026 01:58:05 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 009C143313; Thu, 2 Jul 2026 15:58:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B03FE1F000E9; Thu, 2 Jul 2026 15:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783007881; bh=2GojpbKbN4k2MdbuYx8HDDnbJJg9jcM6tSbyryOEvMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=SJnNNRP+EGmmhh6KRiH7vrp7U5tcCQ4uUkk74aV3dBETWeDGJ2fYnPrhWEpA4mIVF a7YX2/PcQ1r9wtser/tab+01pWo35DpJF6WKp0qvZ0Uv0rU/X657DvwsQuIkVvEpqV TtOxbKTWJHUe4wOVptSf0WzHL3aO90+5UHJi4or4= Date: Thu, 2 Jul 2026 17:58:11 +0200 From: Greg Kroah-Hartman To: Yury Norov Cc: Andrew Morton , Rasmus Villemoes , Russell King , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Thomas Gleixner , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "Rafael J. Wysocki" , Danilo Krummrich , Chanwoo Choi , MyungJoo Ham , Kyungmin Park , Heiko Stuebner , Xu Yilun , Tom Rix , Moritz Fischer , Yicong Yang , Jonathan Cameron , Dennis Dalessandro , Jason Gunthorpe , Leon Romanovsky , Bjorn Helgaas , Shuai Xue , Will Deacon , Jiucheng Xu , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Robin Murphy , Jing Zhang , Xu Yang , Linu Cherian , Gowthami Thiagarajan , Ji Sheng Teoh , Khuong Dinh , Yury Norov , Kees Cook , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Aboorva Devarajan , Ilkka Koskinen , Besar Wicaksono , Ma Ke , Chengwen Feng , Ritesh Harjani , Yushan Wang , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-perf-users@vger.kernel.org, x86@kernel.org, driver-core@lists.linux.dev, linux-pm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-fpga@vger.kernel.org, linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-cxl@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 01/11] arm: Use sysfs_emit() for cpumask show callbacks Message-ID: <2026070244-flier-large-17d1@gregkh> References: <20260702154725.185376-1-ynorov@nvidia.com> <20260702154725.185376-2-ynorov@nvidia.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260702154725.185376-2-ynorov@nvidia.com> On Thu, Jul 02, 2026 at 11:47:14AM -0400, Yury Norov wrote: > These callbacks are sysfs show paths. > > Use sysfs_emit() and cpumask_pr_args() to emit the masks. > > This prepares for removing cpumap_print_to_pagebuf(). > > Signed-off-by: Yury Norov > --- > arch/arm/mach-imx/mmdc.c | 2 +- > arch/arm/mm/cache-l2x0-pmu.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c > index b71467c48b87..f6d993b9b1d4 100644 > --- a/arch/arm/mach-imx/mmdc.c > +++ b/arch/arm/mach-imx/mmdc.c > @@ -127,7 +127,7 @@ static ssize_t mmdc_pmu_cpumask_show(struct device *dev, > { > struct mmdc_pmu *pmu_mmdc = dev_get_drvdata(dev); > > - return cpumap_print_to_pagebuf(true, buf, &pmu_mmdc->cpu); > + return sysfs_emit(buf, "%*pbl\n", cpumask_pr_args(&pmu_mmdc->cpu)); Really? Looks like the original is much simpler to understand, why must this function go away? thanks, greg k-h