* [PATCH] keys: Use non-conflicting variable name
@ 2015-06-24 22:27 Guenter Roeck
2015-06-25 15:36 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2015-06-24 22:27 UTC (permalink / raw)
To: Herbert Xu
Cc: David S. Miller, linux-crypto, linux-kernel, Guenter Roeck,
Suthikulpanit, Suravee
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>
---
crypto/asymmetric_keys/rsa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/asymmetric_keys/rsa.c b/crypto/asymmetric_keys/rsa.c
index 459cf97a75e2..508b57b77474 100644
--- a/crypto/asymmetric_keys/rsa.c
+++ b/crypto/asymmetric_keys/rsa.c
@@ -120,7 +120,7 @@ static int RSAVP1(const struct public_key *key, MPI s, MPI *_m)
/*
* Integer to Octet String conversion [RFC3447 sec 4.1]
*/
-static int RSA_I2OSP(MPI x, size_t xLen, u8 **_X)
+static int RSA_I2OSP(MPI x, size_t xLen, u8 **pX)
{
unsigned X_size, x_size;
int X_sign;
@@ -147,7 +147,7 @@ static int RSA_I2OSP(MPI x, size_t xLen, u8 **_X)
return -EBADMSG;
}
- *_X = X;
+ *pX = X;
return 0;
}
--
2.1.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] keys: Use non-conflicting variable name
2015-06-24 22:27 [PATCH] keys: Use non-conflicting variable name Guenter Roeck
@ 2015-06-25 15:36 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2015-06-25 15:36 UTC (permalink / raw)
To: Guenter Roeck
Cc: David S. Miller, linux-crypto, linux-kernel, Suthikulpanit, Suravee
On Wed, Jun 24, 2015 at 03:27:01PM -0700, Guenter Roeck wrote:
> 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>
Applied.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-25 15:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-24 22:27 [PATCH] keys: Use non-conflicting variable name Guenter Roeck
2015-06-25 15:36 ` Herbert Xu
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®