From patchwork Thu Jul 10 21:54:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 4528341 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C5493BEEAA for ; Thu, 10 Jul 2014 23:33:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1099C201DE for ; Thu, 10 Jul 2014 23:33:44 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2E5D1201F4 for ; Thu, 10 Jul 2014 23:33:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC04C6E79C; Thu, 10 Jul 2014 16:33:15 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 95B926E440 for ; Thu, 10 Jul 2014 14:57:12 -0700 (PDT) Received: by mail-wg0-f43.google.com with SMTP id b13so198178wgh.2 for ; Thu, 10 Jul 2014 14:57:11 -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:in-reply-to:references; bh=ZTu0NIyEZ/sEDtsLZk0oxni6Z8TX4ybDMjgriPVoGp4=; b=yHYfJrqdbKexI6/0EqIyMgzqgkgshBE2FmvEPvv74l+MdlZGe0Bu81WZtVfzgcGW45 aHpOfw/XTo4l7Gnc4Qre0mg91WKfC496J3OAP7xFvrQq9Zb5Vff4dD2X89tUPIrXW/pI YM4TI5CszMGqevPFu1uvzLtRGSPvtVVFii6DZxrk8A84ytKw6pU/Uweba0kcjWkqaLet eyonelI+oSlEWJWar6H+FOY4x8WxuVLx+i3amv03i3JcWLAJ20koyGcW5xwRmshAi0jN CGvU24pPtqVYiX8o1AD1IT8BninbbdqkP82bD9V4nVwyB5wjxCivRvPw09m6O4+XmG3i B9cg== X-Received: by 10.194.62.5 with SMTP id u5mr57843851wjr.46.1405029431199; Thu, 10 Jul 2014 14:57:11 -0700 (PDT) Received: from localhost.localdomain ([77.127.59.49]) by mx.google.com with ESMTPSA id pq9sm831097wjc.35.2014.07.10.14.57.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jul 2014 14:57:10 -0700 (PDT) From: Oded Gabbay X-Google-Original-From: Oded Gabbay To: David Airlie , Alex Deucher , Jerome Glisse Subject: [PATCH 70/83] hsa/radeon: Fix compilation warnings Date: Fri, 11 Jul 2014 00:54:26 +0300 Message-Id: <1405029279-6894-42-git-send-email-oded.gabbay@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405029279-6894-1-git-send-email-oded.gabbay@amd.com> References: <1405029279-6894-1-git-send-email-oded.gabbay@amd.com> X-Mailman-Approved-At: Thu, 10 Jul 2014 16:33:12 -0700 Cc: Andrew Lewycky , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, 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 Signed-off-by: Oded Gabbay --- drivers/gpu/hsa/radeon/kfd_chardev.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/hsa/radeon/kfd_chardev.c b/drivers/gpu/hsa/radeon/kfd_chardev.c index 51f790f..09c9a61 100644 --- a/drivers/gpu/hsa/radeon/kfd_chardev.c +++ b/drivers/gpu/hsa/radeon/kfd_chardev.c @@ -148,21 +148,22 @@ kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, void __user *a q_properties.priority = args.queue_priority; q_properties.queue_address = args.ring_base_address; q_properties.queue_size = args.ring_size; - q_properties.read_ptr = args.read_pointer_address; - q_properties.write_ptr = args.write_pointer_address; + q_properties.read_ptr = (qptr_t *) args.read_pointer_address; + q_properties.write_ptr = (qptr_t *) args.write_pointer_address; pr_debug("%s Arguments: Queue Percentage (%d, %d)\n" "Queue Priority (%d, %d)\n" "Queue Address (0x%llX, 0x%llX)\n" - "Queue Size (%llX, %u)\n", - "Queue r/w Pointers (%llX, %llX)\n", + "Queue Size (0x%llX, %u)\n" + "Queue r/w Pointers (0x%llX, 0x%llX)\n", __func__, q_properties.queue_percent, args.queue_percentage, q_properties.priority, args.queue_priority, q_properties.queue_address, args.ring_base_address, q_properties.queue_size, args.ring_size, - q_properties.read_ptr, q_properties.write_ptr); + (uint64_t) q_properties.read_ptr, + (uint64_t) q_properties.write_ptr); dev = radeon_kfd_device_by_id(args.gpu_id); if (dev == NULL)