soc: qcom: aoss: Mark qmp_send() __printf()
Subsystems (2)
PATCH 1/1 soc: qcom: aoss: Mark qmp_send() __printf()
As reported by lkp, qmp_send() would benefit from a __printf() marker to allow the compiler to further validate the passed parameters, fix this.
Reported-by kernel test robot <[email protected]>
Signed-off-by Bjorn Andersson <[email protected]>
--- drivers/soc/qcom/qcom_aoss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/qcom_aoss.c +1 -1
@@ -214,7 +214,7 @@ static bool qmp_message_empty(struct qmp *qmp)* * Return: 0 on success, negative errno on failure */ -int qmp_send (struct qmp *qmp,const char *fmt, ...) +int __printf(2, 3) qmp_send(struct qmp *qmp, const char *fmt, ...) { char buf[QMP_MSG_LEN]; long time_left;
---
base-commit: 2863b714f3ad0a9686f2de1b779228ad8c7a8052
change-id: 20240119-aoss-printf-annotation-df3d5bdea253
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>
Quoted 7 lines · Bjorn Andersson
As reported by lkp,
qmp_send()would benefit from a__printf()marker to allow the compiler to further validate the passed parameters, fix this.Reported-by kernel test robot <[email protected]>Signed-off-by Bjorn Andersson <[email protected]>---
Reviewed-by Konrad Dybcio <[email protected]>
Konrad
Quoted 4 lines · Bjorn Andersson
As reported by lkp,
qmp_send()would benefit from a__printf()marker to allow the compiler to further validate the passed parameters, fix this.
Applied, thanks!
[1/1] soc: qcom: aoss: Mark qmp_send() __printf()
commit: b65a3fa38dbb5c84f360a48f0d5da3aed0011964
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>