* [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
* Re: [PATCH v1] misc: fastrpc: Add missing <linux/bitfield.h> include
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
1 sibling, 1 reply; 4+ messages in thread
From: Srinivas Kandagatla @ 2026-07-27 9:28 UTC (permalink / raw)
To: Ekansh Gupta, srini, linux-arm-msm
Cc: gregkh, quic_bkumar, linux-kernel, quic_chennak, dri-devel, arnd,
dmitry.baryshkov, broonie, stable
On 7/27/26 6:02 AM, Ekansh Gupta wrote:
> 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
Was this reported by some test bot ? if yes, please add Reported by and
Closes tag.
--srini
> 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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1] misc: fastrpc: Add missing <linux/bitfield.h> include
2026-07-27 9:28 ` Srinivas Kandagatla
@ 2026-07-27 9:32 ` Ekansh Gupta
0 siblings, 0 replies; 4+ messages in thread
From: Ekansh Gupta @ 2026-07-27 9:32 UTC (permalink / raw)
To: Srinivas Kandagatla, linux-arm-msm
Cc: gregkh, quic_bkumar, linux-kernel, quic_chennak, dri-devel, arnd,
dmitry.baryshkov, broonie, stable
On 27-07-2026 14:58, Srinivas Kandagatla wrote:
>
>
> On 7/27/26 6:02 AM, Ekansh Gupta wrote:
>> 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
>
> Was this reported by some test bot ? if yes, please add Reported by and
> Closes tag.
>
I received a mail from Mark[1] for this failure when he was trying to
apply it on linux-next. Don't see any report link there hence didn't add
any tags for that.
[1] https://lore.kernel.org/all/amaNYEchEvJAcnQT@sirena.org.uk/
> --srini
>> 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>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1] misc: fastrpc: Add missing <linux/bitfield.h> include
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 11:50 ` Mukesh Ojha
1 sibling, 0 replies; 4+ messages in thread
From: Mukesh Ojha @ 2026-07-27 11:50 UTC (permalink / raw)
To: Ekansh Gupta
Cc: srini, linux-arm-msm, gregkh, quic_bkumar, linux-kernel,
quic_chennak, dri-devel, arnd, dmitry.baryshkov, broonie, stable
On Mon, Jul 27, 2026 at 10:32:38AM +0530, Ekansh Gupta wrote:
> 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>
It should not have stable tag, as it has not made to any stable tree..
May be it can be fixed inline in Srini tree itself.
Anyway,
Reviewed-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
--
-Mukesh Ojha
^ 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®