diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-07-06 10:34:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-06 11:40:58 +0100 |
commit | 3d05035efaac1e9a4583b62cd70ecb8541399c0f (patch) | |
tree | b2488e7122d29bc9c24f306002c901e159c0a992 /drivers/ptp | |
parent | 25e7f2de96588890536c4032b703e4568495b212 (diff) | |
download | lwn-3d05035efaac1e9a4583b62cd70ecb8541399c0f.tar.gz lwn-3d05035efaac1e9a4583b62cd70ecb8541399c0f.zip |
ptp: dte: Use LL suffix for 64-bit constants
With gcc 4.1.2:
drivers/ptp/ptp_dte.c: In function ‘dte_write_nco_delta’:
drivers/ptp/ptp_dte.c:105: warning: integer constant is too large for ‘long’ type
drivers/ptp/ptp_dte.c:112: warning: integer constant is too large for ‘long’ type
drivers/ptp/ptp_dte.c:114: warning: integer constant is too large for ‘long’ type
Add the missing "LL" suffix to fix this.
Fixes: 8a56aa107f1e8123 ("ptp: Add a ptp clock driver for Broadcom DTE")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp')
-rw-r--r-- | drivers/ptp/ptp_dte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_dte.c b/drivers/ptp/ptp_dte.c index 00145a3f1e70..faf6f7a83713 100644 --- a/drivers/ptp/ptp_dte.c +++ b/drivers/ptp/ptp_dte.c @@ -40,7 +40,7 @@ #define DTE_WRAP_AROUND_NSEC_SHIFT 44 /* 44 bits NCO */ -#define DTE_NCO_MAX_NS 0xFFFFFFFFFFF +#define DTE_NCO_MAX_NS 0xFFFFFFFFFFFLL /* 125MHz with 3.29 reg cfg */ #define DTE_PPB_ADJ(ppb) (u32)(div64_u64((((u64)abs(ppb) * BIT(28)) +\ |