From patchwork Wed Oct 23 20:17:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 3089751 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 C97CB9F372 for ; Wed, 23 Oct 2013 20:42:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3EF6E203AD for ; Wed, 23 Oct 2013 20:42:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id ED251203A3 for ; Wed, 23 Oct 2013 20:42:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4AC9E74F0 for ; Wed, 23 Oct 2013 13:42:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yh0-f51.google.com (mail-yh0-f51.google.com [209.85.213.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 09100E6055 for ; Wed, 23 Oct 2013 13:17:14 -0700 (PDT) Received: by mail-yh0-f51.google.com with SMTP id 29so554221yhl.10 for ; Wed, 23 Oct 2013 13:17:13 -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=k5lasWtt7f+w4zek+ZGGEuInzDPwPSDbhcaXlvNhvcI=; b=oMjjNl7ZriGdh85fyp6BfPeof4NrfR1LEUxpEF/j1sJLxkAGR5n5zznfGnkk643Lvw /9kr6Wd4aucug1O5Kmu3BZ96LGWlGoppTDm9wdOKM1MVi2lc5ymmIcFlCaQuCuPFnO6a xIJIh7VEm3b7VHzRsKHhKzU1+3Bvwc1FDcT/vvrdbVRy95+f0hvNJPXuYk5aC9ufoEEt 3/6H7npM+afvDoemrW3Q5ExPwDf3WLnDCRGzd/eWE2agMP/Q5NDijjmxSZBMqAT5qIGN RA1fAcxwufJiMA8NRAcmGhYKEUXNth+1zVmuzvf7OM3qj6lZ14JV6AnPzyfEQmrQBTkb TSNw== X-Received: by 10.236.38.162 with SMTP id a22mr2889937yhb.30.1382559433275; Wed, 23 Oct 2013 13:17:13 -0700 (PDT) Received: from localhost.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by mx.google.com with ESMTPSA id u52sm47519066yhg.5.2013.10.23.13.17.12 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2013 13:17:12 -0700 (PDT) From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon/dpm: fix incompatible casting on big endian Date: Wed, 23 Oct 2013 16:17:07 -0400 Message-Id: <1382559427-18856-1-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 1.8.3.1 Cc: Alex Deucher X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.5 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 We use u16 for voltage values throughout the driver so switch the table values to a u16 as well. Fixes an incompatible cast error in ci_patch_clock_voltage_limits_with_vddc_leakage() picked up by coverity. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index a400ac1..24f4960 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -1272,8 +1272,8 @@ struct radeon_blacklist_clocks struct radeon_clock_and_voltage_limits { u32 sclk; u32 mclk; - u32 vddc; - u32 vddci; + u16 vddc; + u16 vddci; }; struct radeon_clock_array {