[PATCH] jsflash: fix compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No bio in this whole function, use req->bio instead.

Fixes: 37a5b5c6 ("jsflash: handle highmem pages");
Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---

Looks like no one except for Guenters build bot cared.  I wonder if we
should just get rid of the driver given that it doesn't look in a good
shape at all based on his build logs even with the fix..

 drivers/sbus/char/jsflash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sbus/char/jsflash.c b/drivers/sbus/char/jsflash.c
index 8520587b8d09..821367ef9dd3 100644
--- a/drivers/sbus/char/jsflash.c
+++ b/drivers/sbus/char/jsflash.c
@@ -230,7 +230,7 @@ static void jsfd_request(void)
 			goto end;
 		}
 
-		p = kmap_atomic(bio_page(bio)) + bio_offset(bio);
+		p = kmap_atomic(bio_page(req->bio)) + bio_offset(req->bio);
 		jsfd_read(p, jdp->dbase + offset, len);
 		kunmap_atomic(p);
 		err = BLK_STS_OK;
-- 
2.17.0

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux