* [PATCH] [linux-next] hwrng: cctrng - fix missing fips header
@ 2020-04-20 9:13 Murphy Zhou
2020-04-20 15:26 ` Hadar Gat
0 siblings, 1 reply; 2+ messages in thread
From: Murphy Zhou @ 2020-04-20 9:13 UTC (permalink / raw)
To: linux-crypto, Hadar Gat; +Cc: linux-next
In linux-next tree, this is causing build error:
drivers/char/hw_random/cctrng.c: In function ‘cc_trng_compwork_handler’:
drivers/char/hw_random/cctrng.c:334:49: error: ‘fips_enabled’ undeclared (first use in this function); did you mean ‘nx_enabled’?
if (CC_REG_FLD_GET(RNG_ISR, CRNGT_ERR, isr) && fips_enabled) {
^~~~~~~~~~~~
nx_enabled
drivers/char/hw_random/cctrng.c:334:49: note: each undeclared identifier is reported only once for each function it appears in
drivers/char/hw_random/cctrng.c:335:3: error: implicit declaration of function ‘fips_fail_notify’; did you mean ‘sysfs_notify’?
[-Werror=implicit-function-declaration]
fips_fail_notify();
^~~~~~~~~~~~~~~~
sysfs_notify
cc1: some warnings being treated as errors
Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
---
drivers/char/hw_random/cctrng.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c
index bdcd56243104..e82716c12c3a 100644
--- a/drivers/char/hw_random/cctrng.c
+++ b/drivers/char/hw_random/cctrng.c
@@ -15,6 +15,7 @@
#include <linux/completion.h>
#include <linux/of.h>
#include <linux/bitfield.h>
+#include <linux/fips.h>
#include "cctrng.h"
--
2.18.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] [linux-next] hwrng: cctrng - fix missing fips header
2020-04-20 9:13 [PATCH] [linux-next] hwrng: cctrng - fix missing fips header Murphy Zhou
@ 2020-04-20 15:26 ` Hadar Gat
0 siblings, 0 replies; 2+ messages in thread
From: Hadar Gat @ 2020-04-20 15:26 UTC (permalink / raw)
To: Murphy Zhou, linux-crypto; +Cc: linux-next, nd
> -----Original Message-----
> From: Murphy Zhou <jencce.kernel@gmail.com>
> Sent: Monday, 20 April 2020 12:13
>
> In linux-next tree, this is causing build error:
>
> drivers/char/hw_random/cctrng.c: In function ‘cc_trng_compwork_handler’:
> drivers/char/hw_random/cctrng.c:334:49: error: ‘fips_enabled’ undeclared
> (first use in this function); did you mean ‘nx_enabled’?
> if (CC_REG_FLD_GET(RNG_ISR, CRNGT_ERR, isr) && fips_enabled) {
> ^~~~~~~~~~~~
> nx_enabled
> drivers/char/hw_random/cctrng.c:334:49: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/char/hw_random/cctrng.c:335:3: error: implicit declaration of
> function ‘fips_fail_notify’; did you mean ‘sysfs_notify’?
> [-Werror=implicit-function-declaration]
> fips_fail_notify();
> ^~~~~~~~~~~~~~~~
> sysfs_notify
> cc1: some warnings being treated as errors
>
> Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
> ---
> drivers/char/hw_random/cctrng.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/char/hw_random/cctrng.c
> b/drivers/char/hw_random/cctrng.c index bdcd56243104..e82716c12c3a
> 100644
> --- a/drivers/char/hw_random/cctrng.c
> +++ b/drivers/char/hw_random/cctrng.c
> @@ -15,6 +15,7 @@
> #include <linux/completion.h>
> #include <linux/of.h>
> #include <linux/bitfield.h>
> +#include <linux/fips.h>
>
> #include "cctrng.h"
>
> --
> 2.18.1
Thanks Murphy for reporting.
This compilation issue was fixed few days ago and already applied.
BR,
Hadar
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-20 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 9:13 [PATCH] [linux-next] hwrng: cctrng - fix missing fips header Murphy Zhou
2020-04-20 15:26 ` Hadar Gat
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.