Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf/core: introduced stub APIs for exported APIs
Introduced stub APIs for exported APIs so that we can build independent module without any error if CONFIG_PERF_EVENT feature is disabled in kernel. drivers/platform/tegra/uncore_pmu/tegra23x_perf_uncore.c: In function _scf_pmu_device_probe_: drivers/platform/tegra/uncore_pmu/tegra23x_perf_uncore.c:596: 8: error: implicit declaration of function _perf_pmu_register_ [-Werror=implicit-function-declaration] err = perf_pmu_register(&uncore_pmu->pmu, uncore_pmu->pmu.name, 531 | ^~~~~~~~~~~~~~~~~ drivers/platform/tegra/uncore_pmu/tegra23x_perf_uncore.c: In function _scf_pmu_device_remove_: drivers/platform/tegra/uncore_pmu/tegra23x_perf_uncore.c:611: 2: error: implicit declaration of function _perf_pmu_unregister_; did you mean _device_unregister_? [-Werror=implicit-function-declaration] 611 | perf_pmu_unregister(&uncore_pmu->pmu); | ^~~~~~~~~~~~~~~~~~~ | device_unregister cc1: some warnings being treated as errors scripts/Makefile.build:297: recipe for target 'drivers/platform/tegra/uncore_pmu/tegra23x_perf_uncore.o' failed make[7]: *** [drivers/platform/tegra/ uncore_pmu/tegra23x_perf_uncore.o] Error 1 Signed-off-by: Manish Bhardwaj <bhardwajmanish18@gmail.com>
- Loading branch information