From patchwork Sun Sep 28 18:21:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 4992371 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7D6219F2BB for ; Sun, 28 Sep 2014 18:23:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3013202A1 for ; Sun, 28 Sep 2014 18:23:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 887DB20179 for ; Sun, 28 Sep 2014 18:23:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 26FAF6E082; Sun, 28 Sep 2014 11:23:34 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 460DC6E082 for ; Sun, 28 Sep 2014 11:23:33 -0700 (PDT) Received: by mail-we0-f182.google.com with SMTP id x48so700475wes.27 for ; Sun, 28 Sep 2014 11:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=XtOiYhtwbt8nG/cSVRF55EJhu8OZiF1Oz4t5jJAQgks=; b=pt8em2FMv1ggx2299bfHbmQGJZ+OwDMuLx+WC2m6Y2wwH8qoZEHFlPpz7tzKIWLgGg wQMTlkpXcpMyqBbPB/NuGsV1azxchPg8D2geeURKo6V8fGIhHakUpGkF3BNplzX+7LRJ 2ecyxQYiOhsaoskFR9r4vviARs47vc18ErNoX9MI3Uqw9G8TOMmfoMcY4nTKW9XdsLkz ii/X1vMSboP4HjFTlEiNHPtk9vzhLIntOgIsBlimuTbl+MqXeD0RVWRreXoiNgg2hsoH qi36F/GjqphYuvvh6dLUGtPRtJ+n9vsxMRR/nLwuHEgannxsW44kymvEJr4QFYi1CEa4 Ecow== X-Received: by 10.180.102.233 with SMTP id fr9mr59280455wib.80.1411928611762; Sun, 28 Sep 2014 11:23:31 -0700 (PDT) Received: from arch-laptop.localdomain (cpc6-nott17-2-0-cust458.12-2.cable.virginm.net. [86.0.53.203]) by mx.google.com with ESMTPSA id kx2sm13269850wjb.6.2014.09.28.11.23.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Sep 2014 11:23:30 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH] nouveau: fix 32bit builds Date: Sun, 28 Sep 2014 19:21:50 +0100 Message-Id: <1411928510-1127-1-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.1.0 Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 32bit platforms we have to provide _FILE_OFFSET_BITS via config.h otherwise the static assert in drm_munmap will trigger. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84428 Signed-off-by: Emil Velikov --- nouveau/private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nouveau/private.h b/nouveau/private.h index bf9db04..8176267 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -1,6 +1,10 @@ #ifndef __NOUVEAU_LIBDRM_PRIVATE_H__ #define __NOUVEAU_LIBDRM_PRIVATE_H__ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include