lkml.org 
[lkml]   [2021]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: nolibc and __attribute__((__unused__))
On Wed, Jul 21, 2021 at 10:39:16PM +0200, Willy Tarreau wrote:
> Hi Paul!
>
> On Wed, Jul 21, 2021 at 01:33:49PM -0700, Paul E. McKenney wrote:
> > Hello!
> >
> > My guess is that I should ignore the following checkpatch complaint on
> > the assumption that checkpatch doesn't realize that this is not built
> > as part of the Linux kernel. But if my guess is incorrect, please let
> > me know, as it is a trivial change to make.
> (...)
> > WARNING: __always_unused or __maybe_unused is preferred over __attribute__((__unused__))
> > #24: FILE: tools/include/nolibc/nolibc.h:2246:
> > +static __attribute__((unused))
>
> Yes you're totally right, we try to keep both trees in sync by minimizing
> the differences between the two, so as long as that doesn't become a
> problem I prefer to keep the warning than having to manually apply
> future patches due to context differences.

Very well, and I will continue to ignore this sort of warning from
checkpatch for nolibc files.

Thanx, Paul

\
 
 \ /
  Last update: 2021-07-21 22:54    [W:0.049 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site