diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-05-26 15:34:12 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-10-31 19:32:31 -0400 |
commit | 7c926402a7e8c9b279968fd94efec8700ba3859e (patch) | |
tree | 8b2c0049e0fb887aec31ea4cbc040834b8ab416c /include/linux/crypto.h | |
parent | e2ffa376f67a0778891e26026e36605e5dd2fa4d (diff) |
crypto.h: remove unused crypto_tfm_alg_modname() inline
The <linux/crypto.h> (which is in turn in common headers
like tcp.h) wants to use module_name() in an inline fcn.
But having all of <linux/module.h> along for the ride is
overkill and slows down compiles by a measureable amount,
since it in turn includes lots of headers.
Since the inline is never used anywhere in the kernel[1],
we can just remove it, and then also remove the module.h
include as well.
In all the many crypto modules, there were some relying on
crypto.h including module.h -- for them we now explicitly
call out module.h for inclusion.
[1] git grep shows some staging drivers also define the same
static inline, but they also never ever use it.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index e5e468e9133d..1e51f9a491ae 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -18,7 +18,6 @@ | |||
18 | #define _LINUX_CRYPTO_H | 18 | #define _LINUX_CRYPTO_H |
19 | 19 | ||
20 | #include <linux/atomic.h> | 20 | #include <linux/atomic.h> |
21 | #include <linux/module.h> | ||
22 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
23 | #include <linux/list.h> | 22 | #include <linux/list.h> |
24 | #include <linux/slab.h> | 23 | #include <linux/slab.h> |
@@ -505,11 +504,6 @@ static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) | |||
505 | return tfm->__crt_alg->cra_priority; | 504 | return tfm->__crt_alg->cra_priority; |
506 | } | 505 | } |
507 | 506 | ||
508 | static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm) | ||
509 | { | ||
510 | return module_name(tfm->__crt_alg->cra_module); | ||
511 | } | ||
512 | |||
513 | static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) | 507 | static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) |
514 | { | 508 | { |
515 | return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; | 509 | return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; |