diff mbox

[rdma-core] util: fix bad argument passed to s390_mmio_write

Message ID a30f4084-1f1b-44c3-ac03-c627586e0604@suse.de (mailing list archive)
State Accepted
Headers show

Commit Message

Nicolas Morey-Chaisemartin Aug. 4, 2017, 9:20 a.m. UTC
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
---
 util/mmio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jason Gunthorpe Aug. 4, 2017, 3:35 p.m. UTC | #1
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>

On Fri, Aug 04, 2017 at 11:20:47AM +0200, Nicolas Morey-Chaisemartin wrote:
> Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
>  util/mmio.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/util/mmio.h b/util/mmio.h
> index be22fb76..101af9dd 100644
> +++ b/util/mmio.h
> @@ -208,7 +208,7 @@ __le64 mmio_read64_le(const void *addr);
>  #ifdef __s390x__
>  static inline void mmio_memcpy_x64(void *dest, const void *src, size_t bytecnt)
>  {
> -	s390_mmio_write(addr, src, bytecnt);
> +	s390_mmio_write(dest, src, bytecnt);
>  }
>  #else
>  
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Nicolas Morey-Chaisemartin Aug. 21, 2017, 2:26 p.m. UTC | #2
Hi,

This is an easy enough compilation fix.
Could we get it in for v15 ?

Nicolas

Le 04/08/2017 à 17:35, Jason Gunthorpe a écrit :
> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
>
> On Fri, Aug 04, 2017 at 11:20:47AM +0200, Nicolas Morey-Chaisemartin wrote:
>> Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
>>  util/mmio.h | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/util/mmio.h b/util/mmio.h
>> index be22fb76..101af9dd 100644
>> +++ b/util/mmio.h
>> @@ -208,7 +208,7 @@ __le64 mmio_read64_le(const void *addr);
>>  #ifdef __s390x__
>>  static inline void mmio_memcpy_x64(void *dest, const void *src, size_t bytecnt)
>>  {
>> -	s390_mmio_write(addr, src, bytecnt);
>> +	s390_mmio_write(dest, src, bytecnt);
>>  }
>>  #else
>>  

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Leon Romanovsky Aug. 21, 2017, 2:55 p.m. UTC | #3
On Mon, Aug 21, 2017 at 04:26:33PM +0200, Nicolas Morey-Chaisemartin wrote:
> Hi,
>
> This is an easy enough compilation fix.
> Could we get it in for v15 ?

Sorry,
It looks like that I missed it.

It is applied now.

Thanks
diff mbox

Patch

diff --git a/util/mmio.h b/util/mmio.h
index be22fb76..101af9dd 100644
--- a/util/mmio.h
+++ b/util/mmio.h
@@ -208,7 +208,7 @@  __le64 mmio_read64_le(const void *addr);
 #ifdef __s390x__
 static inline void mmio_memcpy_x64(void *dest, const void *src, size_t bytecnt)
 {
-	s390_mmio_write(addr, src, bytecnt);
+	s390_mmio_write(dest, src, bytecnt);
 }
 #else