Browse Source

qcacld-3.0: Fix compile error if CONFIG_WLAN_SYSFS not enable

Fix 'defined but not used' compile issue for some
sysfs functions if CONFIG_WLAN_SYSFS not set.

Change-Id: If067afe95ae98355e92a5b914bdce34b3c7c2342
CRs-Fixed: 3345060
Chaoli Zhou 2 years ago
parent
commit
a00721bb91
1 changed files with 4 additions and 4 deletions
  1. 4 4
      core/hdd/inc/wlan_hdd_sysfs.h

+ 4 - 4
core/hdd/inc/wlan_hdd_sysfs.h

@@ -107,11 +107,11 @@ hdd_sysfs_validate_and_copy_buf(char *dest_buf, size_t dest_buf_size,
 	return -EPERM;
 }
 
-static void hdd_create_sysfs_files(struct hdd_context *hdd_ctx)
+static inline void hdd_create_sysfs_files(struct hdd_context *hdd_ctx)
 {
 }
 
-static void hdd_destroy_sysfs_files(void)
+static inline void hdd_destroy_sysfs_files(void)
 {
 }
 
@@ -125,11 +125,11 @@ void hdd_sysfs_destroy_adapter_root_obj(struct hdd_adapter *adapter)
 {
 }
 
-static void hdd_create_adapter_sysfs_files(struct hdd_adapter *adapter)
+static inline void hdd_create_adapter_sysfs_files(struct hdd_adapter *adapter)
 {
 }
 
-static void hdd_destroy_adapter_sysfs_files(struct hdd_adapter *adapter)
+static inline void hdd_destroy_adapter_sysfs_files(struct hdd_adapter *adapter)
 {
 }