]> www.infradead.org Git - users/willy/linux.git/commit
fs/proc/util.c: include fs/proc/internal.h for name_to_int()
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 00:14:05 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Dec 2018 22:08:55 +0000 (09:08 +1100)
commit786dfa31430b422b0a6a26e466a6f0048b7bd6ec
treef5b534e6fd4a75e972e7ccd65b5b4270bcf5e7ef
parent4ff611854476274144b11e85ff7af5a8ffaece97
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: Stephen Rothwell <sfr@canb.auug.org.au>
fs/proc/util.c