mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] misc: fastrpc: Add missing <linux/bitfield.h> include
@ 2026-07-27  5:02 Ekansh Gupta
  2026-07-27  9:28 ` Srinivas Kandagatla
  2026-07-27 11:50 ` Mukesh Ojha
  0 siblings, 2 replies; 4+ messages in thread
From: Ekansh Gupta @ 2026-07-27  5:02 UTC (permalink / raw)
  To: srini, linux-arm-msm
  Cc: gregkh, quic_bkumar, linux-kernel, quic_chennak, dri-devel, arnd,
	dmitry.baryshkov, broonie, stable

Commit 10555ba6126ed ("misc: fastrpc: Replace hardcoded ctxid mask with
GENMASK") introduced uses of FIELD_GET() and FIELD_PREP() but omitted
the header that defines them.  This causes build failures on x86_64
allmodconfig:

  drivers/misc/fastrpc.c: error: call to undeclared function 'FIELD_GET'
  drivers/misc/fastrpc.c: error: call to undeclared function 'FIELD_PREP'

The missing declaration also causes a secondary -Wformat error because
the compiler treats the implicit FIELD_GET() as returning int, which
mismatches the %llx format specifier used in the dev_dbg() call.

Fix by adding #include <linux/bitfield.h>.

Fixes: 10555ba6126ed ("misc: fastrpc: Replace hardcoded ctxid mask with GENMASK")
Cc: stable@kernel.org
Signed-off-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
---
 drivers/misc/fastrpc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
index 94681394c1a0..017334ea4f34 100644
--- a/drivers/misc/fastrpc.c
+++ b/drivers/misc/fastrpc.c
@@ -22,6 +22,7 @@
 #include <linux/firmware/qcom/qcom_scm.h>
 #include <uapi/misc/fastrpc.h>
 #include <linux/of_reserved_mem.h>
+#include <linux/bitfield.h>
 #include <linux/bits.h>
 #include <linux/bitops.h>
 #include <linux/compiler.h>
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-27 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-27  5:02 [PATCH v1] misc: fastrpc: Add missing <linux/bitfield.h> include Ekansh Gupta
2026-07-27  9:28 ` Srinivas Kandagatla
2026-07-27  9:32   ` Ekansh Gupta
2026-07-27 11:50 ` Mukesh Ojha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®