]> git.baikalelectronics.ru Git - kernel.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>
Mon, 31 Oct 2011 23:32:31 +0000 (19:32 -0400)
commitc10c16726c309879ccdd96b66257eccb6e90bb24
tree8b2c0049e0fb887aec31ea4cbc040834b8ab416c
parente2a0f6891c7e39a36a1b6c6d66217a9a2601712c
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