login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
26
Re: S390 change in sg_set_page() cause build failure
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Kamalesh Babulal
Subject:
Re: S390 change in sg_set_page() cause build failure
Date: Friday, October 26, 2007 - 7:35 am
Jens Axboe wrote:
quoted text
> On Fri, Oct 26 2007, Kamalesh Babulal wrote: >> Hi Jens, >> >> The change in the sg_set_page() for the S390, cause the build failure >> >> drivers/s390/scsi/zfcp_aux.c: In function `zfcp_sg_list_alloc': >> drivers/s390/scsi/zfcp_aux.c:572: error: too many arguments to function `zfcp_address_to_sg' >> drivers/s390/scsi/zfcp_aux.c: In function `zfcp_gid_pn_buffers_alloc': >> drivers/s390/scsi/zfcp_aux.c:1524: error: too many arguments to function `zfcp_address_to_sg' >> drivers/s390/scsi/zfcp_aux.c:1525: error: too many arguments to function `zfcp_address_to_sg' >> make[2]: *** [drivers/s390/scsi/zfcp_aux.o] Error 1 >> make[1]: *** [drivers/s390/scsi] Error 2 >> make: *** [drivers/s390] Error 2 >> >> The commit 642f149031d70415d9318b919d50b71e4724adbd causes this build >> failure, in the drivers/s390/scsi/zfcp_def.h include file, the function >> zfcp_address_to_sg the len of the scatterlist missing. >> >> Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> >> -- >> diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h >> index 0754542..acf2d22 100644 >> --- a/drivers/s390/scsi/zfcp_def.h >> +++ b/drivers/s390/scsi/zfcp_def.h >> @@ -70,9 +70,11 @@ zfcp_sg_to_address(struct scatterlist *list) >> * zfcp_address_to_sg - set up struct scatterlist from kernel address >> * @address: kernel address >> * @list: struct scatterlist >> + * @list_size: size of the list - used for compatibility >> */ >> static inline void >> -zfcp_address_to_sg(void *address, struct scatterlist *list) >> +zfcp_address_to_sg(void *address, struct scatterlist *list, >> + unsigned int list_size) >> { >> sg_set_buf(list, address, 0); >> } > > That's not quite right, it should be: > > diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h > index 0754542..e268f79 100644 > --- a/drivers/s390/scsi/zfcp_def.h > +++ b/drivers/s390/scsi/zfcp_def.h > @@ -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 > + * @size: buffer size > */ > static inline void > -zfcp_address_to_sg(void *address, struct scatterlist *list) > +zfcp_address_to_sg(void *address, struct scatterlist *list, unsigned int size) > { > - sg_set_buf(list, address, 0); > + sg_set_buf(list, address, size); > } > > #define REQUEST_LIST_SIZE 128 >
Hi Jens, Thanks for fixing it. -- Thanks & Regards, Kamalesh Babulal, Linux Technology Center, IBM, ISTL. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
S390 change in sg_set_page() cause build failure
, Kamalesh Babulal
, (Fri Oct 26, 4:19 am)
Re: S390 change in sg_set_page() cause build failure
, Jens Axboe
, (Fri Oct 26, 4:54 am)
Re: S390 change in sg_set_page() cause build failure
, Kamalesh Babulal
, (Fri Oct 26, 7:35 am)
[PATCH-RESEND] Re: S390 change in sg_set_page() cause buil ...
, Kamalesh Babulal
, (Mon Oct 29, 4:22 am)
Re: [PATCH-RESEND] Re: S390 change in sg_set_page() cause ...
, Jens Axboe
, (Mon Oct 29, 4:26 am)
Re: [PATCH-RESEND] Re: S390 change in sg_set_page() cause ...
, Kamalesh Babulal
, (Mon Oct 29, 4:33 am)
Re: [PATCH-RESEND] Re: S390 change in sg_set_page() cause ...
, Jens Axboe
, (Mon Oct 29, 4:34 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Benjamin Herrenschmidt
[git pull] Please pull powerpc.git merge branch
Vivek Goyal
Re: [PATCH v4] sched: automated per session task groups
Andres Salomon
Re: [PATCH 1/2] OLPC: Add support for calling into Open Firmware
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
David Miller
Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate