]> git.baikalelectronics.ru Git - kernel.git/commit
init/calibrate.c: provide proper prototype
authorValdis Kletnieks <valdis.kletnieks@vt.edu>
Fri, 8 Mar 2019 00:29:06 +0000 (16:29 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Mar 2019 02:32:01 +0000 (18:32 -0800)
commit70ad9bf3f3c70afa34472b8b776de26e19252b12
tree2996f291eb75fe89e3e1a13957529497b2661010
parent51dde32ba1ac7c2d9afb327f90a62c088497f578
init/calibrate.c: provide proper prototype

Sparse issues a warning:

    CHECK   init/calibrate.c
  init/calibrate.c:271:28: warning: symbol 'calibration_delay_done' was not declared. Should it be static?

The actual issue is that it's a __weak symbol that archs can override
(in fact, ARM does so), but no prototype is provided.  Let's provide one
to prevent surprises.

Link: http://lkml.kernel.org/r/18827.1548750938@turing-police.cc.vt.edu
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/delay.h