public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org,
	akpm@linux-foundation.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH-RESEND] Re: S390 change in sg_set_page() cause build failure
Date: Mon, 29 Oct 2007 17:03:42 +0530	[thread overview]
Message-ID: <4725C516.2000004@linux.vnet.ibm.com> (raw)
In-Reply-To: <20071029112617.GB5001@kernel.dk>

Jens Axboe wrote:
> On Mon, Oct 29 2007, Kamalesh Babulal wrote:
>> On Fri, Oct 26, 2007 at 01:54:30PM +0200, Jens Axboe wrote:
>>> On Fri, Oct 26 2007, Kamalesh Babulal wrote:
>>>> Hi Jens,
>>>>
>>>>  	sg_set_buf(list, address, 0);
>> <snip>
>>>>  }
>>> 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
>>>
>>> -- 
>>> Jens Axboe
>> Hi Jens,
>>
>> Resending the patch with the changes pointed by you in the patch.
>>
>> [jens.axboe@oracle.com: size parameter fix]
>> 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..f747e86 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
> 
> Thanks Kamalesh, but I already merged a fixed up version on friday:
> 
> http://git.kernel.dk/?p=linux-2.6-block.git;a=commit;h=9335432959111c982c74177521305e6a3fb600a3
> 
Hi Jens,

Thanks !! I resend because, this was seen till todays 2.6.24-rc1-git5.

-- 
Thanks & Regards,
Kamalesh Babulal,


  reply	other threads:[~2007-10-29 11:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-26 11:19 S390 change in sg_set_page() cause build failure Kamalesh Babulal
2007-10-26 11:54 ` Jens Axboe
2007-10-26 14:35   ` Kamalesh Babulal
2007-10-29 11:22   ` [PATCH-RESEND] " Kamalesh Babulal
2007-10-29 11:26     ` Jens Axboe
2007-10-29 11:33       ` Kamalesh Babulal [this message]
2007-10-29 11:34         ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4725C516.2000004@linux.vnet.ibm.com \
    --to=kamalesh@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox