From patchwork Tue Feb 21 12:04:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 142294 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 15501B6FA8 for ; Tue, 21 Feb 2012 23:07:31 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RzoSJ-0001qy-0f; Tue, 21 Feb 2012 12:04:27 +0000 Received: from na3sys009aog126.obsmtp.com ([74.125.149.155]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1RzoSB-0001qk-Vf for linux-arm-kernel@lists.infradead.org; Tue, 21 Feb 2012 12:04:23 +0000 Received: from mail-lpp01m010-f49.google.com ([209.85.215.49]) (using TLSv1) by na3sys009aob126.postini.com ([74.125.148.12]) with SMTP ID DSNKT0OIQXLCFPCQa22Yyj7WctJM8cuZkZiM@postini.com; Tue, 21 Feb 2012 04:04:19 PST Received: by lahg1 with SMTP id g1so9369702lah.8 for ; Tue, 21 Feb 2012 04:04:15 -0800 (PST) Received-SPF: pass (google.com: domain of peter.ujfalusi@ti.com designates 10.112.101.130 as permitted sender) client-ip=10.112.101.130; Authentication-Results: mr.google.com; spf=pass (google.com: domain of peter.ujfalusi@ti.com designates 10.112.101.130 as permitted sender) smtp.mail=peter.ujfalusi@ti.com Received: from mr.google.com ([10.112.101.130]) by 10.112.101.130 with SMTP id fg2mr9443373lbb.46.1329825855890 (num_hops = 1); Tue, 21 Feb 2012 04:04:15 -0800 (PST) Received: by 10.112.101.130 with SMTP id fg2mr7884774lbb.46.1329825855813; Tue, 21 Feb 2012 04:04:15 -0800 (PST) Received: from localhost.localdomain (a91-153-205-41.elisa-laajakaista.fi. [91.153.205.41]) by mx.google.com with ESMTPS id o3sm27721534lbn.2.2012.02.21.04.04.14 (version=SSLv3 cipher=OTHER); Tue, 21 Feb 2012 04:04:15 -0800 (PST) From: Peter Ujfalusi To: linux-next@vger.kernel.org Subject: [PATCH - linux-next] ARM: ptrace: Fix audit caused compile error Date: Tue, 21 Feb 2012 14:04:15 +0200 Message-Id: <1329825855-11902-1-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.4 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmE0Sy+pqqLMaDxxtGghsfaWtTLwulOkRo8Xi9sGrL9uIYU8NqjgHbyvEYXjUTxkexmQLBN X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.155 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Stephen Rothwell , Eric Paris , peter.ujfalusi@ti.com, linux-audit@redhat.com, linux-arm-kernel@lists.infradead.org, Nathaniel Husted X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org While trying to compile the kernel for ARM (omap2plus_defconfig) the kernel build fails with: arch/arm/kernel/ptrace.c: In function ‘syscall_trace’: arch/arm/kernel/ptrace.c:920:3: error: implicit declaration of function ‘audit_syscall_exit’ arch/arm/kernel/ptrace.c:922:3: error: implicit declaration of function ‘audit_syscall_entry’ arch/arm/kernel/ptrace.c:922:23: error: ‘AUDIT_ARCH_ARMEB’ undeclared (first use in this function) arch/arm/kernel/ptrace.c:922:23: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [arch/arm/kernel/ptrace.o] Error 1 The issue created by commit: 29ef73b7 Kernel: Audit Support For The ARM Platform We need to include the linux/audit.h header to the arch/arm/kernel/ptrace.c file to be able to compile the kernel. Signed-off-by: Peter Ujfalusi --- arch/arm/kernel/ptrace.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index e33870f..8e41ad2 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include