From: Eric Biggers Date: Thu, 3 Jan 2019 23:26:00 +0000 (-0800) Subject: fs/proc/util.c: include fs/proc/internal.h for name_to_int() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81966d83492620bf42d94d580370c59ff8d02772;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/util.c b/fs/proc/util.c index b161cfa0f9fa..98f8adc17345 100644 --- a/fs/proc/util.c +++ b/fs/proc/util.c @@ -1,4 +1,5 @@ #include +#include "internal.h" unsigned name_to_int(const struct qstr *qstr) {