From 8d5f7e2700d5632c24a0fcbbb0c23c5370d4e65a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 12 Apr 2004 19:25:15 -0700 Subject: [PATCH] [PATCH] pcmcia/rsrc_mgr.c warning fix. From: "Luiz Fernando N. Capitulino" , me drivers/pcmcia/rsrc_mgr.c: In function `find_io_region': drivers/pcmcia/rsrc_mgr.c:604: warning: large integer implicitly truncated to unsigned type We don't really know what underlying type an ioaddr_t has, so just use an integer here and let the compiler promote it appropriately. --- drivers/pcmcia/rsrc_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/rsrc_mgr.c b/drivers/pcmcia/rsrc_mgr.c index 892e45110f19d..bd110ae669166 100644 --- a/drivers/pcmcia/rsrc_mgr.c +++ b/drivers/pcmcia/rsrc_mgr.c @@ -601,7 +601,7 @@ int find_io_region(ioaddr_t *base, ioaddr_t num, unsigned long align, int ret; if (align == 0) - align = 0x10000UL; + align = 0x10000; data.mask = align - 1; data.offset = *base & data.mask; -- 2.53.0