* Re: linux-next: Tree for Apr 1 (drivers/gpu/drm/i915) [not found] <20140401183907.a5127cadbe7116261096beaa@canb.auug.org.au> @ 2014-04-01 19:15 ` Randy Dunlap 2014-04-02 8:24 ` [PATCH] drm/i915: fix command parser debug print format mismatches Jani Nikula 0 siblings, 1 reply; 5+ messages in thread From: Randy Dunlap @ 2014-04-01 19:15 UTC (permalink / raw) To: Stephen Rothwell, linux-next Cc: Daniel Vetter, intel-gfx, linux-kernel, dri-devel On 04/01/2014 12:39 AM, Stephen Rothwell wrote: > Hi all, > > Please do not add material intended for v3.16 to your linux-next included > branches until after v3.15-rc1 is released. > > This tree still fails (more than usual) the powerpc allyesconfig build. > > Changes since 20140331: > for linux-next 0401 and 0331: drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format '%td' expects argument of type 'ptrdiff_t', but argument 5 has type 'long unsigned int' [-Wformat] Just use %td without the (unsigned long) cast. -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] drm/i915: fix command parser debug print format mismatches 2014-04-01 19:15 ` linux-next: Tree for Apr 1 (drivers/gpu/drm/i915) Randy Dunlap @ 2014-04-02 8:24 ` Jani Nikula 2014-04-02 15:26 ` Randy Dunlap 0 siblings, 1 reply; 5+ messages in thread From: Jani Nikula @ 2014-04-02 8:24 UTC (permalink / raw) To: Randy Dunlap Cc: Stephen Rothwell, jani.nikula, Daniel Vetter, intel-gfx, linux-kernel, dri-devel, linux-next Drop the cast from the pointer diff to fix: drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format '%td' expects argument of type 'ptrdiff_t', but argument 5 has type 'long unsigned int' [-Wformat] While at it, use %u for u32. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jani Nikula <jani.nikula@intel.com> --- Randy, try as I might, I wasn't able to coerce gcc to spit out that warning. Please enlighten me! (Does this fix the warn?) Thanks for the report. --- drivers/gpu/drm/i915/i915_cmd_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_cmd_parser.c b/drivers/gpu/drm/i915/i915_cmd_parser.c index 71ac3b4eaa0d..e5c4e99a22fb 100644 --- a/drivers/gpu/drm/i915/i915_cmd_parser.c +++ b/drivers/gpu/drm/i915/i915_cmd_parser.c @@ -811,10 +811,10 @@ int i915_parse_cmds(struct intel_ring_buffer *ring, length = ((*cmd & desc->length.mask) + LENGTH_BIAS); if ((batch_end - cmd) < length) { - DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%d batchlen=%td\n", + DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n", *cmd, length, - (unsigned long)(batch_end - cmd)); + batch_end - cmd); ret = -EINVAL; break; } -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: fix command parser debug print format mismatches 2014-04-02 8:24 ` [PATCH] drm/i915: fix command parser debug print format mismatches Jani Nikula @ 2014-04-02 15:26 ` Randy Dunlap 2014-04-03 9:32 ` Daniel Vetter 0 siblings, 1 reply; 5+ messages in thread From: Randy Dunlap @ 2014-04-02 15:26 UTC (permalink / raw) To: Jani Nikula Cc: Stephen Rothwell, Daniel Vetter, intel-gfx, linux-kernel, dri-devel, linux-next On 04/02/2014 01:24 AM, Jani Nikula wrote: > Drop the cast from the pointer diff to fix: > > drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format '%td' expects > argument of type 'ptrdiff_t', but argument 5 has type 'long unsigned int' > [-Wformat] > > While at it, use %u for u32. > > Reported-by: Randy Dunlap <rdunlap@infradead.org> > Signed-off-by: Jani Nikula <jani.nikula@intel.com> > > --- > > Randy, try as I might, I wasn't able to coerce gcc to spit out that > warning. Please enlighten me! (Does this fix the warn?) Yes, it does. Thanks. Acked-by: Randy Dunlap <rdunlap@infradead.org> > Thanks for the report. > --- > drivers/gpu/drm/i915/i915_cmd_parser.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_cmd_parser.c b/drivers/gpu/drm/i915/i915_cmd_parser.c > index 71ac3b4eaa0d..e5c4e99a22fb 100644 > --- a/drivers/gpu/drm/i915/i915_cmd_parser.c > +++ b/drivers/gpu/drm/i915/i915_cmd_parser.c > @@ -811,10 +811,10 @@ int i915_parse_cmds(struct intel_ring_buffer *ring, > length = ((*cmd & desc->length.mask) + LENGTH_BIAS); > > if ((batch_end - cmd) < length) { > - DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%d batchlen=%td\n", > + DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n", > *cmd, > length, > - (unsigned long)(batch_end - cmd)); > + batch_end - cmd); > ret = -EINVAL; > break; > } > -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: fix command parser debug print format mismatches 2014-04-02 15:26 ` Randy Dunlap @ 2014-04-03 9:32 ` Daniel Vetter 2014-04-03 15:44 ` Damien Lespiau 0 siblings, 1 reply; 5+ messages in thread From: Daniel Vetter @ 2014-04-03 9:32 UTC (permalink / raw) To: Randy Dunlap Cc: Stephen Rothwell, Jani Nikula, Daniel Vetter, intel-gfx, linux-kernel, dri-devel, linux-next On Wed, Apr 02, 2014 at 08:26:23AM -0700, Randy Dunlap wrote: > On 04/02/2014 01:24 AM, Jani Nikula wrote: > > Drop the cast from the pointer diff to fix: > > > > drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format '%td' expects > > argument of type 'ptrdiff_t', but argument 5 has type 'long unsigned int' > > [-Wformat] > > > > While at it, use %u for u32. > > > > Reported-by: Randy Dunlap <rdunlap@infradead.org> > > Signed-off-by: Jani Nikula <jani.nikula@intel.com> > > > > --- > > > > Randy, try as I might, I wasn't able to coerce gcc to spit out that > > warning. Please enlighten me! (Does this fix the warn?) > > Yes, it does. Thanks. > > Acked-by: Randy Dunlap <rdunlap@infradead.org> Maybe I'm blind, but I think the recent refactoring patch fixed this. Can someone please double-check? I always get confused with printf formats ;-) Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] drm/i915: fix command parser debug print format mismatches 2014-04-03 9:32 ` Daniel Vetter @ 2014-04-03 15:44 ` Damien Lespiau 0 siblings, 0 replies; 5+ messages in thread From: Damien Lespiau @ 2014-04-03 15:44 UTC (permalink / raw) To: Randy Dunlap, Jani Nikula, Stephen Rothwell, intel-gfx, linux-kernel, dri-devel, linux-next On Thu, Apr 03, 2014 at 11:32:30AM +0200, Daniel Vetter wrote: > On Wed, Apr 02, 2014 at 08:26:23AM -0700, Randy Dunlap wrote: > > On 04/02/2014 01:24 AM, Jani Nikula wrote: > > > Drop the cast from the pointer diff to fix: > > > > > > drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format '%td' expects > > > argument of type 'ptrdiff_t', but argument 5 has type 'long unsigned int' > > > [-Wformat] > > > > > > While at it, use %u for u32. > > > > > > Reported-by: Randy Dunlap <rdunlap@infradead.org> > > > Signed-off-by: Jani Nikula <jani.nikula@intel.com> > > > > > > --- > > > > > > Randy, try as I might, I wasn't able to coerce gcc to spit out that > > > warning. Please enlighten me! (Does this fix the warn?) > > > > Yes, it does. Thanks. > > > > Acked-by: Randy Dunlap <rdunlap@infradead.org> > > Maybe I'm blind, but I think the recent refactoring patch fixed this. Can > someone please double-check? I always get confused with printf formats ;-) I fixed it a couple of weeks back: http://lists.freedesktop.org/archives/intel-gfx/2014-March/041886.html -- Damien ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-04-03 15:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20140401183907.a5127cadbe7116261096beaa@canb.auug.org.au>
2014-04-01 19:15 ` linux-next: Tree for Apr 1 (drivers/gpu/drm/i915) Randy Dunlap
2014-04-02 8:24 ` [PATCH] drm/i915: fix command parser debug print format mismatches Jani Nikula
2014-04-02 15:26 ` Randy Dunlap
2014-04-03 9:32 ` Daniel Vetter
2014-04-03 15:44 ` Damien Lespiau
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox