public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] ahci: mediatek: fix undefined reference of dev_err
Date: Fri, 19 Mar 2021 16:42:04 -0400	[thread overview]
Message-ID: <20210319204204.GV1310@bill-the-cat> (raw)
In-Reply-To: <20210316180533.184794-1-linux@fw-web.de>

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

> From: Frank Wunderlich <frank-w@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@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>

      reply	other threads:[~2021-03-19 20:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 18:05 [PATCH] ahci: mediatek: fix undefined reference of dev_err Frank Wunderlich
2021-03-19 20:42 ` Tom Rini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210319204204.GV1310@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox