From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] atm: eni: Move semicolon to a new line after empty for loop Date: Thu, 18 Oct 2018 15:41:27 -0700 (PDT) Message-ID: <20181018.154127.945780492391744369.davem@davemloft.net> References: <20181017180334.8640-1-natechancellor@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: natechancellor@gmail.com Return-path: In-Reply-To: <20181017180334.8640-1-natechancellor@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Nathan Chancellor Date: Wed, 17 Oct 2018 11:03:34 -0700 > Clang warns: > > drivers/atm/eni.c:244:48: error: for loop has empty body > [-Werror,-Wempty-body] > for (order = 0; (1 << order) < *size; order++); > ^ > drivers/atm/eni.c:244:48: note: put the semicolon on a separate line to > silence this warning > > In this case, that loop is expected to be empty so silence the warning > in the way that Clang suggests. > > Link: https://github.com/ClangBuiltLinux/linux/issues/42 > Suggested-by: Masahiro Yamada > Signed-off-by: Nathan Chancellor Applied.