From 274d69a92270bf677a9f12b14e372152aa00e126 Mon Sep 17 00:00:00 2001 From: kaloz Date: Tue, 20 Jun 2006 08:28:06 +0000 Subject: [PATCH] be politically correct git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4019 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/openswan/patches/102-new_module_param.patch | 4 ++-- package/switch/src/switch-adm.c | 2 +- target/linux/aruba-2.6/patches/000-aruba.patch | 2 +- target/linux/aruba-2.6/patches/010-ar2313_enet.patch | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package/openswan/patches/102-new_module_param.patch b/package/openswan/patches/102-new_module_param.patch index 1e133e61f..80c4a2f58 100644 --- a/package/openswan/patches/102-new_module_param.patch +++ b/package/openswan/patches/102-new_module_param.patch @@ -5,7 +5,7 @@ diff -ruN openswan-2.4.5-old/linux/net/ipsec/aes/ipsec_alg_aes.c openswan-2.4.5- static int keymaxbits=0; #if defined(CONFIG_KLIPS_ENC_AES_MODULE) MODULE_AUTHOR("JuanJo Ciarlante "); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52) +module_param(debug_aes, int, 0); +module_param(test_aes, int, 0); +module_param(excl_aes, int, 0); @@ -26,7 +26,7 @@ diff -ruN openswan-2.4.5-old/linux/net/ipsec/aes/ipsec_alg_aes.c openswan-2.4.5- #else static int auth_id=9; #endif -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52) +module_param(auth_id, int, 0); +#else MODULE_PARM(auth_id, "i"); diff --git a/package/switch/src/switch-adm.c b/package/switch/src/switch-adm.c index 921ad50a4..083b6ebc4 100644 --- a/package/switch/src/switch-adm.c +++ b/package/switch/src/switch-adm.c @@ -49,7 +49,7 @@ static int force = 0; MODULE_AUTHOR("Felix Fietkau "); MODULE_LICENSE("GPL"); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52) module_param(eecs, int, 0); module_param(eesk, int, 0); module_param(eedi, int, 0); diff --git a/target/linux/aruba-2.6/patches/000-aruba.patch b/target/linux/aruba-2.6/patches/000-aruba.patch index b9e602be4..1db6831f4 100644 --- a/target/linux/aruba-2.6/patches/000-aruba.patch +++ b/target/linux/aruba-2.6/patches/000-aruba.patch @@ -1290,7 +1290,7 @@ diff -Nur linux-2.6.17/drivers/net/rc32434_eth.c linux-2.6.17-owrt/drivers/net/r +#define MII_CLOCK 1250000 /* no more than 2.5MHz */ +static char mac0[18] = "08:00:06:05:40:01"; + -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52) +module_param_string(mac0, mac0, 18, 0); +#else +MODULE_PARM(mac0, "c18"); diff --git a/target/linux/aruba-2.6/patches/010-ar2313_enet.patch b/target/linux/aruba-2.6/patches/010-ar2313_enet.patch index b5ef4d324..529315a2c 100644 --- a/target/linux/aruba-2.6/patches/010-ar2313_enet.patch +++ b/target/linux/aruba-2.6/patches/010-ar2313_enet.patch @@ -89,7 +89,7 @@ diff -Nur linux-2.6.17/drivers/net/ar2313/ar2313.c linux-2.6.17-owrt/drivers/net +static char ethaddr[18] = "00:00:00:00:00:00"; +static char ifname[5] = "bond"; + -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,52) +module_param_string(ethaddr, ethaddr, 18, 0); +module_param_string(ifname, ifname, 5, 0); +#else -- 2.20.1