mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] md: fix compilation warning: left shift count >= width of type
@ 2008-11-21 15:21 Hannes Eder
  0 siblings, 0 replies; only message in thread
From: Hannes Eder @ 2008-11-21 15:21 UTC (permalink / raw)
  To: Cheng Renquan, NeilBrown, linux-kernel, kernel-janitors

Fix the following warnings:

drivers/md/md.c:1678: warning: left shift count >= width of type
drivers/md/md.c:1702: warning: left shift count >= width of type

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
 include/linux/raid/md_p.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/raid/md_p.h b/include/linux/raid/md_p.h
index 269e147..9491026 100644
--- a/include/linux/raid/md_p.h
+++ b/include/linux/raid/md_p.h
@@ -194,7 +194,7 @@ static inline __u64 md_event(mdp_super_t *sb) {
 	return (ev<<32)| sb->events_lo;
 }

-#define MD_SUPERBLOCK_1_TIME_SEC_MASK ((1UL<<40) - 1)
+#define MD_SUPERBLOCK_1_TIME_SEC_MASK ((1ULL<<40) - 1)

 /*
  * The version-1 superblock :

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-21 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-21 15:21 [PATCH] md: fix compilation warning: left shift count >= width of type Hannes Eder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®