Re: [PATCH 12/15] staging/lustre: Add spaces preferred around that '{+,-,*,/,|,<<,>>,&}'
From: Joe Perches
Date: Sat Jul 23 2016 - 13:31:31 EST
- Next message: SF Markus Elfring: "[PATCH] omapfb: panel-dsi-cm: Delete an unnecessary check before backlight_device_unregister()"
- Previous message: Jonathan Cameron: "Re: How to support multiple chips in single driver"
- In reply to: Oleg Drokin: "[PATCH 12/15] staging/lustre: Add spaces preferred around that '{+,-,*,/,|,<<,>>,&}'"
- Next in thread: Oleg Drokin: "Re: [PATCH 12/15] staging/lustre: Add spaces preferred around that '{+,-,*,/,|,<<,>>,&}'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 2016-07-23 at 02:37 -0400, Oleg Drokin wrote:
> From: Emoly Liu <emoly.liu@xxxxxxxxx>
unrelated trivial notes:
> diff --git a/drivers/staging/lustre/lustre/obdecho/echo_internal.h b/drivers/staging/lustre/lustre/obdecho/echo_internal.h
[]
> @@ -33,9 +33,9 @@
>
> /* The persistent object (i.e. actually stores stuff!) */
> #define ECHO_PERSISTENT_OBJID 1ULL
> -#define ECHO_PERSISTENT_SIZE ((__u64)(1<<20))
> +#define ECHO_PERSISTENT_SIZE ((__u64)(1 << 20))
This is generally an error-prone pattern as the cast is
done after the shift.
Perhaps better is using a specific type
#define ECHO_PERSISTENT_SIZE (1ULL << 20)
And lustre seems to use types with unnecessary __ prefixes.
- Next message: SF Markus Elfring: "[PATCH] omapfb: panel-dsi-cm: Delete an unnecessary check before backlight_device_unregister()"
- Previous message: Jonathan Cameron: "Re: How to support multiple chips in single driver"
- In reply to: Oleg Drokin: "[PATCH 12/15] staging/lustre: Add spaces preferred around that '{+,-,*,/,|,<<,>>,&}'"
- Next in thread: Oleg Drokin: "Re: [PATCH 12/15] staging/lustre: Add spaces preferred around that '{+,-,*,/,|,<<,>>,&}'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]