]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-linux-kernel/ti-linux-kernel-next.git/commit
crypto: asymmetric_keys/rsa - Use non-conflicting variable name
authorGuenter Roeck <linux@roeck-us.net>
Wed, 24 Jun 2015 22:27:01 +0000 (15:27 -0700)
committerAlex Shi <alex.shi@linaro.org>
Wed, 20 Apr 2016 13:09:01 +0000 (21:09 +0800)
commitadc9d4c4bc95f420f2a61a1072a9854d83fb53c0
treeee4523586b09283a5a1846734d149b4b6e889b77
parent33c2f1d6151761e46294264aebd46604edea7fd2
crypto: asymmetric_keys/rsa - Use non-conflicting variable name

arm64:allmodconfig fails to build as follows.

In file included from include/acpi/platform/aclinux.h:74:0,
                 from include/acpi/platform/acenv.h:173,
                 from include/acpi/acpi.h:56,
                 from include/linux/acpi.h:37,
                 from ./arch/arm64/include/asm/dma-mapping.h:21,
                 from include/linux/dma-mapping.h:86,
                 from include/linux/skbuff.h:34,
                 from include/crypto/algapi.h:18,
                 from crypto/asymmetric_keys/rsa.c:16:
include/linux/ctype.h:15:12: error: expected ‘;’, ‘,’ or ‘)’
before numeric constant
 #define _X 0x40 /* hex digit */
            ^
crypto/asymmetric_keys/rsa.c:123:47: note: in expansion of macro ‘_X’
 static int RSA_I2OSP(MPI x, size_t xLen, u8 **_X)
                                               ^
crypto/asymmetric_keys/rsa.c: In function ‘RSA_verify_signature’:
crypto/asymmetric_keys/rsa.c:256:2: error:
implicit declaration of function ‘RSA_I2OSP’

The problem is caused by an unrelated include file change, resulting in
the inclusion of ctype.h on arm64. This in turn causes the local variable
_X to conflict with macro _X used in ctype.h.

Fixes: b6197b93fa4b ("arm64 : Introduce support for ACPI _CCA object")
Cc: Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 2cdcc357c221796fac3772f23cd5830f411c0e45)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
crypto/asymmetric_keys/rsa.c