kernel: linux/version.h was removed in kernel 2.6.19 and is now replaced by generated...
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Mar 2011 17:40:02 +0000 (17:40 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Mar 2011 17:40:02 +0000 (17:40 +0000)
This fixes build with kernel 2.6.38.
This was only build tested.
Thank you philipp64 for reporting

SVN-Revision: 26237

16 files changed:
target/linux/generic/files/crypto/ocf/criov.c
target/linux/generic/files/crypto/ocf/crypto.c
target/linux/generic/files/crypto/ocf/cryptocteon/cryptocteon.c
target/linux/generic/files/crypto/ocf/cryptodev.c
target/linux/generic/files/crypto/ocf/cryptosoft.c
target/linux/generic/files/crypto/ocf/hifn/hifn7751.c
target/linux/generic/files/crypto/ocf/hifn/hifnHIPP.c
target/linux/generic/files/crypto/ocf/ixp4xx/ixp4xx.c
target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c
target/linux/generic/files/crypto/ocf/ocf-bench.c
target/linux/generic/files/crypto/ocf/ocfnull/ocfnull.c
target/linux/generic/files/crypto/ocf/pasemi/pasemi.c
target/linux/generic/files/crypto/ocf/random.c
target/linux/generic/files/crypto/ocf/rndtest.c
target/linux/generic/files/crypto/ocf/safe/safe.c
target/linux/generic/files/crypto/ocf/talitos/talitos.c

index 6d7d3ad4523f7be8f22927a48340c0a7908d4c07..e1b159fb4ece6c5f7349c75c82a1995e1bb11dc8 100644 (file)
 __FBSDID("$FreeBSD: src/sys/opencrypto/criov.c,v 1.5 2006/06/04 22:15:13 pjd Exp $");
  */
 
 __FBSDID("$FreeBSD: src/sys/opencrypto/criov.c,v 1.5 2006/06/04 22:15:13 pjd Exp $");
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index 9735f0ce93baf5b7f0f42162406e1802c3a029f1..ccd5a4bfab3f1948246ff0d9411caa55375b8f1e 100644 (file)
@@ -63,8 +63,11 @@ __FBSDID("$FreeBSD: src/sys/opencrypto/crypto.c,v 1.16 2005/01/07 02:29:16 imp E
  */
 
 
  */
 
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index 9940f59a9a5a0ad9f785d88a6d29ec475383df26..fa377e5eeed0a43186f481a07b2602046d65e6e9 100644 (file)
  * ---------------------------------------------------------------------------
  */
 
  * ---------------------------------------------------------------------------
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index f7ce06bc120fb701e7a3b0a204c0f4183b113bb5..8f0257cce108ddefc2922d739255e95711028f9f 100644 (file)
 __FBSDID("$FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.34 2007/05/09 19:37:02 gnn Exp $");
  */
 
 __FBSDID("$FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.34 2007/05/09 19:37:02 gnn Exp $");
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/types.h>
 #include <linux/time.h>
 #endif
 #include <linux/types.h>
 #include <linux/time.h>
index 52e1570fccfa51a86f4858fe965c324df623add6..ff1315df56773d4e82cb8a4a5ce09301043c7f6a 100644 (file)
  * ---------------------------------------------------------------------------
  */
 
  * ---------------------------------------------------------------------------
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index e7fd5bb5a36a6586d9664190e5464bc91da18e3a..ad704c7fabdfe74aabf7f40265d33cb4a74426a0 100644 (file)
@@ -46,8 +46,11 @@ __FBSDID("$FreeBSD: src/sys/dev/hifn/hifn7751.c,v 1.40 2007/03/21 03:42:49 sam E
 /*
  * Driver for various Hifn encryption processors.
  */
 /*
  * Driver for various Hifn encryption processors.
  */
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index 802708d72c534c9af5f145e8e2042b8a189f364e..cdc23e926f86c6f4c6809018222351041172556a 100644 (file)
 /*
  * Driver for various Hifn encryption processors.
  */
 /*
  * Driver for various Hifn encryption processors.
  */
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index d5414a4ef511c5f5d8f03c80aa3695d732900724..a9eabf0bdc8cfa7453da75299f857761ca27e25b 100644 (file)
  * and/or fitness for purpose.
  */
 
  * and/or fitness for purpose.
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index ccf92276c035319f9406952503a97d64d04e2c94..fb51947a1a28843a4bbda4d59d0f28e04bc360dc 100644 (file)
@@ -26,8 +26,11 @@ DISCLAIMED.  The GPL License provides additional details about this warranty
 disclaimer.
 *******************************************************************************/
 
 disclaimer.
 *******************************************************************************/
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index d32523185f0edd4283c02a97b44d5049d994e8ba..8a3c40e8d0f6faf800b72be2d5d38dc99c7b197d 100644 (file)
  */
 
 
  */
 
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index a6b76cdaef31ec5edaf9c930c8f9bacfd00bf545..0c271cdc742534a986e1c1591766e1d0025cf5ae 100644 (file)
  * and/or fitness for purpose.
  */
 
  * and/or fitness for purpose.
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index c3bb9313d33b2a8712802ad2a1716a1771722513..e259dd390aff79b831364fa3e5c616d83b5b09af 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index 38dad13d773a40db40c0432a9e4384d0d0e12299..d004fde6c7e6df1fcf952da8321e0743df56204f 100644 (file)
  * and/or fitness for purpose.
  */
 
  * and/or fitness for purpose.
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
index b31e1a666d848f059cfa2cb33826e0f9ab825344..78d490a080b9486dad11f226293217ad0b998e21 100644 (file)
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/list.h>
 #endif
 #include <linux/module.h>
 #include <linux/list.h>
index 7e651017693141788358f0ecbe8324d5bc80062c..de7743154f921444d6bcbe29ff63b2291a2d713b 100644 (file)
 __FBSDID("$FreeBSD: src/sys/dev/safe/safe.c,v 1.18 2007/03/21 03:42:50 sam Exp $");
  */
 
 __FBSDID("$FreeBSD: src/sys/dev/safe/safe.c,v 1.18 2007/03/21 03:42:50 sam Exp $");
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/kernel.h>
 #endif
 #include <linux/module.h>
 #include <linux/kernel.h>
index 94046343eff25228174e3329b9c34beb35f78d1e..322f2ea8b7f9e6992ec3c6e6185807bf1a16fe44 100644 (file)
  * o add statistics
  */
 
  * o add statistics
  */
 
-#ifndef AUTOCONF_INCLUDED
-#include <linux/config.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/autoconf.h>
+#else
+#include <linux/autoconf.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>
 #endif
 #include <linux/module.h>
 #include <linux/init.h>