public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: hpilo: fix pointer warning in ilo_ccb_setup
@ 2010-05-22  0:50 Prarit Bhargava
  2010-05-25 21:49 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Prarit Bhargava @ 2010-05-22  0:50 UTC (permalink / raw)
  To: linux-kernel, stable, david.altobelli, tony.camuso; +Cc: Prarit Bhargava

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

Fixes warning:

drivers/misc/hpilo.c: In function ‘ilo_ccb_setup’:
drivers/misc/hpilo.c:274: warning: cast to pointer from integer of different size

Signed-off-by: Prarit Bhargava <prarit@redhat.com>

diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.c
index 98ad012..b07a541 100644
--- a/drivers/misc/hpilo.c
+++ b/drivers/misc/hpilo.c
@@ -272,7 +272,7 @@ static int ilo_ccb_setup(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
 		return -ENOMEM;
 
 	dma_va = (char *)data->dma_va;
-	dma_pa = (char *)data->dma_pa;
+	dma_pa = (char *)(&data->dma_pa);
 
 	memset(dma_va, 0, data->dma_size);
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-25 22:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22  0:50 [PATCH]: hpilo: fix pointer warning in ilo_ccb_setup Prarit Bhargava
2010-05-25 21:49 ` Andrew Morton
2010-05-25 22:10   ` Prarit Bhargava
2010-05-25 22:35     ` Camuso, Tony
2010-05-25 22:16   ` Altobelli, David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox