Re: [PATCH 1/1] drivers/staging: Fixed sparse error "directive in argument list"

2014-10-11 Thread Filipe Gonçalves
o test the kernel version, it's the way to test > internal >lustre version. >Either way maintaining compatibility with Lustre 1.8 and 2.0 servers > should not >be important anymore, so it's fine to drop this check indeed. > > Bye, > Oleg > On Oct

Re: [PATCH 1/1] drivers/staging: Fixed sparse error "directive in argument list"

2014-10-11 Thread Filipe Gonçalves
Ah .. right! I didn't know what OBD_OCD_VERSION() was. Now I see it's a way to test kernel version. I am going to submit a new patch shortly. Thanks, Filipe On Sat, Oct 11, 2014 at 9:15 PM, Greg KH wrote: > > On Sat, Oct 11, 2014 at 08:13:42PM +0100, Filipe Gonçalves wrote: >

[PATCH 1/1] drivers/staging: Fixed sparse error "directive in argument list"

2014-10-11 Thread Filipe Gonçalves
This patch fixes a sparse warning on layout.c (ptlrpc) that was caused by having preprocessor directives in the arguments to a macro. Signed-off-by: Filipe Gonçalves --- drivers/staging/lustre/lustre/ptlrpc/layout.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a