From: Linus Torvalds Date: Mon, 16 Jul 2007 18:18:23 +0000 (-0700) Subject: Fix new generic block device SG compile X-Git-Tag: upstream/snapshot3+hdmi~32663 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abce891a10559343d8ac9f79b46d78afdba63a40;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Fix new generic block device SG compile We had a merge issue with the "dentry" field going away from the kobject, and being replaced by a sysfs_dirent field (named "sd") instead. That broke the BSG compile. Cc: Jens Axboe Cc: FUJITA Tomonori Cc: James Bottomley Signed-off-by: Linus Torvalds --- diff --git a/block/bsg.c b/block/bsg.c index 461c9f5..576933f 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -1011,7 +1011,7 @@ retry: } bcd->class_dev = class_dev; - if (q->kobj.dentry) { + if (q->kobj.sd) { ret = sysfs_create_link(&q->kobj, &bcd->class_dev->kobj, "bsg"); if (ret) goto err;