From patchwork Fri Nov 27 16:27:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Champetier X-Patchwork-Id: 549528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E2C40140306 for ; Sat, 28 Nov 2015 03:38:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ofJ9FPtf; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1D7E228C067; Fri, 27 Nov 2015 17:31:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2E41128BDD5 for ; Fri, 27 Nov 2015 17:27:51 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -8.5 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Fri, 27 Nov 2015 17:27:26 +0100 (CET) Received: by wmvv187 with SMTP id v187so77346098wmv.1 for ; Fri, 27 Nov 2015 08:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z8u3M4rj8RyV7WF7icDR5xJiy0smv0amczonvdBq48c=; b=ofJ9FPtfjzAsKz7rUsGchGGH9Ipd96DujtfnN1Pn2NVn0//RosOdNBlg6wlBNKGoWQ KTOBYs/KwFBFuCCqIjbgpiaC6ID2GBGq8JckUkYa5lagzoZNUQTTQZ+jzLuCuMLPY88N ngV6sIsYpjLelQ07rSKEK6XXYDQzdJOBJI7rEW54LTupklifJyR9lET0FddHjXu+mg3j HV2ceC3bB031drLW/D76QU2+S2yb5YUAQh6Wu0ErbLETOOYh+E8iznhPTBI466USErxQ P6sTTCrhmJ1RkJhUuP+zvm03G833C1z8MGt7G9EKKAoDgL0lQOtnScbdO7dlgMqYZrEX ytKQ== X-Received: by 10.28.228.138 with SMTP id b132mr12472055wmh.46.1448641647714; Fri, 27 Nov 2015 08:27:27 -0800 (PST) Received: from ubuntu1404.lxcnattst (ns623510.ovh.net. [5.135.134.9]) by smtp.gmail.com with ESMTPSA id w67sm8170842wmw.17.2015.11.27.08.27.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 08:27:26 -0800 (PST) From: Etienne CHAMPETIER To: OpenWrt Development List Date: Fri, 27 Nov 2015 16:27:07 +0000 Message-Id: <1448641636-42493-9-git-send-email-champetier.etienne@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448641636-42493-1-git-send-email-champetier.etienne@gmail.com> References: <1448641636-42493-1-git-send-email-champetier.etienne@gmail.com> Subject: [OpenWrt-Devel] [PATCH procd v3 08/17] ujail: remove "#include log.h" from elf.h X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" headers must include all there dependencies, no more, no less Signed-off-by: Etienne CHAMPETIER --- jail/elf.c | 1 + jail/elf.h | 2 -- jail/jail.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jail/elf.c b/jail/elf.c index 6d36215..5e22606 100644 --- a/jail/elf.c +++ b/jail/elf.c @@ -26,6 +26,7 @@ #include #include "elf.h" +#include "log.h" struct avl_tree libraries; static LIST_HEAD(library_paths); diff --git a/jail/elf.h b/jail/elf.h index 570e4d0..4ab928d 100644 --- a/jail/elf.h +++ b/jail/elf.h @@ -16,8 +16,6 @@ #include #include -#include "log.h" - struct library { struct avl_node avl; char *name; diff --git a/jail/jail.c b/jail/jail.c index 7349a05..ae09623 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -28,6 +28,7 @@ #include "elf.h" #include "capabilities.h" +#include "log.h" #include #include