From patchwork Sun Nov 13 07:20:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Hutchings X-Patchwork-Id: 125380 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 04D5BB71EE for ; Sun, 13 Nov 2011 18:20:22 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751166Ab1KMHUR (ORCPT ); Sun, 13 Nov 2011 02:20:17 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:51862 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910Ab1KMHUR convert rfc822-to-8bit (ORCPT ); Sun, 13 Nov 2011 02:20:17 -0500 Received: from [2001:470:1f08:1539:21c:bfff:fe03:f805] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RPUMP-00058m-Is; Sun, 13 Nov 2011 07:20:13 +0000 Received: from ben by deadeye with local (Exim 4.76) (envelope-from ) id 1RPUMH-0000Kf-DS; Sun, 13 Nov 2011 07:20:05 +0000 Message-ID: <1321168804.18929.277.camel@deadeye> Subject: [PATCH] sparc: sigutil: Include From: Ben Hutchings To: David Miller , stable@vger.kernel.org Cc: sparclinux@vger.kernel.org Date: Sun, 13 Nov 2011 07:20:04 +0000 X-Mailer: Evolution 3.0.3-2 Mime-Version: 1.0 X-SA-Exim-Connect-IP: 2001:470:1f08:1539:21c:bfff:fe03:f805 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org This file introduced in 2.6.32.47 currently fails to compile: arch/sparc/kernel/sigutil_64.c: In function 'save_fpu_state': arch/sparc/kernel/sigutil_64.c:25: error: 'EFAULT' undeclared (first use in this function) Signed-off-by: Ben Hutchings --- I assume this works in 3.1 due to indirect inclusion of , but it doesn't in 2.6.32. It might be worth applying this in mainline anyway, to avoid that assumption. Ben. arch/sparc/kernel/sigutil_64.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/sparc/kernel/sigutil_64.c b/arch/sparc/kernel/sigutil_64.c index 6edc4e5..06a69b4 100644 --- a/arch/sparc/kernel/sigutil_64.c +++ b/arch/sparc/kernel/sigutil_64.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include