Re: [PATCH] block: aoe: replace use of __constant_htons to htons

2020-12-21 Thread 'Amey Narkhede'
On 20/12/21 09:23AM, David Laight wrote: > From: 'Amey Narkhede' > > Sent: 20 December 2020 20:20 > > To: David Laight > > Subject: Re: [PATCH] block: aoe: replace use of __constant_htons to htons > > > > On 20/12/20 07:35PM, David Laight wrote:

Re: [PATCH] block: aoe: replace use of __constant_htons to htons

2020-12-20 Thread 'Amey Narkhede'
--- Begin Message --- On 20/12/20 07:35PM, David Laight wrote: > From: Amey Narkhede > > Sent: 20 December 2020 16:46 > > > > The macro htons expands to __swab16 which has special > > case for constants in little endian case. In big > > endian case both __constant_htons and htons macros > > expand

Fwd: Re: [PATCH] block: aoe: replace use of __constant_htons to htons

2020-12-20 Thread 'Amey Narkhede'
--- Begin Message --- On 20/12/20 07:35PM, David Laight wrote: > From: Amey Narkhede > > Sent: 20 December 2020 16:46 > > > > The macro htons expands to __swab16 which has special > > case for constants in little endian case. In big > > endian case both __constant_htons and htons macros > > expand

RE: [PATCH] block: aoe: replace use of __constant_htons to htons

2020-12-20 Thread David Laight
From: Amey Narkhede > Sent: 20 December 2020 16:46 > > The macro htons expands to __swab16 which has special > case for constants in little endian case. In big > endian case both __constant_htons and htons macros > expand to the same code. So, replace __constant_htons > with htons to get rid of th

[PATCH] block: aoe: replace use of __constant_htons to htons

2020-12-20 Thread Amey Narkhede
The macro htons expands to __swab16 which has special case for constants in little endian case. In big endian case both __constant_htons and htons macros expand to the same code. So, replace __constant_htons with htons to get rid of the definition of __constant_htons completely. Signed-off-by: Ame