mmc: quirks: fix truncation warnings
authorRandy Dunlap <randy.dunlap@oracle.com>
Tue, 12 Apr 2011 16:59:09 +0000 (12:59 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:00:59 +0000 (21:00 -0400)
Fix data truncation warnings: .manfid is not unsigned long:

drivers/mmc/core/quirks.c:36: warning: large integer implicitly truncated to unsigned type
drivers/mmc/core/quirks.c:40: warning: large integer implicitly truncated to unsigned type
drivers/mmc/core/quirks.c:43: warning: large integer implicitly truncated to unsigned type
drivers/mmc/core/quirks.c:46: warning: large integer implicitly truncated to unsigned type

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
include/linux/mmc/card.h

index c6513175f7f1e5d3707d13624e8d96d714189a2d..937f852cf01e850761a533128a0c5e5269334695 100644 (file)
@@ -180,7 +180,7 @@ struct mmc_fixup {
        int data;
 };
 
-#define CID_MANFID_ANY (-1ul)
+#define CID_MANFID_ANY (-1u)
 #define CID_OEMID_ANY ((unsigned short) -1)
 #define CID_NAME_ANY (NULL)