Re: [PATCH] crypto: sun4i-ss: mark sun4i_hash() static

2016-09-22 Thread Herbert Xu
On Sun, Sep 18, 2016 at 08:52:44PM +0800, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/crypto/sunxi-ss/sun4i-ss-hash.c:168:5: warning: no previous prototype > for 'sun4i_hash' [-Wmissing-prototypes] > > In fact, this function is only used in the file in which it i

[PATCH] crypto: sun4i-ss: mark sun4i_hash() static

2016-09-18 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/crypto/sunxi-ss/sun4i-ss-hash.c:168:5: warning: no previous prototype for 'sun4i_hash' [-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. So th