Changeset 3371

Show
Ignore:
Timestamp:
09/13/99 21:19:16 (14 years ago)
Author:
frodo
Message:

Some minor patches to make in-kernel compilation for 2.0.x kernels

possible.

Most importantly, some compatibility declaration were moved out of
i2c.h (where they could interfere if you were not careful where you
included it) to the separate modules.

Location:
i2c/trunk/kernel
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c-algo-bit.c

    r3364 r3371  
    4242#else 
    4343#  include <asm/segment.h> 
     44#endif 
     45 
     46/* 2.0.0 kernel compatibility */ 
     47#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     48#define MODULE_AUTHOR(noone) 
     49#define MODULE_DESCRIPTION(none) 
     50#define MODULE_PARM(no,param) 
     51#define MODULE_PARM_DESC(no,description) 
     52#define EXPORT_SYMBOL(noexport) 
     53#define EXPORT_NO_SYMBOLS 
    4454#endif 
    4555 
  • i2c/trunk/kernel/i2c-algo-pcf.c

    r3351 r3371  
    4545#include <linux/errno.h> 
    4646#include <linux/sched.h> 
     47 
     48/* 2.0.0 kernel compatibility */ 
     49#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     50#define MODULE_AUTHOR(noone) 
     51#define MODULE_DESCRIPTION(none) 
     52#define MODULE_PARM(no,param) 
     53#define MODULE_PARM_DESC(no,description) 
     54#define EXPORT_SYMBOL(noexport) 
     55#define EXPORT_NO_SYMBOLS 
     56#endif 
     57 
    4758 
    4859#include "i2c.h" 
  • i2c/trunk/kernel/i2c-core.c

    r3366 r3371  
    3333 
    3434/* ----- compatibility stuff ----------------------------------------------- */ 
     35 
     36/* 2.0.0 kernel compatibility */ 
     37#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     38#define MODULE_AUTHOR(noone) 
     39#define MODULE_DESCRIPTION(none) 
     40#define MODULE_PARM(no,param) 
     41#define MODULE_PARM_DESC(no,description) 
     42#define EXPORT_SYMBOL(noexport) 
     43#define EXPORT_NO_SYMBOLS 
     44#endif 
    3545 
    3646#include <linux/version.h> 
  • i2c/trunk/kernel/i2c-dev.c

    r3351 r3371  
    5252#endif 
    5353 
     54/* 2.0.0 kernel compatibility */ 
     55#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     56#define MODULE_AUTHOR(noone) 
     57#define MODULE_DESCRIPTION(none) 
     58#define MODULE_PARM(no,param) 
     59#define MODULE_PARM_DESC(no,description) 
     60#define EXPORT_SYMBOL(noexport) 
     61#define EXPORT_NO_SYMBOLS 
     62#endif 
    5463 
    5564#include "i2c.h" 
  • i2c/trunk/kernel/i2c-elektor.c

    r3346 r3371  
    3636#include <asm/irq.h> 
    3737#include <asm/io.h> 
     38 
     39/* 2.0.0 kernel compatibility */ 
     40#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     41#define MODULE_AUTHOR(noone) 
     42#define MODULE_DESCRIPTION(none) 
     43#define MODULE_PARM(no,param) 
     44#define MODULE_PARM_DESC(no,description) 
     45#define EXPORT_SYMBOL(noexport) 
     46#define EXPORT_NO_SYMBOLS 
     47#endif 
    3848 
    3949#include "i2c.h" 
  • i2c/trunk/kernel/i2c-elv.c

    r3346 r3371  
    3333#else 
    3434#define __init  
     35#endif 
     36 
     37/* 2.0.0 kernel compatibility */ 
     38#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     39#define MODULE_AUTHOR(noone) 
     40#define MODULE_DESCRIPTION(none) 
     41#define MODULE_PARM(no,param) 
     42#define MODULE_PARM_DESC(no,description) 
     43#define EXPORT_SYMBOL(noexport) 
     44#define EXPORT_NO_SYMBOLS 
    3545#endif 
    3646 
  • i2c/trunk/kernel/i2c-philips-par.c

    r3346 r3371  
    3434#include <asm/io.h> 
    3535#include <linux/stddef.h> 
     36 
     37/* 2.0.0 kernel compatibility */ 
     38#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     39#define MODULE_AUTHOR(noone) 
     40#define MODULE_DESCRIPTION(none) 
     41#define MODULE_PARM(no,param) 
     42#define MODULE_PARM_DESC(no,description) 
     43#define EXPORT_SYMBOL(noexport) 
     44#define EXPORT_NO_SYMBOLS 
     45#endif 
    3646 
    3747#include "i2c.h" 
  • i2c/trunk/kernel/i2c-velleman.c

    r3346 r3371  
    3232#include <asm/errno.h>     /* for 2.0 kernels to get ENODEV */ 
    3333#include <asm/io.h> 
     34 
     35/* 2.0.0 kernel compatibility */ 
     36#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
     37#define MODULE_AUTHOR(noone) 
     38#define MODULE_DESCRIPTION(none) 
     39#define MODULE_PARM(no,param) 
     40#define MODULE_PARM_DESC(no,description) 
     41#define EXPORT_SYMBOL(noexport) 
     42#define EXPORT_NO_SYMBOLS 
     43#endif 
    3444 
    3545#include "i2c.h" 
  • i2c/trunk/kernel/i2c.h

    r3357 r3371  
    507507#ifdef __KERNEL__ 
    508508 
    509 #  if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
    510 /* Hack to make this thing compile under 2.0.xx kernels 
    511  */ 
    512  
    513 #  ifdef MODULE 
    514 #    define MODULE_AUTHOR(noone) 
    515 #    define MODULE_DESCRIPTION(none) 
    516 #    define MODULE_PARM(no,param) 
    517 #    define MODULE_PARM_DESC(no,description) 
    518 #    define EXPORT_SYMBOL(noexport) 
    519 #    define EXPORT_NO_SYMBOLS 
    520 #  endif 
    521  
    522509#  ifndef NULL 
    523510#    define NULL ( (void *) 0 ) 
    524511#  endif 
    525 #endif 
    526512 
    527513#  ifndef ENODEV