[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v66X94Y0zkHxNLb1KCoCR+q+z-mCm_21eUJ_C7D_srhDkw@mail.gmail.com>
Date: Sun, 21 Apr 2024 23:27:50 -0700
From: Chen-Yu Tsai <wens@...e.org>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>, Yangtao Li <tiny.windzz@...il.com>,
Jernej Skrabec <jernej.skrabec@...il.com>, Samuel Holland <samuel@...lland.org>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>, kernel test robot <lkp@...el.com>,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cpufreq: sun50i: Fix build warning around snprint()
On Sun, Apr 21, 2024 at 8:31 PM Viresh Kumar <viresh.kumar@...aro.org> wrote:
>
> The Sun50i driver generates a warning with W=1:
>
> warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=]
>
> Fix it by allocating a big enough array to print an integer.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202404191715.LDwMm2gP-lkp@intel.com/
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
Acked-by: Chen-Yu Tsai <wens@...e.org>
Powered by blists - more mailing lists