projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
966e847
)
Depending on the arguments to alloc_netdev_mqs(),
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 6 Oct 2011 08:45:26 +0000
(10:45 +0200)
committer
Luis R. Rodriguez
<mcgrof@qca.qualcomm.com>
Thu, 6 Oct 2011 15:07:34 +0000
(08:07 -0700)
it may give a warning due to the use of max().
Fix the warning with max_t().
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/compat-2.6.38.h
patch
|
blob
|
history
diff --git
a/include/linux/compat-2.6.38.h
b/include/linux/compat-2.6.38.h
index ad04ebcc988de42ac327d1d2016affc9c074d127..63f9dd6a0ef56b5618f27204c9e06d7ca8b6386f 100644
(file)
--- a/
include/linux/compat-2.6.38.h
+++ b/
include/linux/compat-2.6.38.h
@@
-74,7
+74,8
@@
static inline int skb_checksum_start_offset(const struct sk_buff *skb)
/* include/linux/netdevice.h */
#define alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs) \
- alloc_netdev_mq(sizeof_priv, name, setup, max(txqs, rxqs))
+ alloc_netdev_mq(sizeof_priv, name, setup, \
+ max_t(unsigned int, txqs, rxqs))
#define ETH_P_LINK_CTL 0x886c /* HPNA, wlan link local tunnel */