Re: [PATCH] pinctrl: tegra: xusb: Silence sparse warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 24, 2017 at 1:56 PM, Thierry Reding
<thierry.reding@xxxxxxxxx> wrote:

> From: Thierry Reding <treding@xxxxxxxxxx>
>
> Commit 53d2a715c240 ("phy: Add Tegra XUSB pad controller support") added
> a new driver for the XUSB pad controller that implements a more flexible
> devicetree binding. In order to preserve backwards compatibility the old
> driver can be probed if the obsolete bindings are detected.
>
> In order to hide the legacy code, these prototypes were defined in a
> header private to the new driver. This has the disadvantage of making
> the sparse code checker complain about the missing declarations when
> compiling the old driver and suggesting to make the functions static.
>
> Avoid these sparse warnings by adding local prototype declarations into
> the compatibility driver.
>
> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>

Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux