From patchwork Mon Jan 29 14:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10189843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0632A60388 for ; Mon, 29 Jan 2018 14:59:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E943E23B34 for ; Mon, 29 Jan 2018 14:59:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB93628614; Mon, 29 Jan 2018 14:59:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3778F23B34 for ; Mon, 29 Jan 2018 14:59:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 124636E55E; Mon, 29 Jan 2018 14:59:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 69D7B6E55E for ; Mon, 29 Jan 2018 14:59:43 +0000 (UTC) Received: by mail-wr0-x243.google.com with SMTP id s5so7566174wra.0 for ; Mon, 29 Jan 2018 06:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Ktzpb2NU9d2Ux9VWwUt+Fom9uaeqqXGHLiVeuGQ4xXI=; b=ZDkDfGxg/F18vV9qVqXQHsQH0kzFAqlJgf76sFSjy0F1hp83byM49ki/7x1fzfwYNC B+l1Bb/uZvWhEqLV3b+mWWCOrw9jE5QABpROVFw2+xdyU4yRtDm6lyrIYpxa08qFDMWX BWpXYhfyR4FoVLvghg1ZCX1BoKzu7CCMD3pSZQxhSvF6jWTeCQmr/WgXdr0GWM+KLGRC 4woy92NXfSk/kYYZ9vsWtY0GKbpqBF+SSsfsN2ZWdfochC8ls5P9/+i6htxTjoG1ecqV Zi82aEZaoiIt3yG0wLyBXAyNHuaYg7MuPSbXtb2jto4zlft26r52ZnvQnO4kT0bngbRJ Zbbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ktzpb2NU9d2Ux9VWwUt+Fom9uaeqqXGHLiVeuGQ4xXI=; b=kjuoYxj8RDnmek/Fxwha1vvnFcCi2BomrxZ4hTU/tyfCnRF++lRZfhvyltAq+lpM5J KqwKBThHfJe6ZHSh3RkUk7sPJo/M3EYXfWscBLsZosdAfJe0LgE289QTKkUnjcBGqRs1 Jh3WHZOO1KvABKxZKbPRqyiRPsUpQ+U19LF/gzLmUUfAiND5iudfUrwW4DW5oXTlVMCi TO/FcprU8IimSJUpXI6VJCmRMGqJBvV27WQqHmIkIBYfZBnKXvDIPz1NwZFTM9QMdBGT lB9WHtd1MrB5/o308djztJO+uUYxjQiSmOl3R1FZrTF9uWIiIwPY6J8GKxvXxrrBXa47 15tA== X-Gm-Message-State: AKwxytcaCIlrXZmW0K3wKxlwGO86RlKaWJ7l4iE5/CDx78xQn6qkMzQm iN+8DBFlDZ9RoC0sbk0gY3Fh+g== X-Google-Smtp-Source: AH8x2242S2wCc7ntM7Zbo1VmEpXhfoIRTY9sTv6CszRIvWjuz3HXFgov7mlIs31JXaIo4mZvNyvozA== X-Received: by 10.223.129.67 with SMTP id 61mr19187055wrm.271.1517237981956; Mon, 29 Jan 2018 06:59:41 -0800 (PST) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id 75sm15934075wrl.88.2018.01.29.06.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 06:59:41 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] tests/amdgpu: add missing config.h include Date: Mon, 29 Jan 2018 14:56:04 +0000 Message-Id: <20180129145604.12305-1-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.16.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Pedretti , emil.l.velikov@gmail.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov Otherwise we'll end up without the macros set during configure stage. And effectively error out in sanity tests such as the mmap static assert. To reproduce, do a multilib build - 32bit build on 64bit machine. Cc: Fabio Pedretti Cc: Andrey Grodzovsky Fixes: 33dcc29f7cc ("amdgpu: Add VMID reservation per GPU context test.") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104819 Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- tests/amdgpu/vm_tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c index 4b0121ff..0379a79d 100644 --- a/tests/amdgpu/vm_tests.c +++ b/tests/amdgpu/vm_tests.c @@ -21,6 +21,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "CUnit/Basic.h" #include "amdgpu_test.h"