[PATCH] cs5535-mfd: fix warning on x86-64 (v2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andres Salomon
Date: Tuesday, November 30, 2010 - 2:54 pm

ARRAY_SIZE() returns size_t; use %zu instead of %d so that we don't
get warnings on x86-64.

Signed-off-by: Andres Salomon <dilinger@queued.net>
---
 drivers/mfd/cs5535-mfd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c
index b141ca7..59ca6f1 100644
--- a/drivers/mfd/cs5535-mfd.c
+++ b/drivers/mfd/cs5535-mfd.c
@@ -103,7 +103,7 @@ static int __devinit cs5535_mfd_probe(struct pci_dev *pdev,
 		goto err_disable;
 	}
 
-	dev_info(&pdev->dev, "%d devices registered.\n",
+	dev_info(&pdev->dev, "%zu devices registered.\n",
 			ARRAY_SIZE(cs5535_mfd_cells));
 
 	return 0;
-- 
1.7.2.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: build warning after merge of the mfd tree, Stephen Rothwell, (Sun Nov 28, 5:52 pm)
[PATCH] cs5535-mfd: fix warning on x86-64, Andres Salomon, (Mon Nov 29, 9:44 pm)
Re: [PATCH] cs5535-mfd: fix warning on x86-64, Samuel Ortiz, (Tue Nov 30, 3:01 am)
Re: [PATCH] cs5535-mfd: fix warning on x86-64, Randy Dunlap, (Tue Nov 30, 11:22 am)
Re: [PATCH] cs5535-mfd: fix warning on x86-64, Andres Salomon, (Tue Nov 30, 2:44 pm)
[PATCH] cs5535-mfd: fix warning on x86-64 (v2), Andres Salomon, (Tue Nov 30, 2:54 pm)
Re: [PATCH] cs5535-mfd: fix warning on x86-64 (v2), Randy Dunlap, (Tue Nov 30, 3:36 pm)
Re: [PATCH] cs5535-mfd: fix warning on x86-64, Andres Salomon, (Tue Dec 7, 11:38 am)
Re: [PATCH] cs5535-mfd: fix warning on x86-64, Samuel Ortiz, (Thu Dec 9, 4:49 am)