#ifndef __NET_WEXT_H #define __NET_WEXT_H #include struct net; #ifdef CONFIG_WEXT_CORE int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, void __user *arg); int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, unsigned long arg); struct iw_statistics *get_wireless_stats(struct net_device *dev); int call_commit_handler(struct net_device *dev); #else static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, void __user *arg) { return -EINVAL; } static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, unsigned long arg) { return -EINVAL; } #endif #ifdef CONFIG_WEXT_PROC int wext_proc_init(struct net *net); void wext_proc_exit(struct net *net); #else static inline int wext_proc_init(struct net *net) { return 0; } static inline void wext_proc_exit(struct net *net) { return; } #endif #ifdef CONFIG_WEXT_PRIV int ioctl_private_call(struct net_device *dev, struct iwreq *iwr, unsigned int cmd, struct iw_request_info *info, iw_handler handler); int compat_private_call(struct net_device *dev, struct iwreq *iwr, unsigned int cmd, struct iw_request_info *info, iw_handler handler); int iw_handler_get_private(struct net_device * dev, struct iw_request_info * info, union iwreq_data * wrqu, char * extra); #else #define ioctl_private_call NULL #define compat_private_call NULL #endif #endif /* __NET_WEXT_H */ ass='tabs'> summaryrefslogtreecommitdiff
path: root/include/uapi/xen/Kbuild
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2017-01-29 12:40:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-01-31 09:08:52 +0200
commit33e962c8871f015f5c8978384553dddcf5b81b22 (patch)
tree43aff96c2ee21d9e0fa2018457778a4de52053cd /include/uapi/xen/Kbuild
parent575ddce0507789bf9830d089557d2199d2f91865 (diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'include/uapi/xen/Kbuild')