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


Groups > linux.kernel > #1475535 > unrolled thread

[PATCH] crypto: caam: add missing header dependencies

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-09-03 05:40 +0200
Last post2016-09-07 15:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] crypto: caam: add missing header dependencies Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-03 05:40 +0200
    Re: [PATCH] crypto: caam: add missing header dependencies Herbert Xu <herbert@gondor.apana.org.au> - 2016-09-07 15:20 +0200

#1475535 — [PATCH] crypto: caam: add missing header dependencies

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-09-03 05:40 +0200
Subject[PATCH] crypto: caam: add missing header dependencies
Message-ID<sd9Yd-8mG-7@gated-at.bofh.it>
We get 1 warning when building kernel with W=1:
drivers/crypto/caam/ctrl.c:398:5: warning: no previous prototype for 'caam_get_era' [-Wmissing-prototypes]

In fact, this function is declared in drivers/crypto/caam/ctrl.h
and be exported, thus can be refrenced by modules, so this patch 
adds missing header dependencies.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
 drivers/crypto/caam/ctrl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index 0ec112e..46e72ed 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -14,6 +14,7 @@
 #include "jr.h"
 #include "desc_constr.h"
 #include "error.h"
+#include "ctrl.h"
 
 bool caam_little_end;
 EXPORT_SYMBOL(caam_little_end);
-- 
2.7.4

[toc] | [next] | [standalone]


#1478284

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2016-09-07 15:20 +0200
Message-ID<seKVI-db-23@gated-at.bofh.it>
In reply to#1475535
On Sat, Sep 03, 2016 at 11:29:30AM +0800, Baoyou Xie wrote:
> We get 1 warning when building kernel with W=1:
> drivers/crypto/caam/ctrl.c:398:5: warning: no previous prototype for 'caam_get_era' [-Wmissing-prototypes]
> 
> In fact, this function is declared in drivers/crypto/caam/ctrl.h
> and be exported, thus can be refrenced by modules, so this patch 
> adds missing header dependencies.
> 
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>

This patch has already been 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web