]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto.h: remove unused crypto_tfm_alg_modname() inline
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 May 2011 19:34:12 +0000 (15:34 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Oct 2011 18:10:13 +0000 (14:10 -0400)
commite480dadaa8ccccdcc671fabcd86ccdcf80224046
tree9e0de0af79da0d57449eafd0de8fff8bd4034952
parentf71272f85ec52be4c6311244e669282a11b26965
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>
include/linux/crypto.h