From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] w1: Fix compiler warning
Date: Tue, 5 Mar 2013 19:09:02 +0400 [thread overview]
Message-ID: <1362496142-23729-2-git-send-email-shc_work@mail.ru> (raw)
In-Reply-To: <1362496142-23729-1-git-send-email-shc_work@mail.ru>
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@mail.ru>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2013-03-05 15:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 15:09 [PATCH 1/2] mtd: nand: " Alexander Shiyan
2013-03-05 15:09 ` Alexander Shiyan [this message]
2013-03-06 8:05 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1362496142-23729-2-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox