* [PATCH] platform/raspberrypi: Pass NULL as the unused vc-sm-cma result pointer
@ 2026-12-05 0:07 Felix Huang via B4 Relay
2026-12-05 0:19 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Felix Huang via B4 Relay @ 2026-12-05 0:07 UTC (permalink / raw)
To: Raspberry Pi Kernel Maintenance, Florian Fainelli,
Broadcom internal kernel review list
Cc: linux-kernel, linux-rpi-kernel, linux-arm-kernel,
kernel test robot, Felix Huang
From: Felix Huang <akafelixab@gmail.com>
The VC_MEM_REQUEST_REPLY call does not provide a result buffer.
Pass NULL rather than an integer zero for the result pointer to
silence the sparse "Using plain integer as NULL pointer" warning.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/20261202053807.uwQze16e-lkp@intel.com/
Signed-off-by: Felix Huang <akafelixab@gmail.com>
---
drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.c b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.c
index 54d3187355..77a9b81de8 100644
--- a/drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.c
+++ b/drivers/platform/raspberrypi/vc-sm-cma/vc_sm_cma_vchi.c
@@ -508,6 +508,6 @@ int vc_sm_vchi_client_vc_mem_req_reply(struct sm_instance *handle,
{
return vc_sm_cma_vchi_send_msg(handle,
VC_SM_MSG_TYPE_VC_MEM_REQUEST_REPLY,
- msg, sizeof(*msg), 0, 0, cur_trans_id,
+ msg, sizeof(*msg), NULL, 0, cur_trans_id,
0);
}
---
base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9
change-id: 20261204-raspberrypi-vc-sm-null-result-55486d79f16c
Best regards,
--
Felix Huang <akafelixab@gmail.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform/raspberrypi: Pass NULL as the unused vc-sm-cma result pointer
2026-12-05 0:07 [PATCH] platform/raspberrypi: Pass NULL as the unused vc-sm-cma result pointer Felix Huang via B4 Relay
@ 2026-12-05 0:19 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2026-12-05 0:19 UTC (permalink / raw)
To: akafelixab, Raspberry Pi Kernel Maintenance, Florian Fainelli,
Broadcom internal kernel review list
Cc: linux-kernel, linux-rpi-kernel, linux-arm-kernel,
kernel test robot
On 12/4/26 16:07, Felix Huang via B4 Relay wrote:
> From: Felix Huang <akafelixab@gmail.com>
>
> The VC_MEM_REQUEST_REPLY call does not provide a result buffer.
> Pass NULL rather than an integer zero for the result pointer to
> silence the sparse "Using plain integer as NULL pointer" warning.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/r/20261202053807.uwQze16e-lkp@intel.com/
>
> Signed-off-by: Felix Huang <akafelixab@gmail.com>
Thank you Felix, I folded this into "platform/raspberrypi: Add VideoCore
shared memory support" since this is only in my tree and linux-next at
the moment.
--
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-05 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 0:07 [PATCH] platform/raspberrypi: Pass NULL as the unused vc-sm-cma result pointer Felix Huang via B4 Relay
2026-12-05 0:19 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox