diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2014-04-03 14:49:10 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:21:12 -0700 |
commit | af661e836039cbc2aadb3bccfd7d3ddfc1bcc456 (patch) | |
tree | f962029aca6c1e29ce7a0b634e674aff4c289eb4 /include/linux/decompress | |
parent | 3c516cdd02633bda90759ea227e6abb003f8c20a (diff) | |
download | lwn-af661e836039cbc2aadb3bccfd7d3ddfc1bcc456.tar.gz lwn-af661e836039cbc2aadb3bccfd7d3ddfc1bcc456.zip |
lib/decompress_inflate.c: include appropriate header file
Include appropriate header file include/linux/decompress/inflate.h in
lib/decompress_inflate.c because it has prototype declaration of
function defined in lib/decompress_inflate.c.
Also, fix the guard around the header file
include/linux/decompress/inflate.h to use a more unique guard symbol.
This avoids conflict with the INFLATE_H defined by
zlib_inflate/inflate.h.
This eliminates the following warning in lib/decompress_inflate.c:
lib/decompress_inflate.c:35:17: warning: no previous prototype for `gunzip' [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/decompress')
-rw-r--r-- | include/linux/decompress/inflate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/decompress/inflate.h b/include/linux/decompress/inflate.h index 8c0aef1ba5f5..1d0aedef9822 100644 --- a/include/linux/decompress/inflate.h +++ b/include/linux/decompress/inflate.h @@ -1,5 +1,5 @@ -#ifndef INFLATE_H -#define INFLATE_H +#ifndef LINUX_DECOMPRESS_INFLATE_H +#define LINUX_DECOMPRESS_INFLATE_H int gunzip(unsigned char *inbuf, int len, int(*fill)(void*, unsigned int), |