[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110830110749.GE3705@shale.localdomain>
Date: Tue, 30 Aug 2011 14:07:49 +0300
From: Dan Carpenter <error27@...il.com>
To: "K. Y. Srinivasan" <kys@...rosoft.com>
Cc: gregkh@...e.de, linux-kernel@...r.kernel.org,
devel@...uxdriverproject.org, virtualization@...ts.osdl.org,
Haiyang Zhang <haiyangz@...rosoft.com>
Subject: Re: [PATCH 18/46] Staging: hv: storvsc: Add code to handle IDE
devices using the storvsc driver
On Sat, Aug 27, 2011 at 11:31:17AM -0700, K. Y. Srinivasan wrote:
> @@ -59,6 +59,17 @@ struct storvsc_cmd_request {
> struct hv_storvsc_request request;
> };
>
> +static void storvsc_get_ide_info(struct hv_device *dev, int *target, int *path)
> +{
> + *target =
> + dev->dev_instance.b[5] << 8 | dev->dev_instance.b[4];
> +
> + *path =
> + dev->dev_instance.b[3] << 24 |
> + dev->dev_instance.b[2] << 16 |
> + dev->dev_instance.b[1] << 8 | dev->dev_instance.b[0];
> +}
> +
Does endianness matter here? It seems like *path isn't actually used
anywhere. Probably target and path should be u32 types?
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists