Re: [PATCH 1/1] Lustre: single statement macros should not use do {} while (0)

2015-03-01 Thread Greg KH
On Wed, Feb 18, 2015 at 05:37:55PM -0300, Mario J. Rugiero wrote: This fixes all appearances of the warning but one, as that one seems to be intentional: WARNING: Single statement macros should not use a do {} while (0) loop #1221: FILE: lustre/include/lustre_dlm.h:1221: +#define

[PATCH 1/1] Lustre: single statement macros should not use do {} while (0)

2015-02-18 Thread Mario J. Rugiero
This fixes all appearances of the warning but one, as that one seems to be intentional: WARNING: Single statement macros should not use a do {} while (0) loop #1221: FILE: lustre/include/lustre_dlm.h:1221: +#define LDLM_LOCK_RELEASE(lock) \ +do {