All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Stephen Boyd <sboyd@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
	Duanqiang Wen <duanqiangwen@net-swift.com>,
	mturquette@baylibre.com, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clkdev: report over-sized strings when creating clkdev entries
Date: Thu, 2 May 2024 09:22:39 +0100	[thread overview]
Message-ID: <ZjNNT+KBNpQL+U3b@shell.armlinux.org.uk> (raw)
In-Reply-To: <ZjNIiDeXIjXhJlT4@shell.armlinux.org.uk>

On Thu, May 02, 2024 at 09:02:16AM +0100, Russell King (Oracle) wrote:
> On Wed, May 01, 2024 at 06:02:54PM -0700, Stephen Boyd wrote:
> > Quoting Stephen Boyd (2024-05-01 17:59:16)
> > > Quoting Russell King (Oracle) (2024-03-15 04:47:55)
> > > > Report an error when an attempt to register a clkdev entry results in a
> > > > truncated string so the problem can be easily spotted.
> > > > 
> > > > Reported by: Duanqiang Wen <duanqiangwen@net-swift.com>
> > > > Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> > > > ---
> > > 
> > > Applied to clk-next
> > > 
> > 
> > And backed out because I get a compilation failure
> > 
> > drivers/clk/clkdev.c: In function 'vclkdev_alloc':
> > drivers/clk/clkdev.c:182:17: error: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
> >   182 |                 res = vsnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap);
> >       |                 ^~~
> > cc1: all warnings being treated as errors
> > make[5]: *** [scripts/Makefile.build:244: drivers/clk/clkdev.o] Error 1
> > make[4]: *** [scripts/Makefile.build:485: drivers/clk] Error 2
> 
> It builds fine for me. I don't get this _error_, and it's really no
> different from what it originally was - instead of using vcsnprintf()
> we're now using vsnprintf(). That should make no difference what so
> ever.

... and I've just checked, and it builds entirely cleanly for me.

I'll merge it.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

WARNING: multiple messages have this Message-ID (diff)
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Stephen Boyd <sboyd@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org,
	Duanqiang Wen <duanqiangwen@net-swift.com>,
	mturquette@baylibre.com, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] clkdev: report over-sized strings when creating clkdev entries
Date: Thu, 2 May 2024 09:22:39 +0100	[thread overview]
Message-ID: <ZjNNT+KBNpQL+U3b@shell.armlinux.org.uk> (raw)
In-Reply-To: <ZjNIiDeXIjXhJlT4@shell.armlinux.org.uk>

On Thu, May 02, 2024 at 09:02:16AM +0100, Russell King (Oracle) wrote:
> On Wed, May 01, 2024 at 06:02:54PM -0700, Stephen Boyd wrote:
> > Quoting Stephen Boyd (2024-05-01 17:59:16)
> > > Quoting Russell King (Oracle) (2024-03-15 04:47:55)
> > > > Report an error when an attempt to register a clkdev entry results in a
> > > > truncated string so the problem can be easily spotted.
> > > > 
> > > > Reported by: Duanqiang Wen <duanqiangwen@net-swift.com>
> > > > Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> > > > ---
> > > 
> > > Applied to clk-next
> > > 
> > 
> > And backed out because I get a compilation failure
> > 
> > drivers/clk/clkdev.c: In function 'vclkdev_alloc':
> > drivers/clk/clkdev.c:182:17: error: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
> >   182 |                 res = vsnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap);
> >       |                 ^~~
> > cc1: all warnings being treated as errors
> > make[5]: *** [scripts/Makefile.build:244: drivers/clk/clkdev.o] Error 1
> > make[4]: *** [scripts/Makefile.build:485: drivers/clk] Error 2
> 
> It builds fine for me. I don't get this _error_, and it's really no
> different from what it originally was - instead of using vcsnprintf()
> we're now using vsnprintf(). That should make no difference what so
> ever.

... and I've just checked, and it builds entirely cleanly for me.

I'll merge it.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-05-02  8:22 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-15 11:47 [PATCH] clkdev: report over-sized strings when creating clkdev entries Russell King (Oracle)
2024-03-15 11:47 ` Russell King (Oracle)
2024-04-08  3:48 ` Stephen Boyd
2024-04-08  3:48   ` Stephen Boyd
2024-05-02  0:59 ` Stephen Boyd
2024-05-02  0:59   ` Stephen Boyd
2024-05-02  1:02   ` Stephen Boyd
2024-05-02  1:02     ` Stephen Boyd
2024-05-02  8:02     ` Russell King (Oracle)
2024-05-02  8:02       ` Russell King (Oracle)
2024-05-02  8:22       ` Russell King (Oracle) [this message]
2024-05-02  8:22         ` Russell King (Oracle)
2024-05-02 11:08         ` Russell King (Oracle)
2024-05-02 11:08           ` Russell King (Oracle)
2024-05-02 22:18           ` Stephen Boyd
2024-05-02 22:18             ` Stephen Boyd
2024-05-17 22:09 ` Guenter Roeck
2024-05-17 22:09   ` Guenter Roeck
2024-05-17 22:22   ` Russell King (Oracle)
2024-05-17 22:22     ` Russell King (Oracle)
2024-05-17 23:34     ` Guenter Roeck
2024-05-17 23:34       ` Guenter Roeck
2024-05-17 23:37       ` Russell King (Oracle)
2024-05-17 23:37         ` Russell King (Oracle)
2024-05-18  3:24         ` Guenter Roeck
2024-05-18  3:24           ` Guenter Roeck
2024-05-18  7:01           ` Russell King (Oracle)
2024-05-18  7:01             ` Russell King (Oracle)
2024-05-22  6:53             ` Linux regression tracking (Thorsten Leemhuis)
2024-05-22  6:53               ` Linux regression tracking (Thorsten Leemhuis)
2024-05-22  9:34               ` Russell King (Oracle)
2024-05-22  9:34                 ` Russell King (Oracle)
2024-05-22  9:37                 ` Russell King (Oracle)
2024-05-22  9:37                   ` Russell King (Oracle)
2024-05-22 21:32                 ` Guenter Roeck
2024-05-22 21:32                   ` Guenter Roeck
2024-05-18 13:44   ` Guenter Roeck
2024-05-18 13:44     ` Guenter Roeck

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=ZjNNT+KBNpQL+U3b@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=duanqiangwen@net-swift.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.