diff options
author | Randy Dunlap <[email protected]> | 2023-05-21 15:52:16 -0700 |
---|---|---|
committer | Li Yang <[email protected]> | 2023-05-31 10:57:08 -0500 |
commit | 7b1a78babd0d2cd27aa07255dee0c2d7ac0f31e3 (patch) | |
tree | 222d8c820be17544f14ad2224c71cdbe6cb83983 /lib/test_fortify/write_overflow-strcpy.c | |
parent | 59272ad8d9e8ea6398a96f8c6d62da284bf2ae6e (diff) |
soc/fsl/qe: fix usb.c build errors
Fix build errors in soc/fsl/qe/usb.c when QUICC_ENGINE is not set.
This happens when PPC_EP88XC is set, which selects CPM1 & CPM.
When CPM is set, USB_FSL_QE can be set without QUICC_ENGINE
being set. When USB_FSL_QE is set, QE_USB deafults to y, which
causes build errors when QUICC_ENGINE is not set. Making
QE_USB depend on QUICC_ENGINE prevents QE_USB from defaulting to y.
Fixes these build errors:
drivers/soc/fsl/qe/usb.o: in function `qe_usb_clock_set':
usb.c:(.text+0x1e): undefined reference to `qe_immr'
powerpc-linux-ld: usb.c:(.text+0x2a): undefined reference to `qe_immr'
powerpc-linux-ld: usb.c:(.text+0xbc): undefined reference to `qe_setbrg'
powerpc-linux-ld: usb.c:(.text+0xca): undefined reference to `cmxgcr_lock'
powerpc-linux-ld: usb.c:(.text+0xce): undefined reference to `cmxgcr_lock'
Fixes: 5e41486c408e ("powerpc/QE: add support for QE USB clocks routing")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Suggested-by: Michael Ellerman <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Leo Li <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Nicolas Schier <[email protected]>
Cc: Qiang Zhao <[email protected]>
Cc: linuxppc-dev <[email protected]>
Cc: [email protected]
Cc: Kumar Gala <[email protected]>
Acked-by: Nicolas Schier <[email protected]>
Signed-off-by: Li Yang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions