* [PATCH -next] crypto: api: Do not access module name directly from module structure
@ 2015-04-24 15:58 Guenter Roeck
2015-04-24 22:38 ` Herbert Xu
0 siblings, 1 reply; 3+ messages in thread
From: Guenter Roeck @ 2015-04-24 15:58 UTC (permalink / raw)
To: Herbert Xu; +Cc: linux-crypto, linux-kernel, Guenter Roeck, Rusty Russell
'struct module' is only fully declared if CONFIG_MODULES is configured.
If not, the build fails with
crypto/algapi.c: In function 'crypto_check_module_sig':
crypto/algapi.c:49:12: error: dereferencing pointer to incomplete type
Fixes: 59afdc7b3214 ("crypto: api - Move module sig ifdef into accessor
function")
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
Seen in next-20150424.
crypto/algapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/algapi.c b/crypto/algapi.c
index c63836f4ff64..3103e6a1282e 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -46,7 +46,7 @@ static inline void crypto_check_module_sig(struct module *mod)
{
if (fips_enabled && mod && !module_sig_ok(mod))
panic("Module %s signature verification failed in FIPS mode\n",
- mod->name);
+ module_name(mod));
}
static int crypto_check_alg(struct crypto_alg *alg)
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] crypto: api: Do not access module name directly from module structure
2015-04-24 15:58 [PATCH -next] crypto: api: Do not access module name directly from module structure Guenter Roeck
@ 2015-04-24 22:38 ` Herbert Xu
2015-04-24 23:27 ` Guenter Roeck
0 siblings, 1 reply; 3+ messages in thread
From: Herbert Xu @ 2015-04-24 22:38 UTC (permalink / raw)
To: Guenter Roeck; +Cc: linux-crypto, linux-kernel, Rusty Russell
On Fri, Apr 24, 2015 at 08:58:03AM -0700, Guenter Roeck wrote:
> 'struct module' is only fully declared if CONFIG_MODULES is configured.
> If not, the build fails with
>
> crypto/algapi.c: In function 'crypto_check_module_sig':
> crypto/algapi.c:49:12: error: dereferencing pointer to incomplete type
>
> Fixes: 59afdc7b3214 ("crypto: api - Move module sig ifdef into accessor
> function")
> Cc: Herbert Xu <herbert@gondor.apana.org.au>
> Cc: Rusty Russell <rusty@rustcorp.com.au>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> Seen in next-20150424.
Thanks but a similar patch has already been queued.
--
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] 3+ messages in thread
* Re: [PATCH -next] crypto: api: Do not access module name directly from module structure
2015-04-24 22:38 ` Herbert Xu
@ 2015-04-24 23:27 ` Guenter Roeck
0 siblings, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2015-04-24 23:27 UTC (permalink / raw)
To: Herbert Xu; +Cc: linux-crypto, linux-kernel, Rusty Russell
On Sat, Apr 25, 2015 at 06:38:03AM +0800, Herbert Xu wrote:
> On Fri, Apr 24, 2015 at 08:58:03AM -0700, Guenter Roeck wrote:
> > 'struct module' is only fully declared if CONFIG_MODULES is configured.
> > If not, the build fails with
> >
> > crypto/algapi.c: In function 'crypto_check_module_sig':
> > crypto/algapi.c:49:12: error: dereferencing pointer to incomplete type
> >
> > Fixes: 59afdc7b3214 ("crypto: api - Move module sig ifdef into accessor
> > function")
> > Cc: Herbert Xu <herbert@gondor.apana.org.au>
> > Cc: Rusty Russell <rusty@rustcorp.com.au>
> > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> > ---
> > Seen in next-20150424.
>
> Thanks but a similar patch has already been queued.
Excellent.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-25 9:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-24 15:58 [PATCH -next] crypto: api: Do not access module name directly from module structure Guenter Roeck
2015-04-24 22:38 ` Herbert Xu
2015-04-24 23:27 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox