Re: [PATCH] memstick: use __blk_end_request to complete requests

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, February 4, 2008 - 12:07 am

On Sun, 3 Feb 2008 20:31:10 -0800 (PST) Alex Dubov <oakad@yahoo.com> wrote:


Thanks.  However please do prepare patches in `patch -p1' form.

Could you please fix the build error in the code in 2.6.24-mm1?

I part-fixed it (then disabled it) with this:

--- a/drivers/memstick/core/mspro_block.c~a
+++ a/drivers/memstick/core/mspro_block.c
@@ -1233,11 +1232,12 @@ static int mspro_block_resume(struct mem
 	unsigned long flags;
 	int rc = 0;
 
-#ifdef CONFIG_MEMSTICK_UNSAFE_RESUME
+#if defined(CONFIG_MEMSTICK_UNSAFE_RESUME) && 0
 
 	struct mspro_block_data *new_msb;
 	struct memstick_host *host = card->host;
-	struct mspro_sys_attr s_attr, r_attr;
+	struct mspro_sys_attr *s_attr;
+	struct mspro_sys_attr *r_attr;
 	unsigned char cnt;
 
 	mutex_lock(&host->lock);
_

see, this:

		s_attr = container_of(new_msb->attr_group.attrs[cnt],
				      struct mspro_sys_attr,
				      dev_attr);

is broken.  Attribute groups hold `struct attribute' but this code thinks
they hold `struct device_attribute'.  I could bodge it to compile cleanly,
but I don't know if it will work.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] [MEMSTICK] Initial commit for Sony MemoryStick ..., Mariusz Kozlowski, (Tue Jan 15, 10:21 am)
[PATCH] [MEMSTICK] Updates for the memstick driver, Alex Dubov, (Fri Jan 25, 12:58 am)
Re: [PATCH] [MEMSTICK] Updates for the memstick driver, Andrew Morton, (Sat Jan 26, 11:01 pm)
Re: [PATCH] [MEMSTICK] Updates for the memstick driver, Andrew Morton, (Sat Feb 2, 5:16 pm)
Re: [PATCH] memstick: use __blk_end_request to complete re ..., Andrew Morton, (Mon Feb 4, 12:07 am)