From patchwork Tue Feb 14 12:25:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Nicolai_H=C3=A4hnle?= X-Patchwork-Id: 9571823 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 6D76260578 for ; Tue, 14 Feb 2017 12:26:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C79828394 for ; Tue, 14 Feb 2017 12:26:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F225283F8; Tue, 14 Feb 2017 12:26:12 +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 86E3128394 for ; Tue, 14 Feb 2017 12:26:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DE576E181; Tue, 14 Feb 2017 12:26:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 916FD6E181; Tue, 14 Feb 2017 12:26:05 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id c85so3310422wmi.1; Tue, 14 Feb 2017 04:26:05 -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:mime-version :content-transfer-encoding; bh=MeMleGtpGurtmvqxJCsNYQuUUDgmOJ9Al+WDTorQW4I=; b=YH/u3knhvq7hvFqj3Qjc5/LEhLue75VPbjyB8j9UOUq9FyZG4CTH2/0YcqEQBPHRIv jALfluK9lXlPYcGuiarPmlDlZGAoDYI+97Q6A4gjm6RFQNmsu+mws90YSZep/15Ky0s6 BW7WhmHQ9LV3pPFq9waIEfasaub1zpiER80eoQtTIOHF4G4vbUbKhRYhprxybYx6Oa0f 1BJpfeL6NBEyFYpeqxfDLBRkcPmzQ4GcFOhoPP6R5X6FgyQQA1VE/RdVZRvBoiFWEfyI wpl/hFCX8NdtUns4gWHKWL0mJHHV9PVb1BzXNF7Z3N3bZfJ6qmeCOs+gjmf7ihZT9OB9 cpgA== 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:mime-version :content-transfer-encoding; bh=MeMleGtpGurtmvqxJCsNYQuUUDgmOJ9Al+WDTorQW4I=; b=pwLIqHXwlFaprr78tzX8Z+DZaxcni8ySPvJAGPOBWbixegh1ZJISNRFJf/GEsOo2kl hBG7QVpPBPK2xjys0y0/Fh6uwvHBXhdLBDyp0k9Gl0KXVdux8Z56+W3K/FDqifbWkDIR HrLXKNaqXIXXHmA1w1ucUuM8YK0J+oq6oj2cTmQGCh84XbIz0phNp8JTDx9t934WS2Zk 8yCgfvSJ3u1CutE67WMiNzZr0ELoT6VUBWSuwHSHrYuBuOMOTUGQpiV3F/V9YLPHGB7h /+3BjTauuCNloziJqsOzEbDy0wLi5nXwzaEvBux+W/tITuAqBVHXmzyhfP/CWEgYV4y+ AbwA== X-Gm-Message-State: AMke39klA0W1++6LImb1OgqsMVEWIeOvawyTGAALUrRImwK+aylYLtjOTUll4i0NK6iTxg== X-Received: by 10.28.127.13 with SMTP id a13mr2973478wmd.96.1487075164244; Tue, 14 Feb 2017 04:26:04 -0800 (PST) Received: from capella.localdomain (x5ce2e06e.dyn.telefonica.de. [92.226.224.110]) by smtp.gmail.com with ESMTPSA id y145sm3291099wmc.17.2017.02.14.04.26.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 04:26:03 -0800 (PST) From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= To: amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/ttm: make TTM_MAX_BO_PRIORITY unsigned Date: Tue, 14 Feb 2017 13:25:57 +0100 Message-Id: <20170214122557.7705-1-nhaehnle@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Cc: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= , dri-devel@lists.freedesktop.org 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Nicolai Hähnle Fix a warning about different types in min() macro in amdgpu: In file included from ./include/linux/list.h:8:0, from drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:32: drivers/gpu/drm/amd/amdgpu/amdgpu_object.c: In function ‘amdgpu_bo_create_restricted’: ./include/linux/kernel.h:739:16: warning: comparison of distinct pointer types lacks a cast (void) (&min1 == &min2); \ ^ ./include/linux/kernel.h:742:2: note: in expansion of macro ‘__min’ __min(typeof(x), typeof(y), \ ^~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:434:21: note: in expansion of macro ‘min’ bo->tbo.priority = min(bo->tbo.priority, TTM_MAX_BO_PRIORITY - 1); ^~~ Signed-off-by: Nicolai Hähnle Reviewed-by: Christian König --- include/drm/ttm/ttm_bo_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 4395db1..c3d74be 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -42,7 +42,7 @@ #include #include -#define TTM_MAX_BO_PRIORITY 16 +#define TTM_MAX_BO_PRIORITY 16U struct ttm_backend_func { /**