Re: [PATCH] parisc: fix dev_printk() compile warnings for accessing a device struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 13, 2009 at 09:14:51PM +0100, Helge Deller wrote:
> Fix compile warnings:
> drivers/scsi/zalon.c: In function `zalon_probe':
> drivers/scsi/zalon.c:140: warning: passing arg 1 of `dev_driver_string' from incompatible pointer type
> drivers/scsi/zalon.c:140: warning: passing arg 1 of `dev_name' from incompatible pointer type
> 
> Signed-off-by: Helge Deller <deller@xxxxxx>
> 
> diff --git a/drivers/scsi/lasi700.c b/drivers/scsi/lasi700.c
> index 4a4e695..f23c4ca 100644
> --- a/drivers/scsi/lasi700.c
> +++ b/drivers/scsi/lasi700.c
> @@ -103,7 +103,7 @@ lasi700_probe(struct parisc_device *dev)
>  
>  	hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
>  	if (!hostdata) {
> -		dev_printk(KERN_ERR, dev, "Failed to allocate host data\n");
> +		dev_printk(KERN_ERR, &dev->dev, "Failed to allocate host data\n");

Huh, I thought there was a pretty macro thingy that casted to the
embedded struct device. Oh well.

applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux