From: "Alim Akhtar" <alim.akhtar@samsung.com>
To: "'Kwanghoon Son'" <k.son@samsung.com>, <krzk@kernel.org>,
<gregkh@linuxfoundation.org>, <jirislaby@kernel.org>,
<linux-samsung-soc@vger.kernel.org>,
<linux-serial@vger.kernel.org>
Subject: RE: [PATCH] serial: samsung: Change MAX_CLK_NAME_LENGTH to 17
Date: Wed, 5 Jun 2024 14:33:21 +0530 [thread overview]
Message-ID: <033801dab727$3835d2f0$a8a178d0$@samsung.com> (raw)
In-Reply-To: <20240605040719.160778-1-k.son@samsung.com>
> -----Original Message-----
> From: Kwanghoon Son <k.son@samsung.com>
> Sent: Wednesday, June 5, 2024 9:37 AM
> To: krzk@kernel.org; alim.akhtar@samsung.com; gregkh@linuxfoundation.org;
> jirislaby@kernel.org; linux-samsung-soc@vger.kernel.org; linux-
> serial@vger.kernel.org
> Cc: Kwanghoon Son <k.son@samsung.com>
> Subject: [PATCH] serial: samsung: Change MAX_CLK_NAME_LENGTH to 17
>
> clkname "clk_uart_baud" already 13 byte, so compiler warns
> drivers/tty/serial/samsung_tty.c:1392:17: note: ‘sprintf’ output between 15 and
> 17 bytes into a destination of size 15
There was a similar discussion around buffer size of clkname last year
https://www.spinics.net/lists/arm-kernel/msg1039769.html
and it was concluded that it’s a false warning AFAIR.
>
> Signed-off-by: Kwanghoon Son <k.son@samsung.com>
> ---
> drivers/tty/serial/samsung_tty.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
> index dc35eb77d2ef..cad838ac8aa2 100644
> --- a/drivers/tty/serial/samsung_tty.c
> +++ b/drivers/tty/serial/samsung_tty.c
> @@ -1339,7 +1339,7 @@ static void s3c24xx_serial_pm(struct uart_port *port,
> unsigned int level,
> *
> */
>
> -#define MAX_CLK_NAME_LENGTH 15
> +#define MAX_CLK_NAME_LENGTH 17
>
> static inline u8 s3c24xx_serial_getsource(struct uart_port *port) {
> --
> 2.39.2
prev parent reply other threads:[~2024-06-05 9:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20240605040759epcas1p36d200e262d9a98f9879cf7fd0ee94bba@epcas1p3.samsung.com>
2024-06-05 4:07 ` [PATCH] serial: samsung: Change MAX_CLK_NAME_LENGTH to 17 Kwanghoon Son
2024-06-05 6:42 ` Krzysztof Kozlowski
2024-06-05 7:52 ` Kwanghoon Son
2024-06-05 7:54 ` Krzysztof Kozlowski
2024-06-05 9:03 ` Alim Akhtar [this message]
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='033801dab727$3835d2f0$a8a178d0$@samsung.com' \
--to=alim.akhtar@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=k.son@samsung.com \
--cc=krzk@kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/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