소스 검색

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 년 전
부모
커밋
a00721bb91
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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)
 {
 }