Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cramfs: hide function prototypes behind __KERNEL__ macro

Currently, 3 kernel function prototypes are present in a header
file exported to userland. This patch fixes it.

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexander Shishkin and committed by
Linus Torvalds
beeae051 d3486f8b

+2
+2
include/linux/cramfs_fs.h
··· 84 84 | CRAMFS_FLAG_WRONG_SIGNATURE \ 85 85 | CRAMFS_FLAG_SHIFTED_ROOT_OFFSET ) 86 86 87 + #ifdef __KERNEL__ 87 88 /* Uncompression interfaces to the underlying zlib */ 88 89 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen); 89 90 int cramfs_uncompress_init(void); 90 91 void cramfs_uncompress_exit(void); 92 + #endif /* __KERNEL__ */ 91 93 92 94 #endif