bsp: linux-lmp-fslc-imx: add patch to fix building busfreq-imx.c#447
Merged
ricardosalveti merged 1 commit intofoundriesio:ebbr-nxpfrom Oct 25, 2021
Merged
Conversation
Member
|
Is this a consequence of a particular BSP patch? If so, tag as tonxp so we can forward that to them. |
In case CONFIG_HAVE_IMX_BUSFREQ is not set, there are mocks for some functions from busfreq-imx declared. It fails kernel building with an error [1]. Disable duplicated functions from busfreq-imx fixes this issue. [1] ... | arch/arm/mach-imx/busfreq-imx.c:821:6: error: redefinition of 'request_bus_freq' | 821 | void request_bus_freq(enum bus_freq_mode mode) | | ^~~~~~~~~~~~~~~~ | In file included from arch/arm/mach-imx/busfreq-imx.c:23: | include/linux/busfreq-imx.h:58:20: note: previous definition of 'request_bus_freq' was here | 58 | static inline void request_bus_freq(enum bus_freq_mode mode) | | ^~~~~~~~~~~~~~~~ ... Signed-off-by: Oleksandr Suvorov <[email protected]>
f4be739 to
a0fad1e
Compare
Contributor
Author
Ah, thanks, fixed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In case CONFIG_HAVE_IMX_BUSFREQ is not set, there are mocks for some
functions from busfreq-imx declared. It fails kernel building with an
error [1].
Disable duplicated functions from busfreq-imx fixes this issue.
[1]
...
| arch/arm/mach-imx/busfreq-imx.c:821:6: error: redefinition of 'request_bus_freq'
| 821 | void request_bus_freq(enum bus_freq_mode mode)
| | ^~~~~~~~~~~~~~~~
| In file included from arch/arm/mach-imx/busfreq-imx.c:23:
| include/linux/busfreq-imx.h:58:20: note: previous definition of 'request_bus_freq' was here
| 58 | static inline void request_bus_freq(enum bus_freq_mode mode)
| | ^~~~~~~~~~~~~~~~
...
Signed-off-by: Oleksandr Suvorov [email protected]