diff options
| author | Mahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org> | 2016-10-27 15:04:06 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-06 21:07:27 -0800 |
| commit | 075b800e186405293aec85fed87ccce390c790cb (patch) | |
| tree | cf3384da02e32cf99a46603a3a4cfe61b38565bb | |
| parent | a09c93ad080c435e968c7e57c9846ace0ba7d14a (diff) | |
qcacld-3.0: Featurize debugfs support in HDD
Protect debugfs code with WLAN_DEBUGFS feature flag. This enables to
compile out the feature for external builds. Also add a dependency to
Linux kernel debugfs feature.
Change-Id: I1b09c18a8eadc7a9b90fb6535e39b8c4b5a25ab9
CRs-Fixed: 1083744
| -rw-r--r-- | core/hdd/inc/wlan_hdd_debugfs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/hdd/inc/wlan_hdd_debugfs.h b/core/hdd/inc/wlan_hdd_debugfs.h index f5bfb1b49452..9633e0018e4e 100644 --- a/core/hdd/inc/wlan_hdd_debugfs.h +++ b/core/hdd/inc/wlan_hdd_debugfs.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -28,17 +28,17 @@ #ifndef _WLAN_HDD_DEBUGFS_H #define _WLAN_HDD_DEBUGFS_H -#ifdef WLAN_OPEN_SOURCE +#ifdef WLAN_DEBUGFS QDF_STATUS hdd_debugfs_init(hdd_adapter_t *adapter); void hdd_debugfs_exit(hdd_adapter_t *adapter); #else -inline QDF_STATUS hdd_debugfs_init(hdd_adapter_t *pAdapter) +static inline QDF_STATUS hdd_debugfs_init(hdd_adapter_t *pAdapter) { return QDF_STATUS_SUCCESS; } -inline void hdd_debugfs_exit(hdd_adapter_t *adapter) +static inline void hdd_debugfs_exit(hdd_adapter_t *adapter) { } -#endif /* #ifdef WLAN_OPEN_SOURCE */ +#endif /* #ifdef WLAN_DEBUGFS */ #endif /* #ifndef _WLAN_HDD_DEBUGFS_H */ |
