From: Hauke Mehrtens Date: Wed, 9 Jan 2013 16:34:22 +0000 (+0100) Subject: compat: add ETHTOOL_FWVERS_LEN X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=08ff277255893b83e1d20f92a9f1875913b5302b;p=openwrt%2Fstaging%2Fblogic.git compat: add ETHTOOL_FWVERS_LEN In older kernel version this was hard coded to 32 This was added in this commit: commit 141518c95870228da4e050fbe31a8f0c9df82c72 Author: Matt Carlson Date: Thu Dec 3 08:36:22 2009 +0000 tg3: Add some VPD preprocessor constants Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-3.3.h b/include/linux/compat-3.3.h index 5d07c1aeb2dd..84988bba0972 100644 --- a/include/linux/compat-3.3.h +++ b/include/linux/compat-3.3.h @@ -267,6 +267,8 @@ static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings) return index % n_rx_rings; } +#define ETHTOOL_FWVERS_LEN 32 + #if !((LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,9) && LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,23) && LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))) #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,37)) /* mask qdisc_cb_private_validate as RHEL6 backports this */