Re: [PATCH] phy: mark tegra_xusb_lane_lookup_function() static

2016-09-02 Thread Kishon Vijay Abraham I
Hi, On Wednesday 31 August 2016 03:31 PM, Arnd Bergmann wrote: > On Wednesday, August 31, 2016 5:05:19 PM CEST Baoyou Xie wrote: >> We get 1 warning when building kernel with W=1: >> drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for >> 'tegra_xusb_lane_lookup_function' [-Wmissing

Re: [PATCH] phy: mark tegra_xusb_lane_lookup_function() static

2016-09-01 Thread Thierry Reding
On Wed, Aug 31, 2016 at 05:05:19PM +0800, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for > 'tegra_xusb_lane_lookup_function' [-Wmissing-prototypes] > > In fact, this function is only used in the file in whic

Re: [PATCH] phy: mark tegra_xusb_lane_lookup_function() static

2016-08-31 Thread Arnd Bergmann
On Wednesday, August 31, 2016 5:05:19 PM CEST Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for > 'tegra_xusb_lane_lookup_function' [-Wmissing-prototypes] > > In fact, this function is only used in the file in

[PATCH] phy: mark tegra_xusb_lane_lookup_function() static

2016-08-31 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for 'tegra_xusb_lane_lookup_function' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static.