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
This commit is contained in:
Chaoli Zhou
2022-11-16 16:55:09 +08:00
committed by Madan Koyyalamudi
parent a6e0727067
commit a00721bb91

View File

@@ -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)
{
}