mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PATCH: Fix warning with b44.c on 64bit boxes
@ 2006-01-17 17:53 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2006-01-17 17:53 UTC (permalink / raw)
  To: linux-kernel, jgarzik

sizeof() return is not an int, so use max_t to get the types right.

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.16-rc1/drivers/net/b44.c linux-2.6.16-rc1/drivers/net/b44.c
--- linux.vanilla-2.6.16-rc1/drivers/net/b44.c	2006-01-17 15:36:31.000000000 +0000
+++ linux-2.6.16-rc1/drivers/net/b44.c	2006-01-17 17:20:41.000000000 +0000
@@ -2136,7 +2136,7 @@
 
 	/* Setup paramaters for syncing RX/TX DMA descriptors */
 	dma_desc_align_mask = ~(dma_desc_align_size - 1);
-	dma_desc_sync_size = max(dma_desc_align_size, sizeof(struct dma_desc));
+	dma_desc_sync_size = max_t(unsigned int, dma_desc_align_size, sizeof(struct dma_desc));
 
 	return pci_module_init(&b44_driver);
 }


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

only message in thread, other threads:[~2006-01-17 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-17 17:53 PATCH: Fix warning with b44.c on 64bit boxes Alan Cox

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®