From: Felix Huang via B4 Relay <devnull+akafelixab.gmail.com@kernel.org>
To: Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>
Cc: linux-kernel@vger.kernel.org,
linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
kernel test robot <lkp@intel.com>,
Felix Huang <akafelixab@gmail.com>
Subject: [PATCH] platform/raspberrypi: Pass NULL as the unused vc-sm-cma result pointer
Date: Fri, 04 Dec 2026 19:07:22 -0500 [thread overview]
Message-ID: <20261204-raspberrypi-vc-sm-null-result-v1-1-a25cc4451bcd@gmail.com> (raw)
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>
next reply other threads:[~2026-12-05 0:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 0:07 Felix Huang via B4 Relay [this message]
2026-12-05 0:19 ` Florian Fainelli
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=20261204-raspberrypi-vc-sm-null-result-v1-1-a25cc4451bcd@gmail.com \
--to=devnull+akafelixab.gmail.com@kernel.org \
--cc=akafelixab@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=florian.fainelli@broadcom.com \
--cc=kernel-list@raspberrypi.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=lkp@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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
all inboxes | Powered by JetHome®