[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <165636016349.3080661.4448444375328964052.b4-ty@linaro.org>
Date: Mon, 27 Jun 2022 15:02:55 -0500
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Andy Gross <agross@...nel.org>, linux-arm-msm@...r.kernel.org
Cc: Stephen Boyd <sboyd@...nel.org>
Subject: Re: [PATCH v2 1/2] soc: qcom: cmd-db: replace strncpy() with strscpy_pad()
On Thu, 19 May 2022 09:33:00 +0200, Krzysztof Kozlowski wrote:
> The use of strncpy() is considered deprecated for NUL-terminated
> strings[1]. Replace strncpy() with strscpy_pad(), to keep existing
> pad-behavior of strncpy. This fixes W=1 warning:
>
> drivers/soc/qcom/cmd-db.c: In function ‘cmd_db_get_header.part.0’:
> drivers/soc/qcom/cmd-db.c:151:9: warning: ‘strncpy’ specified bound 8 equals destination size [-Wstringop-truncation]
> 151 | strncpy(query, id, sizeof(query));
>
> [...]
Applied, thanks!
[1/2] soc: qcom: cmd-db: replace strncpy() with strscpy_pad()
commit: ac0126a0173531d91d164e244ed1ebbee64bcd54
[2/2] soc: qcom: correct kerneldoc
commit: d11a34a404ee5565ce8e0abe3e2b9ce6f5cc0a4b
Best regards,
--
Bjorn Andersson <bjorn.andersson@...aro.org>
Powered by blists - more mailing lists