Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473372

Re: [PATCH] spi: loopback-test: mark rx_ranges_cmp() static

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] spi: loopback-test: mark rx_ranges_cmp() static
Date 2016-08-31 14:00 +0200
Message-ID <scclr-1X7-1@gated-at.bofh.it> (permalink)
References <scclr-1X7-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wednesday, August 31, 2016 5:21:47 PM CEST Baoyou Xie wrote:
> We get 1 warning when building kernel with W=1:
> drivers/spi/spi-loopback-test.c:408:5: warning: no previous prototype for 'rx_ranges_cmp' [-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 this patch marks it 'static'.
> 
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
> 

Acked-by: Arnd Bergmann <arnd@arndb.de>

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] spi: loopback-test: mark rx_ranges_cmp() static Arnd Bergmann <arnd@arndb.de> - 2016-08-31 14:00 +0200

csiph-web