Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Commit

Permalink
qcacld-3.0: Avoid undefined references when WLAN_POWER_DEBUG is disabled
Browse files Browse the repository at this point in the history
Ensure these functions are declared irrespective of WLAN_POWER_DEBUG,
in order to satisfy the following link-time warnings:

drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_main.o: in function `hdd_wlan_start_modules':
wlan_hdd_main.c:(.text+0x34dc): undefined reference to `hdd_sysfs_create_driver_root_obj'

drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_main.o: in function `hdd_wlan_stop_modules':
wlan_hdd_main.c:(.text+0x914c): undefined reference to `hdd_sysfs_destroy_driver_root_obj'

Signed-off-by: Adam W. Willis <[email protected]>
  • Loading branch information
0ctobot authored and Official-Ayrton990 committed May 17, 2021
1 parent d6f74e2 commit b1965ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/qcacld-3.0/core/hdd/src/wlan_hdd_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ void hdd_sysfs_destroy_powerstats_interface(void)
}
sysfs_remove_file(driver_kobject, &power_stats_attribute.attr);
}
#endif

void hdd_sysfs_create_driver_root_obj(void)
{
Expand Down Expand Up @@ -723,7 +724,6 @@ void hdd_sysfs_destroy_driver_root_obj(void)
driver_kobject = NULL;
}
}
#endif

#ifdef WLAN_FEATURE_BEACON_RECEPTION_STATS
static int hdd_sysfs_create_bcn_reception_interface(struct hdd_adapter
Expand Down

0 comments on commit b1965ff

Please sign in to comment.