RE: [PATCH]: hpilo: fix pointer warning in ilo_ccb_setup

From: Altobelli, David
Date: Tue May 25 2010 - 18:19:32 EST


> Seems very wrong - writes to *dmp_pa will now scribble over
> the `struct ccb_data'.

Yeah. The dma_pa variable is used to track the physical
address of the DMA memory, and it is written to the device.
We don't want a kernel pointer, we want the actual physical addr,
plus the various offsets.

> Probably local variable dma_pa should have type dma_addr_t.

I feel like I tried that, and I had trouble setting or using
the send_fifobar/recv_fifobar variables. But I probably
didn't try too hard.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/