From: Nathan Fontenot <nfont@linux.vnet.ibm.com>
To: Fabian Frederick <fabf@skynet.be>, linux-kernel@vger.kernel.org
Cc: Marcelo Henrique Cerri <mhcerri@linux.vnet.ibm.com>
Subject: Re: [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead of IS_ALIGNED(PAGE_SIZE
Date: Mon, 16 Jun 2014 09:55:13 -0500 [thread overview]
Message-ID: <539F0551.30305@linux.vnet.ibm.com> (raw)
In-Reply-To: <1402783795-12331-1-git-send-email-fabf@skynet.be>
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();
>
prev parent reply other threads:[~2014-06-16 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=539F0551.30305@linux.vnet.ibm.com \
--to=nfont@linux.vnet.ibm.com \
--cc=fabf@skynet.be \
--cc=linux-kernel@vger.kernel.org \
--cc=mhcerri@linux.vnet.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.