Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1303698

[PATCH 0/2] crypto: sunxi-ss: fix 64-bit compilation

From Andre Przywara <andre.przywara@arm.com>
Newsgroups linux.kernel
Subject [PATCH 0/2] crypto: sunxi-ss: fix 64-bit compilation
Date 2016-01-07 17:00 +0100
Message-ID <qOl8L-1I5-27@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

these two patches provide a different approach to an issue I tried
to fix lately [1].
Instead of casting everything I now promote local types to size_t, so
that the min3() arguments naturally match in type.
As size_t is defined as "unsigned int" on 32-bit architectures
anyway, that actually does not change anything there, but instead
provides a clean approach to get it compiled for arm64.

I split this up because 1/2 seems much cleaner to me than 2/2, so we
can have a separate discussion/merge process on this.

Cheers,
Andre.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-December/395689.html

Andre Przywara (2):
  crypto: sunxi-ss-cipher: promote variables to match types in min3()
    calls
  crypto: sunxi-ss-hash: promote variables to match types in min3()
    calls

 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 20 ++++++++++----------
 drivers/crypto/sunxi-ss/sun4i-ss-hash.c   | 12 ++++++------
 drivers/crypto/sunxi-ss/sun4i-ss.h        |  2 +-
 3 files changed, 17 insertions(+), 17 deletions(-)

-- 
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] crypto: sunxi-ss: fix 64-bit compilation Andre Przywara <andre.przywara@arm.com> - 2016-01-07 17:00 +0100
  [PATCH 1/2] crypto: sunxi-ss-cipher: promote variables to match types in min3() calls Andre Przywara <andre.przywara@arm.com> - 2016-01-07 17:00 +0100
  [PATCH 2/2] crypto: sunxi-ss-hash: promote variables to match types in min3() calls Andre Przywara <andre.przywara@arm.com> - 2016-01-07 17:00 +0100
  Re: [PATCH 0/2] crypto: sunxi-ss: fix 64-bit compilation Herbert Xu <herbert@gondor.apana.org.au> - 2016-01-08 11:10 +0100
    Re: [PATCH 0/2] crypto: sunxi-ss: fix 64-bit compilation Andre Przywara <andre.przywara@arm.com> - 2016-01-08 12:20 +0100

csiph-web