mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fabian Frederick <fabf@skynet.be>
To: linux-kernel@vger.kernel.org
Cc: Fabian Frederick <fabf@skynet.be>,
	Nathan Fontenot <nfont@linux.vnet.ibm.com>,
	Marcelo Henrique Cerri <mhcerri@linux.vnet.ibm.com>
Subject: [PATCH 1/1] drivers/crypto/nx/nx-842.c: use PAGE_ALIGNED instead of IS_ALIGNED(PAGE_SIZE
Date: Sun, 15 Jun 2014 00:09:55 +0200	[thread overview]
Message-ID: <1402783795-12331-1-git-send-email-fabf@skynet.be> (raw)

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


             reply	other threads:[~2014-06-14 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-14 22:09 Fabian Frederick [this message]
2014-06-16 14:55 ` Nathan Fontenot

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=1402783795-12331-1-git-send-email-fabf@skynet.be \
    --to=fabf@skynet.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhcerri@linux.vnet.ibm.com \
    --cc=nfont@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®