diff mbox

[-next] mmc quirks: fix truncation warnings

Message ID 20110412091735.f41a3d44.randy.dunlap@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Randy Dunlap April 12, 2011, 4:17 p.m. UTC
From: Randy Dunlap <randy.dunlap@oracle.com>

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>
Cc:	Chris Ball <cjb@laptop.org>
Cc:	linux-mmc@vger.kernel.org
---
 include/linux/mmc/card.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Chris Ball April 12, 2011, 5:03 p.m. UTC | #1
Hi,

On Tue, Apr 12 2011, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> 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>
> Cc:	Chris Ball <cjb@laptop.org>
> Cc:	linux-mmc@vger.kernel.org
> ---
>  include/linux/mmc/card.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20110412.orig/include/linux/mmc/card.h
> +++ linux-next-20110412/include/linux/mmc/card.h
> @@ -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)
>  
>

Thanks very much, Randy, I've pushed this to mmc-next.

- Chris.
diff mbox

Patch

--- linux-next-20110412.orig/include/linux/mmc/card.h
+++ linux-next-20110412/include/linux/mmc/card.h
@@ -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)