From patchwork Wed Oct 10 20:09:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1575701 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 8884A40135 for ; Wed, 10 Oct 2012 20:10:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 644A69EF8E for ; Wed, 10 Oct 2012 13:10:20 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from oproxy9.bluehost.com (oproxy9.bluehost.com [69.89.24.6]) by gabe.freedesktop.org (Postfix) with SMTP id E658D9E76A for ; Wed, 10 Oct 2012 13:10:07 -0700 (PDT) Received: (qmail 13837 invoked by uid 0); 10 Oct 2012 20:10:07 -0000 Received: from unknown (HELO box742.bluehost.com) (66.147.244.242) by oproxy9.bluehost.com with SMTP; 10 Oct 2012 20:10:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenotime.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=bGg/OeQqzxG3k/1w+Yi7FneTv1twwNb6Ud7aKOdfJKA=; b=ljxS4pLcN0dgbe+0WoLnOcOVQK58dGC7FVBna660P2Y64u4cz1LyHesZBy5K3w5kHDCfYdEeZBRNB81nphPyJI/ELIn6IZuNIgcHKn8SMDQj0/9+3CjKAMCMBiOnBvul; Received: from [50.53.38.135] (port=50216 helo=[192.168.1.7]) by box742.bluehost.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1TM2bX-0007rn-9b; Wed, 10 Oct 2012 14:10:07 -0600 Message-ID: <5075D616.4080403@xenotime.net> Date: Wed, 10 Oct 2012 13:09:58 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: Stephen Rothwell Subject: [PATCH -next] drm: fix radeon printk format warnings References: <20121010160904.e73f247f4c7034876bf5af30@canb.auug.org.au> In-Reply-To: <20121010160904.e73f247f4c7034876bf5af30@canb.auug.org.au> X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} Cc: Andrew Morton , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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: , 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 From: Randy Dunlap Fix printk format warnings in gpu/drm/radeon/: drivers/gpu/drm/radeon/radeon_atpx_handler.c:151:3: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'size_t' drivers/gpu/drm/radeon/radeon_acpi.c:204:3: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'size_t' drivers/gpu/drm/radeon/radeon_acpi.c:488:3: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'size_t' Signed-off-by: Randy Dunlap Cc: David Airlie Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/radeon/radeon_acpi.c | 4 ++-- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- linux-next-20121010.orig/drivers/gpu/drm/radeon/radeon_atpx_handler.c +++ linux-next-20121010/drivers/gpu/drm/radeon/radeon_atpx_handler.c @@ -148,7 +148,7 @@ static int radeon_atpx_verify_interface( size = *(u16 *) info->buffer.pointer; if (size < 8) { - printk("ATPX buffer is too small: %lu\n", size); + printk("ATPX buffer is too small: %zu\n", size); err = -EINVAL; goto out; } --- linux-next-20121010.orig/drivers/gpu/drm/radeon/radeon_acpi.c +++ linux-next-20121010/drivers/gpu/drm/radeon/radeon_acpi.c @@ -201,7 +201,7 @@ static int radeon_atif_verify_interface( size = *(u16 *) info->buffer.pointer; if (size < 12) { - DRM_INFO("ATIF buffer is too small: %lu\n", size); + DRM_INFO("ATIF buffer is too small: %zu\n", size); err = -EINVAL; goto out; } @@ -485,7 +485,7 @@ static int radeon_atcs_verify_interface( size = *(u16 *) info->buffer.pointer; if (size < 8) { - DRM_INFO("ATCS buffer is too small: %lu\n", size); + DRM_INFO("ATCS buffer is too small: %zu\n", size); err = -EINVAL; goto out; }