[PATCH] ahci: mediatek: fix undefined reference of dev_err

Tom Rini trini at konsulko.com
Fri Mar 19 21:42:04 CET 2021


On Tue, Mar 16, 2021 at 07:05:33PM +0100, Frank Wunderlich wrote:

> From: Frank Wunderlich <frank-w at public-files.de>
> 
> building with MTK_AHCI enabled results in implicit declaration and
> undefined reference of dev_err followed by a segfault of gcc
> 
> drivers/ata/mtk_ahci.c: In function 'mtk_ahci_parse_property':
> drivers/ata/mtk_ahci.c:65:4: warning:
> implicit declaration of function 'dev_err'
> drivers/ata/mtk_ahci.c:65: undefined reference to `dev_err'
> in function `mtk_ahci_probe':
> drivers/ata/mtk_ahci.c:92: undefined reference to `dev_err'
> Segmentation fault
> 
> fix this by adding the dm/device_compat.h to includes
> 
> Signed-off-by: Frank Wunderlich <frank-w at public-files.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210319/efe0a0d1/attachment.sig>


More information about the U-Boot mailing list