From: "Satoshi Uchida" Subject: [PATCH][XENTOP][2/4] Display blktap statistics. Date: Tue, 5 Jun 2007 19:01:31 +0900 Message-ID: <011601c7a758$7db45780$4c87380a@ad.spf.cl.nec.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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@ap.jp.nec.com # Date 1180665490 -32400 # Node ID d06f4b7fec7f132030fa7bd2dbb358c8bd761a6a # Parent 32d03e18fda8aad13b1674104eb2d32854be1403 BLKBK:Resolved collision with blktap. Sigened-off-by: Satoshi UCHIDA 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=20 \ return sprintf(buf, format, ##args); \ } \ - DEVICE_ATTR(name, S_IRUGO, show_##name, NULL) + static DEVICE_ATTR(name, S_IRUGO, show_##name, NULL) =20 VBD_SHOW(oo_req, "%d\n", be->blkif->st_oo_req); VBD_SHOW(rd_req, "%d\n", be->blkif->st_rd_req);