public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Yury Norov <ynorov@nvidia•com>
To: linux-kernel@vger•kernel.org,
	"Christophe Leroy (CS GROUP)" <chleroy@kernel•org>,
	"Peter Zijlstra (Intel)" <peterz@infradead•org>,
	"Rafael J. Wysocki" <rafael@kernel•org>,
	"Alexander Shishkin" <alexander.shishkin@linux•intel.com>,
	"Daniel Lezcano" <daniel.lezcano@kernel•org>,
	"Ingo Molnar" <mingo@kernel•org>,
	"James Clark" <james.clark@linaro•org>,
	"Kees Cook" <kees@kernel•org>,
	"Lukasz Luba" <lukasz.luba@arm•com>,
	"Madhavan Srinivasan" <maddy@linux•ibm.com>,
	"Michael Ellerman" <mpe@ellerman•id.au>,
	"Mike Leach" <mike.leach@linaro•org>,
	"Moritz Fischer" <mdf@kernel•org>,
	"Nicholas Piggin" <npiggin@gmail•com>,
	"Russ Weight" <russ.weight@linux•dev>,
	"Shrikanth Hegde" <sshegde@linux•ibm.com>,
	"Suki K Poulose" <suzuki.poulose@arm•com>,
	"Tom Rix" <trix@redhat•com>,
	"Thomas Weißschuh" <linux@weissschuh•net>,
	"Xu Yilun" <yilun.xu@intel•com>,
	"Yury Norov" <yury.norov@gmail•com>,
	"Zhang Rui" <rui.zhang@intel•com>,
	coresight@lists•linaro.org, linux-arm-kernel@lists•infradead.org,
	linux-fpga@vger•kernel.org, linux-pm@vger•kernel.org,
	linuxppc-dev@lists•ozlabs.org
Cc: Yury Norov <ynorov@nvidia•com>, Jakub Kicinski <kuba@kernel•org>
Subject: [PATCH 5/5] fpga: m10bmc-sec: switch show_canceled_csk() to using sysfs_emit()
Date: Tue,  3 Mar 2026 15:08:41 -0500	[thread overview]
Message-ID: <20260303200842.124996-6-ynorov@nvidia.com> (raw)
In-Reply-To: <20260303200842.124996-1-ynorov@nvidia.com>

Switch show_canceled_csk() to use the proper sysfs_emit("%*pbl").

Reviewed-by: Russ Weight <russ.weight@linux•dev>
Suggested-by: Thomas Weißschuh <linux@weissschuh•net>
Signed-off-by: Yury Norov <ynorov@nvidia•com>
---
 drivers/fpga/intel-m10-bmc-sec-update.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/fpga/intel-m10-bmc-sec-update.c b/drivers/fpga/intel-m10-bmc-sec-update.c
index 10f678b9ed36..ae364c6636eb 100644
--- a/drivers/fpga/intel-m10-bmc-sec-update.c
+++ b/drivers/fpga/intel-m10-bmc-sec-update.c
@@ -10,6 +10,7 @@
 #include <linux/firmware.h>
 #include <linux/mfd/intel-m10-bmc.h>
 #include <linux/mod_devicetable.h>
+#include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
@@ -183,7 +184,7 @@ show_canceled_csk(struct device *dev, u32 addr, char *buf)
 
 	bitmap_from_arr32(csk_map, csk32, CSK_BIT_LEN);
 	bitmap_complement(csk_map, csk_map, CSK_BIT_LEN);
-	return bitmap_print_to_pagebuf(1, buf, csk_map, CSK_BIT_LEN);
+	return sysfs_emit(buf, "%*pbl\n", CSK_BIT_LEN, csk_map);
 }
 
 #define DEVICE_ATTR_SEC_CSK_RO(_name)						\
-- 
2.43.0



  parent reply	other threads:[~2026-03-03 20:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-03 20:08 [PATCH RESEND 0/5] bitmap: cleanup bitmaps printing Yury Norov
2026-03-03 20:08 ` [PATCH 1/5] powerpc/xive: simplify xive_spapr_debug_show() Yury Norov
2026-03-03 20:08 ` [PATCH 2/5] thermal: intel: switch cpumask_get() to using cpumask_print_to_pagebuf() Yury Norov
2026-03-03 20:08 ` [PATCH 3/5] coresight: don't use bitmap_print_to_pagebuf() Yury Norov
2026-03-03 20:08 ` [PATCH 4/5] lib/prime_numbers: drop temporary buffer in dump_primes() Yury Norov
2026-03-03 20:08 ` Yury Norov [this message]
2026-03-24  9:15   ` [PATCH 5/5] fpga: m10bmc-sec: switch show_canceled_csk() to using sysfs_emit() Xu Yilun
2026-03-24 18:38     ` Yury Norov
2026-03-25  7:25       ` Xu Yilun
2026-04-28  2:56         ` Yury Norov
2026-04-28  3:33           ` Xu Yilun
2026-04-28 18:04             ` Yury Norov
2026-03-19 20:18 ` [PATCH RESEND 0/5] bitmap: cleanup bitmaps printing Yury Norov
2026-04-02  0:57   ` Yury Norov
2026-04-02  5:41     ` Madhavan Srinivasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260303200842.124996-6-ynorov@nvidia.com \
    --to=ynorov@nvidia$(echo .)com \
    --cc=alexander.shishkin@linux$(echo .)intel.com \
    --cc=chleroy@kernel$(echo .)org \
    --cc=coresight@lists$(echo .)linaro.org \
    --cc=daniel.lezcano@kernel$(echo .)org \
    --cc=james.clark@linaro$(echo .)org \
    --cc=kees@kernel$(echo .)org \
    --cc=kuba@kernel$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-fpga@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-pm@vger$(echo .)kernel.org \
    --cc=linux@weissschuh$(echo .)net \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=lukasz.luba@arm$(echo .)com \
    --cc=maddy@linux$(echo .)ibm.com \
    --cc=mdf@kernel$(echo .)org \
    --cc=mike.leach@linaro$(echo .)org \
    --cc=mingo@kernel$(echo .)org \
    --cc=mpe@ellerman$(echo .)id.au \
    --cc=npiggin@gmail$(echo .)com \
    --cc=peterz@infradead$(echo .)org \
    --cc=rafael@kernel$(echo .)org \
    --cc=rui.zhang@intel$(echo .)com \
    --cc=russ.weight@linux$(echo .)dev \
    --cc=sshegde@linux$(echo .)ibm.com \
    --cc=suzuki.poulose@arm$(echo .)com \
    --cc=trix@redhat$(echo .)com \
    --cc=yilun.xu@intel$(echo .)com \
    --cc=yury.norov@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox