linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the drm tree
@ 2010-03-01  7:14 Stephen Rothwell
  2010-03-01  9:37 ` [PATCH] drm/radeon: Fix printf type warning in 64bit system Pauli Nieminen
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2010-03-01  7:14 UTC (permalink / raw)
  To: Dave Airlie; +Cc: linux-next, linux-kernel, Pauli Nieminen

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

Hi Dave,

After merging the drm tree, today's linux-next build (x86_64 allmodconfig)
produced this warning:

drivers/gpu/drm/radeon/r300_cmdbuf.c: In function 'r300_do_cp_cmdbuf':
drivers/gpu/drm/radeon/r300_cmdbuf.c:1154: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int'

Introduced by commit b4fe945405e477cded91772b4fec854705443dd5
("drm/radeon: Fix memory allocation failures in the preKMS command stream
checking").

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] drm/radeon: Fix printf type warning in 64bit system.
  2010-03-01  7:14 linux-next: build warning after merge of the drm tree Stephen Rothwell
@ 2010-03-01  9:37 ` Pauli Nieminen
  0 siblings, 0 replies; 2+ messages in thread
From: Pauli Nieminen @ 2010-03-01  9:37 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Dave Airlie, linux-next, linux-kernel, dri-devel

Type of iterator was promoted to unsigned long in 64bit systems.

*header is small structure so it is alwas safe to cast return value
of sizeof operator to int.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
---
 drivers/gpu/drm/radeon/r300_cmdbuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/radeon/r300_cmdbuf.c b/drivers/gpu/drm/radeon/r300_cmdbuf.c
index 18d3ff8..27930fc 100644
--- a/drivers/gpu/drm/radeon/r300_cmdbuf.c
+++ b/drivers/gpu/drm/radeon/r300_cmdbuf.c
@@ -1148,7 +1148,7 @@ int r300_do_cp_cmdbuf(struct drm_device *dev,
 		default:
 			DRM_ERROR("bad cmd_type %i at byte %d\n",
 				  header->header.cmd_type,
-				  cmdbuf->buffer->iterator - sizeof(*header));
+				  cmdbuf->buffer->iterator - (int)sizeof(*header));
 			ret = -EINVAL;
 			goto cleanup;
 		}
-- 
1.6.3.3


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-01  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-01  7:14 linux-next: build warning after merge of the drm tree Stephen Rothwell
2010-03-01  9:37 ` [PATCH] drm/radeon: Fix printf type warning in 64bit system Pauli Nieminen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).