From: Al Viro Date: Fri, 25 Nov 2011 01:08:53 +0000 (-0500) Subject: tomoyo: stop including hell knows what X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c5dc332eb93881fc8234d652f6e91a2825b06503;p=~shefty%2Frdma-dev.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 d9f3ced8756..2cb5db589c9 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.