diff options
| author | Agrawal Ashish <ashishka@qti.qualcomm.com> | 2016-03-16 17:14:01 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-03-18 03:46:47 -0700 |
| commit | 7347704dcc468b6566b87b1927ea57fa76464e45 (patch) | |
| tree | 47c6cdc9d28f7d13299ec0a638c1749c0459b790 | |
| parent | cd0f622b0e134ef3948a5a3a8967eb2d5ef4c58a (diff) | |
qcacld-2.0: Correct handling for memory dump to user space
hdd_driver_memdump_init and hdd_driver_memdump_deinit
are not defined in WLAN_FEATURE_MEMDUMP.
fix with correct handling of hdd_driver_memdump_init and
hdd_driver_memdump_deinit.
Change-Id: I6871b8ac447e41afaa22d0012e3a48bf7fd4621c
CRs-Fixed: 990827
| -rw-r--r-- | CORE/HDD/inc/wlan_hdd_memdump.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_memdump.h b/CORE/HDD/inc/wlan_hdd_memdump.h index 829e1ba9f083..ee65c649fb0b 100644 --- a/CORE/HDD/inc/wlan_hdd_memdump.h +++ b/CORE/HDD/inc/wlan_hdd_memdump.h @@ -74,6 +74,8 @@ void memdump_deinit(void); int wlan_hdd_cfg80211_get_fw_mem_dump(struct wiphy *wiphy, struct wireless_dev *wdev, const void *data, int data_len); +int hdd_driver_memdump_init(void); +void hdd_driver_memdump_deinit(void); #else static inline int memdump_init(void) { @@ -90,9 +92,13 @@ static inline int wlan_hdd_cfg80211_get_fw_mem_dump(struct wiphy *wiphy, { return -ENOTSUPP; } +static inline int hdd_driver_memdump_init(void) +{ + return -EINVAL; +} +static inline void hdd_driver_memdump_deinit(void) +{ + return; +} #endif - -int hdd_driver_memdump_init(void); -void hdd_driver_memdump_deinit(void); - #endif /* if !defined(WLAN_HDD_MEMDUMP_H)*/ |
