diff options
author | Manivannan Sadhasivam <[email protected]> | 2025-01-04 17:20:58 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2025-01-06 13:04:34 +0000 |
commit | 907af7d6e0c8cf4086b1bc5218281b2ca09f130b (patch) | |
tree | 60ca7d7e833a8756e459efb77364ab4a17fb051c /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 1156b5e8be98c97087f8971609c852e418daf03b (diff) |
regulator: Move OF_ API declarations/definitions outside CONFIG_REGULATOR
Since these are hidden inside CONFIG_REGULATOR, building the consumer
drivers without CONFIG_REGULATOR will result in the following build error:
>> drivers/pci/pwrctrl/slot.c:39:15: error: implicit declaration of
function 'of_regulator_bulk_get_all'; did you mean 'regulator_bulk_get'?
[-Werror=implicit-function-declaration]
39 | ret = of_regulator_bulk_get_all(dev, dev_of_node(dev),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| regulator_bulk_get
cc1: some warnings being treated as errors
This also removes the duplicated definitions that were possibly added to
fix the build issues.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 27b9ecc7a9ba ("regulator: Add of_regulator_bulk_get_all")
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions