[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200226.203823.2125720278270075902.davem@davemloft.net>
Date: Wed, 26 Feb 2020 20:38:23 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: rdunlap@...radead.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] af_llc: fix if-statement empty body warning
From: Randy Dunlap <rdunlap@...radead.org>
Date: Tue, 25 Feb 2020 21:08:52 -0800
> From: Randy Dunlap <rdunlap@...radead.org>
>
> When debugging via dprintk() is not enabled, make the dprintk()
> macro be an empty do-while loop, as is done in
> <linux/sunrpc/debug.h>.
>
> This fixes a gcc warning when -Wextra is set:
> ../net/llc/af_llc.c:974:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
>
> I have verified that there is not object code change (with gcc 7.5.0).
>
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Applied.
Powered by blists - more mailing lists