Update zfcp_sg_to_address() for new SG chanegs.
Subsystems (2)
PATCH 1/1 Update zfcp_sg_to_address() for new SG chanegs.
Commit 642f149031d70415d9318b919d50b71e4724adbd Added args to zfcp_sg_to_address() but didn't update the defn. to know about them.
Signed-off-by Tony Breeds <[email protected]>
---
Only compile tested.
drivers/s390/scsi/zfcp_def.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/s390/scsi/zfcp_def.h +3 -2
@@ -70,11 +70,12 @@ zfcp_sg_to_address(struct scatterlist *list)* zfcp_address_to_sg - set up struct scatterlist from kernel address * @address: kernel address * @list: struct scatterlist +* @len: buffer length */ static inline void -zfcp_address_to_sg (void *address,struct scatterlist *list) +zfcp_address_to_sg (void *address,struct scatterlist *list,unsigned int len) { -sg_set_buf (list, address,0 ); +sg_set_buf (list, address, len); }#define REQUEST_LIST_SIZE 128
Signature · 6 lines
1.5.3.4 Yours Tony linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/ Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!
Quoted 20 lines · Tony Breeds
Commit
642f149031d70415d9318b919d50b71e4724adbdAdded args tozfcp_sg_to_address()but didn't update the defn. to know about them.Signed-off-by Tony Breeds <[email protected]>---
Only compile tested.
drivers/s390/scsi/zfcp_def.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)drivers/s390/scsi/zfcp_def.h +1
-0@@ -70,11 +70,12 @@ zfcp_sg_to_address(struct scatterlist *list)* zfcp_address_to_sg - set up struct scatterlist from kernel address * @address: kernel address * @list: struct scatterlist +* @len: buffer length
drivers/s390/scsi/zfcp_def.h zfcp_sg_to_address(struct scatterlist *list) · line 81
Quoted 10 lines
drivers/s390/scsi/zfcp_def.h +2
-2*/ static inline void -zfcp_address_to_sg (void *address,struct scatterlist *list) +zfcp_address_to_sg (void *address,struct scatterlist *list,unsigned int len) { -sg_set_buf (list, address,0 ); +sg_set_buf (list, address, len); }#define REQUEST_LIST_SIZE 128
Patch for that was merged yesterday.
Signature · 1 line
Jens Axboe