From patchwork Fri Aug 7 16:39:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6971281 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3C739C05AC for ; Fri, 7 Aug 2015 16:35:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A05B20534 for ; Fri, 7 Aug 2015 16:35:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id AD08C2052F for ; Fri, 7 Aug 2015 16:35:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 289DB6ED5F; Fri, 7 Aug 2015 09:35:48 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTPS id 115AD6ED5F for ; Fri, 7 Aug 2015 09:35:47 -0700 (PDT) Received: by wijp15 with SMTP id p15so66426319wij.0 for ; Fri, 07 Aug 2015 09:35:45 -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=jwY57cpWA8E/X5PHW0T+cbSx83TdNuHOXBl/7RI2mMQ=; b=TiFVTgXY1E8cPv5N6ldhw0bI612TU+zgh/LIxFpHog3i8BBSqRy5n5n1NZASPjGSan BQ7soh8mJAiviFoWDPPrK8AHcBAB3VQz2MZ64+tO5nXt2uf9Cm+b1K4B1nfhBmUdHOkW UARI3g2doKkK8xquVXEopAFmMW9HpxTwxYAllhFDUbTWOhLxm7cuCThBtkeJxj35vjmH cZYaHXih6BNTWcpVSO5ANOZFTaXDXxPs8a83yJrt9dkC6xlj8R98ka7qO9aVWWqzwx2C T43SIq1/bD1bL7/8p02uhNPsK6lagMhO2PpzMFjKSjPIO9MK3wujVeWPl+hhNzn27YPp LVig== X-Received: by 10.194.204.163 with SMTP id kz3mr16568368wjc.28.1438965345686; Fri, 07 Aug 2015 09:35:45 -0700 (PDT) Received: from arch-x220.localdomain (genkt-049-238.t-mobile.co.uk. [149.254.49.238]) by smtp.gmail.com with ESMTPSA id ub19sm8889556wib.8.2015.08.07.09.35.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Aug 2015 09:35:44 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] xf86drm: remove makedev() hack/workaround Date: Fri, 7 Aug 2015 17:39:48 +0100 Message-Id: <1438965588-6231-1-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.5.0 Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 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.2 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 Back when this was introduced commit 569da5a42eb(Merged glxmisc-3-0-0) sys/sysmacros.h was used instead of the respecive headers (as per the manual). We've been handling it correctly for a little while now - in Linux, BSD and Solaris. Thus we can drop this workaround. Signed-off-by: Emil Velikov --- xf86drm.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 5e02969..7e41537 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -94,14 +94,6 @@ #define DRM_MAJOR 226 /* Linux */ #endif -/* - * This definition needs to be changed on some systems if dev_t is a structure. - * If there is a header file we can get it from, there would be best. - */ -#ifndef makedev -#define makedev(x,y) ((dev_t)(((x) << 8) | (y))) -#endif - #define DRM_MSG_VERBOSITY 3 #define memclear(s) memset(&s, 0, sizeof(s))