Changeset 26237


Ignore:
Timestamp:
2011-03-19T18:40:02+01:00 (7 years ago)
Author:
hauke
Message:

kernel: linux/version.h was removed in kernel 2.6.19 and is now replaced by generated/autoconf.h.

This fixes build with kernel 2.6.38.
This was only build tested.
Thank you philipp64 for reporting

Location:
trunk/target/linux/generic/files/crypto/ocf
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/crypto/ocf/criov.c

    r21952 r26237  
    3535 */ 
    3636 
    37 #ifndef AUTOCONF_INCLUDED 
    38 #include <linux/config.h> 
     37#include <linux/version.h> 
     38#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     39#include <generated/autoconf.h> 
     40#else 
     41#include <linux/autoconf.h> 
    3942#endif 
    4043#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/crypto.c

    r21952 r26237  
    6464 
    6565 
    66 #ifndef AUTOCONF_INCLUDED 
    67 #include <linux/config.h> 
     66#include <linux/version.h> 
     67#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     68#include <generated/autoconf.h> 
     69#else 
     70#include <linux/autoconf.h> 
    6871#endif 
    6972#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/cryptocteon/cryptocteon.c

    r21952 r26237  
    2828 */ 
    2929 
    30 #ifndef AUTOCONF_INCLUDED 
    31 #include <linux/config.h> 
     30#include <linux/version.h> 
     31#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     32#include <generated/autoconf.h> 
     33#else 
     34#include <linux/autoconf.h> 
    3235#endif 
    3336#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/cryptodev.c

    r24286 r26237  
    4040 */ 
    4141 
    42 #ifndef AUTOCONF_INCLUDED 
    43 #include <linux/config.h> 
     42#include <linux/version.h> 
     43#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     44#include <generated/autoconf.h> 
     45#else 
     46#include <linux/autoconf.h> 
    4447#endif 
    4548#include <linux/types.h> 
  • trunk/target/linux/generic/files/crypto/ocf/cryptosoft.c

    r21952 r26237  
    3535 */ 
    3636 
    37 #ifndef AUTOCONF_INCLUDED 
    38 #include <linux/config.h> 
     37#include <linux/version.h> 
     38#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     39#include <generated/autoconf.h> 
     40#else 
     41#include <linux/autoconf.h> 
    3942#endif 
    4043#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/hifn/hifn7751.c

    r21952 r26237  
    4747 * Driver for various Hifn encryption processors. 
    4848 */ 
    49 #ifndef AUTOCONF_INCLUDED 
    50 #include <linux/config.h> 
     49#include <linux/version.h> 
     50#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     51#include <generated/autoconf.h> 
     52#else 
     53#include <linux/autoconf.h> 
    5154#endif 
    5255#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/hifn/hifnHIPP.c

    r21952 r26237  
    3333 * Driver for various Hifn encryption processors. 
    3434 */ 
    35 #ifndef AUTOCONF_INCLUDED 
    36 #include <linux/config.h> 
     35#include <linux/version.h> 
     36#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     37#include <generated/autoconf.h> 
     38#else 
     39#include <linux/autoconf.h> 
    3740#endif 
    3841#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/ixp4xx/ixp4xx.c

    r21952 r26237  
    3434 */ 
    3535 
    36 #ifndef AUTOCONF_INCLUDED 
    37 #include <linux/config.h> 
     36#include <linux/version.h> 
     37#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     38#include <generated/autoconf.h> 
     39#else 
     40#include <linux/autoconf.h> 
    3841#endif 
    3942#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c

    r21952 r26237  
    2727*******************************************************************************/ 
    2828 
    29 #ifndef AUTOCONF_INCLUDED 
    30 #include <linux/config.h> 
     29#include <linux/version.h> 
     30#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     31#include <generated/autoconf.h> 
     32#else 
     33#include <linux/autoconf.h> 
    3134#endif 
    3235#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/ocf-bench.c

    r21952 r26237  
    3131 
    3232 
    33 #ifndef AUTOCONF_INCLUDED 
    34 #include <linux/config.h> 
     33#include <linux/version.h> 
     34#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     35#include <generated/autoconf.h> 
     36#else 
     37#include <linux/autoconf.h> 
    3538#endif 
    3639#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/ocfnull/ocfnull.c

    r21952 r26237  
    3434 */ 
    3535 
    36 #ifndef AUTOCONF_INCLUDED 
    37 #include <linux/config.h> 
     36#include <linux/version.h> 
     37#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     38#include <generated/autoconf.h> 
     39#else 
     40#include <linux/autoconf.h> 
    3841#endif 
    3942#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/pasemi/pasemi.c

    r21952 r26237  
    1818 */ 
    1919 
    20 #ifndef AUTOCONF_INCLUDED 
    21 #include <linux/config.h> 
     20#include <linux/version.h> 
     21#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     22#include <generated/autoconf.h> 
     23#else 
     24#include <linux/autoconf.h> 
    2225#endif 
    2326#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/random.c

    r21952 r26237  
    3636 */ 
    3737 
    38 #ifndef AUTOCONF_INCLUDED 
    39 #include <linux/config.h> 
     38#include <linux/version.h> 
     39#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     40#include <generated/autoconf.h> 
     41#else 
     42#include <linux/autoconf.h> 
    4043#endif 
    4144#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/rndtest.c

    r21952 r26237  
    3737 */ 
    3838 
    39 #ifndef AUTOCONF_INCLUDED 
    40 #include <linux/config.h> 
     39#include <linux/version.h> 
     40#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     41#include <generated/autoconf.h> 
     42#else 
     43#include <linux/autoconf.h> 
    4144#endif 
    4245#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/safe/safe.c

    r21952 r26237  
    3232 */ 
    3333 
    34 #ifndef AUTOCONF_INCLUDED 
    35 #include <linux/config.h> 
     34#include <linux/version.h> 
     35#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     36#include <generated/autoconf.h> 
     37#else 
     38#include <linux/autoconf.h> 
    3639#endif 
    3740#include <linux/module.h> 
  • trunk/target/linux/generic/files/crypto/ocf/talitos/talitos.c

    r21952 r26237  
    108108 */ 
    109109 
    110 #ifndef AUTOCONF_INCLUDED 
    111 #include <linux/config.h> 
     110#include <linux/version.h> 
     111#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     112#include <generated/autoconf.h> 
     113#else 
     114#include <linux/autoconf.h> 
    112115#endif 
    113116#include <linux/module.h> 
Note: See TracChangeset for help on using the changeset viewer.