From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 19 Jun 2015 14:32:23 +0200 Subject: [U-Boot] [PATCH v2] usb.h: Always declare usb function prototypes In-Reply-To: <1433948644-11441-1-git-send-email-hdegoede@redhat.com> References: <1433948644-11441-1-git-send-email-hdegoede@redhat.com> Message-ID: <201506191432.23396.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, June 10, 2015 at 05:04:04 PM, Hans de Goede wrote: > There is no harm in declaring the function prototypes even if nothing > implements them, and when CONFIG_DM_USB=y the various usb functions are > available regardless of any controller drivers being enabled. > > This fixes compile warnings due to missing prototypes on ARCHs where > the ARCH Kconfig always enables CONFIG_DM_USB and various usb drivers. > > One could argue that in the case of no controllers CONFIG_DM_USB should not > be set, but this problem is typically seen during bringup of boards which > do actually have usb controllers. > > Signed-off-by: Hans de Goede Applied, thanks! Best regards, Marek Vasut