WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][XENTOP][2/4] Display blktap statistics.

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XENTOP][2/4] Display blktap statistics.
From: "Satoshi Uchida" <s-uchida@xxxxxxxxxxxxx>
Date: Tue, 5 Jun 2007 19:01:31 +0900
Delivery-date: Tue, 05 Jun 2007 03:00:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcejPgoRDlbLQUnWSp2/mlIlNfK/qQEGVI6g
This patch resolves collision of device_attribute structures between blktap and 
blkback, which created macro DEVICE_ATTR.
by adding static, device_attribute structure is located local name space.


# HG changeset patch
# User s-uchida@xxxxxxxxxxxxx
# Date 1180665490 -32400
# Node ID d06f4b7fec7f132030fa7bd2dbb358c8bd761a6a
# Parent  32d03e18fda8aad13b1674104eb2d32854be1403
BLKBK:Resolved collision with blktap.

Sigened-off-by: Satoshi UCHIDA <s-uchida@xxxxxxxxxxxxx>

diff -r 32d03e18fda8 -r d06f4b7fec7f 
linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Fri Jun 01 11:33:59 
2007 +0900
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Fri Jun 01 11:38:10 
2007 +0900
@@ -111,7 +111,7 @@ static void update_blkif_status(blkif_t 
                                                                        \
                return sprintf(buf, format, ##args);                    \
        }                                                               \
-       DEVICE_ATTR(name, S_IRUGO, show_##name, NULL)
+       static DEVICE_ATTR(name, S_IRUGO, show_##name, NULL)
 
 VBD_SHOW(oo_req,  "%d\n", be->blkif->st_oo_req);
 VBD_SHOW(rd_req,  "%d\n", be->blkif->st_rd_req);


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][XENTOP][2/4] Display blktap statistics., Satoshi Uchida <=