diff options
author | Andrew Jeffery <[email protected]> | 2021-01-22 22:18:52 +1030 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2021-02-01 11:54:49 +0100 |
commit | 4af307f574260cb1b768be84c81ce572da7a84ea (patch) | |
tree | 763cce9676c1e5bf8398bae2efd67459a92546e7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | c7b9f01fd12a46333c917f416b0df6ee39e7c774 (diff) |
mmc: sdhci-of-aspeed: Fix kunit-related build error
Randy found that with the following Kconfig settings we have duplicate
definitions (e.g. __inittest()) in sdhci-of-aspeed due to competing
module_init()/module_exit() calls from kunit and driver the itself.
```
CONFIG_MMC_SDHCI_OF_ASPEED=m
CONFIG_MMC_SDHCI_OF_ASPEED_TEST=y
```
Conditionally open-code the kunit initialisation to avoid the error.
Fixes: 7efa02a981d6 ("mmc: sdhci-of-aspeed: Add KUnit tests for phase calculations")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Jeffery <[email protected]>
Acked-by: Randy Dunlap <[email protected]> # build-tested
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions