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

lib/strncpy_from_user.c: replace module.h include

strncpy_from_user.c only needs EXPORT_SYMBOL, so just include compiler.h
and export.h instead of the whole module.h machinery.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Rasmus Villemoes and committed by
Linus Torvalds
bf3c2d6d b6d4f322

+2 -1
+2 -1
lib/strncpy_from_user.c
··· 1 - #include <linux/module.h> 1 + #include <linux/compiler.h> 2 + #include <linux/export.h> 2 3 #include <linux/uaccess.h> 3 4 #include <linux/kernel.h> 4 5 #include <linux/errno.h>