linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: Al Viro <viro@ftp.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] aes: fix endian warnings
Date: Fri, 23 Dec 2005 00:47:34 +0300	[thread overview]
Message-ID: <20051222214734.GB16883@mipter.zuzino.mipt.ru> (raw)
In-Reply-To: <20051222101523.GP27946@ftp.linux.org.uk>

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 crypto/aes.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/crypto/aes.c
+++ b/crypto/aes.c
@@ -73,8 +73,8 @@ byte(const u32 x, const unsigned n)
 	return x >> (n << 3);
 }
 
-#define u32_in(x) le32_to_cpu(*(const u32 *)(x))
-#define u32_out(to, from) (*(u32 *)(to) = cpu_to_le32(from))
+#define u32_in(x) le32_to_cpu(*(const __le32 *)(x))
+#define u32_out(to, from) (*(__le32 *)(to) = cpu_to_le32(from))
 
 struct aes_ctx {
 	int key_length;


  parent reply	other threads:[~2005-12-22 21:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-22 10:15 [PATCHSET] 2.6.15-rc6-bird1 Al Viro
2005-12-22 11:25 ` Maciej Soltysiak
2005-12-22 21:42 ` nbd: add endian annotations Alexey Dobriyan
2005-12-22 21:47 ` Alexey Dobriyan [this message]
2005-12-22 22:12 ` [PATCH] serpent: fix endian warnings Alexey Dobriyan
2005-12-23  9:31 ` [PATCHSET] 2.6.15-rc6-bird2 Al Viro
2005-12-23 20:51   ` [PATCH] drivers/pcmcia/cistpl.c: fix endian warnings Alexey Dobriyan
2005-12-30  9:24     ` Dominik Brodowski
2005-12-24  9:51   ` [PATCHSET] 2.6.15-rc6-bird3 Al Viro
2005-12-25 20:14     ` [PATCHSET] 2.6.15-rc7-bird1 Al Viro
2005-12-29  4:38       ` Adrian Bunk
2006-02-04 11:27       ` [PATCHSET] 2.6.15-rc2-git1-bird1 Al Viro
2017-11-04  0:29       ` [PATCHSET] 2.6.15-rc7-bird1 Al Viro
2017-11-04  0:31         ` Al Viro

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=20051222214734.GB16883@mipter.zuzino.mipt.ru \
    --to=adobriyan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ftp.linux.org.uk \
    /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;
as well as URLs for NNTP newsgroup(s).