From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 10 Jun 2017 18:01:03 -0400 Subject: [U-Boot] [PATCH] dm: blk: Fix warning on !CONFIG_BLK In-Reply-To: <1497103406-1920-1-git-send-email-trini@konsulko.com> References: <1497103406-1920-1-git-send-email-trini@konsulko.com> Message-ID: <20170610220103.GN10782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jun 10, 2017 at 10:03:26AM -0400, Tom Rini wrote: > When we don't have CONFIG_BLK defined we don't have a forward > declaration of struct udevice, and thus get a warning about it on > blk_get_from_parent(), which we only have when CONFIG_BLK is set. Move > the declaration of blk_get_from_parent() to be with the other CONFIG_BLK > parts. > > Fixes 9f103b9cb5f8 ("dm: blk: Add a way to obtain a block device from ...") > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: