* [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead of IS_ALIGNED(PAGE_SIZE
@ 2014-06-14 22:09 Fabian Frederick
2014-06-16 14:55 ` Nathan Fontenot
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-06-14 22:09 UTC (permalink / raw)
To: linux-kernel; +Cc: Fabian Frederick, Nathan Fontenot, Marcelo Henrique Cerri
use mm.h definition
Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Cc: Marcelo Henrique Cerri <mhcerri@linux.vnet.ibm.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
drivers/crypto/nx/nx-842.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c
index 502edf0..923c4b6 100644
--- a/drivers/crypto/nx/nx-842.c
+++ b/drivers/crypto/nx/nx-842.c
@@ -350,7 +350,7 @@ int nx842_compress(const unsigned char *in, unsigned int inlen,
* the alignment is guaranteed.
*/
inbuf = (unsigned long)in;
- if (!IS_ALIGNED(inbuf, PAGE_SIZE) || inlen != PAGE_SIZE)
+ if (!PAGE_ALIGNED(inbuf) || inlen != PAGE_SIZE)
return -EINVAL;
rcu_read_lock();
@@ -545,7 +545,7 @@ int nx842_decompress(const unsigned char *in, unsigned int inlen,
/* Ensure page alignment and size */
outbuf = (unsigned long)out;
- if (!IS_ALIGNED(outbuf, PAGE_SIZE) || *outlen != PAGE_SIZE)
+ if (!PAGE_ALIGNED(outbuf) || *outlen != PAGE_SIZE)
return -EINVAL;
rcu_read_lock();
--
1.8.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead of IS_ALIGNED(PAGE_SIZE
2014-06-14 22:09 [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead of IS_ALIGNED(PAGE_SIZE Fabian Frederick
@ 2014-06-16 14:55 ` Nathan Fontenot
0 siblings, 0 replies; 2+ messages in thread
From: Nathan Fontenot @ 2014-06-16 14:55 UTC (permalink / raw)
To: Fabian Frederick, linux-kernel; +Cc: Marcelo Henrique Cerri
On 06/14/2014 05:09 PM, Fabian Frederick wrote:
> use mm.h definition
>
> Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
> Cc: Marcelo Henrique Cerri <mhcerri@linux.vnet.ibm.com>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
> ---
> drivers/crypto/nx/nx-842.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c
> index 502edf0..923c4b6 100644
> --- a/drivers/crypto/nx/nx-842.c
> +++ b/drivers/crypto/nx/nx-842.c
> @@ -350,7 +350,7 @@ int nx842_compress(const unsigned char *in, unsigned int inlen,
> * the alignment is guaranteed.
> */
> inbuf = (unsigned long)in;
> - if (!IS_ALIGNED(inbuf, PAGE_SIZE) || inlen != PAGE_SIZE)
> + if (!PAGE_ALIGNED(inbuf) || inlen != PAGE_SIZE)
> return -EINVAL;
>
> rcu_read_lock();
> @@ -545,7 +545,7 @@ int nx842_decompress(const unsigned char *in, unsigned int inlen,
>
> /* Ensure page alignment and size */
> outbuf = (unsigned long)out;
> - if (!IS_ALIGNED(outbuf, PAGE_SIZE) || *outlen != PAGE_SIZE)
> + if (!PAGE_ALIGNED(outbuf) || *outlen != PAGE_SIZE)
> return -EINVAL;
>
> rcu_read_lock();
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-16 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-14 22:09 [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead of IS_ALIGNED(PAGE_SIZE Fabian Frederick
2014-06-16 14:55 ` Nathan Fontenot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox