This patch fixes following warning: drivers/w1/w1.c: In function 'w1_found': drivers/w1/w1.c:471: warning: integer constant is too large for 'long' type Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> --- drivers/w1/w1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index eb6bec8..bbef470 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -468,7 +468,7 @@ void w1_found(struct w1_bus *bus, u64 rn) dev->reg_num = rn; dev->fid = tmp >> 56; - dev->id = (tmp >> 8) & 0xffffffffffff; + dev->id = (tmp >> 8) & 0xffffffffffffULL; dev->crc = tmp & 0xff; dev_dbg(&bus->dev, "%s: familly = 0x%x, id = 0x%llx, crc = 0x%x\n", -- 1.7.12.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox