dm-log-userspace: fix printk format warning
[linux-2.6/mini2440.git] / drivers / staging / vt6655 / kcompat.h
blob652c2c78b0f57ff62bdeb3214e87965c0663871d
1 /*
2 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
3 * All rights reserved.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 * File: kcompat.h
22 * Purpose: define kernel compatibility header
24 * Author: Lyndon Chen
26 * Date: Apr 8, 2002
29 #ifndef _KCOMPAT_H
30 #define _KCOMPAT_H
32 #include <linux/version.h>
34 #ifndef __init
35 #define __init
36 #endif
38 #ifndef __exit
39 #define __exit
40 #endif
42 #ifndef __devexit
43 #define __devexit
44 #endif
46 #ifndef __devinitdata
47 #define __devinitdata
48 #endif
50 #ifndef MODULE_LICENSE
51 #define MODULE_LICENSE(license)
52 #endif
54 #ifndef MOD_INC_USE_COUNT
55 #define MOD_INC_USE_COUNT do {} while (0)
56 #endif
58 #ifndef MOD_DEC_USE_COUNT
59 #define MOD_DEC_USE_COUNT do {} while (0)
60 #endif
62 #ifndef HAVE_NETDEV_PRIV
63 #define netdev_priv(dev) (dev->priv)
64 #endif
66 #ifndef IRQ_RETVAL
67 typedef void irqreturn_t;
69 #ifdef PRIVATE_OBJ
70 #define IRQ_RETVAL(x) (int)x
71 #else
72 #define IRQ_RETVAL(x)
73 #endif
75 #endif
78 #ifndef MODULE_LICESEN
79 #define MODULE_LICESEN(x)
80 #endif
83 #endif