lkml.org 
[lkml]   [2003]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] nbd.c compile warning
On 12 Jul 2003, Shane Shrybman wrote:

> Here is a patch to fix a compile warning from nbd.c. It has been compile
> tested, ( I don't actually use nbd, yet). I have included the patch as
> an attachment in case it gets mangled.
>
> --- linux-2.5.75-mm1/drivers/block/nbd.c.orig Sat Jul 12 09:23:45 2003
> +++ linux-2.5.75-mm1/drivers/block/nbd.c Sat Jul 12 09:45:06 2003
> @@ -261,7 +261,7 @@
> dprintk(DBG_TX, "%s: request %p: sending control
> (%s@%llu,%luB)\n",
> lo->disk->disk_name, req,
> nbdcmd_to_ascii(nbd_cmd(req)),
> - req->sector << 9, req->nr_sectors << 9);
> + (unsigned long long)req->sector << 9,
> req->nr_sectors << 9);
> result = sock_xmit(sock, 1, &request, sizeof(request),
> (nbd_cmd(req) == NBD_CMD_WRITE)? MSG_MORE: 0);
> if (result <= 0) {
>

Thanks, I'll send a patch on to Andrew Morton shortly.

--
Paul

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.025 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site