]> git.baikalelectronics.ru Git - kernel.git/commit
fs/proc/util.c: include fs/proc/internal.h for name_to_int()
authorEric Biggers <ebiggers@google.com>
Thu, 3 Jan 2019 23:26:00 +0000 (15:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jan 2019 21:13:45 +0000 (13:13 -0800)
commite3a5a3a355e67529f1d728f05eb9b78702a41d3d
tree515cdb5930cb15e832446533834bf343813af0cf
parentb76d24314fd0d774d6903922d22129b692435a2e
fs/proc/util.c: include fs/proc/internal.h for name_to_int()

name_to_int() is defined in fs/proc/util.c and declared in
fs/proc/internal.h, but the declaration isn't included at the point of
the definition.  Include the header to enforce that the definition
matches the declaration.

This addresses a gcc warning when -Wmissing-prototypes is enabled.

Link: http://lkml.kernel.org/r/20181115001833.49371-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/util.c