[PATCH] nbd.c compile warning

From: Shane Shrybman (shrybman@sympatico.ca)
Date: Sat Jul 12 2003 - 09:50:12 EST


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) {

Regards,

shane



-
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/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:44 EST