From: Al Viro Date: Fri, 25 Nov 2011 01:08:53 +0000 (-0500) Subject: tomoyo: stop including hell knows what X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5dc332eb93881fc8234d652f6e91a2825b06503;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git tomoyo: stop including hell knows what tomoyo/realpath.c needs exactly one include - that of common.h. It pulls everything the thing needs, without doing ridiculous garbage such as trying to include ../../fs/internal.h. If that alone doesn't scream "layering violation", I don't know what does; and these days it's all for nothing, since it fortunately does not use any symbols defined in there... Signed-off-by: Al Viro --- diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c index d9f3ced8756e..2cb5db589c9d 100644 --- a/security/tomoyo/realpath.c +++ b/security/tomoyo/realpath.c @@ -4,15 +4,7 @@ * Copyright (C) 2005-2011 NTT DATA CORPORATION */ -#include -#include -#include -#include -#include -#include -#include #include "common.h" -#include "../../fs/internal.h" /** * tomoyo_encode2 - Encode binary string to ascii string.