From: "Noralf Trønnes" <noralf@tronnes.org>
To: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org, Dave Airlie <airlied@gmail.com>
Subject: Re: [PATCH 0/3] drm/tinydrm: Fix compiler warnings
Date: Fri, 24 Feb 2017 02:36:19 +0100 [thread overview]
Message-ID: <afffd1b1-e04f-e0fc-ac08-b2b9c1b33223@tronnes.org> (raw)
In-Reply-To: <20170223132957.2839-1-noralf@tronnes.org>
I see that I forgot cc'ing Dave Airlie on this, and I just realised
that the backlight problem isn't just a warning, but it actually causes
a build failure if backlight is built as a module.
I missed this in my hurry to get this out the door, sorry.
Den 23.02.2017 14.29, skrev Noralf Trønnes:
> Dave pulled tinydrm yesterday which triggered some compiler warnings:
>
> Dave Airlie:
> drivers/gpu/drm/tinydrm/mipi-dbi.c: In function ‘mipi_dbi_debugfs_command_write’:
> drivers/gpu/drm/tinydrm/mipi-dbi.c:905:8: warning: ‘cmd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> ret = mipi_dbi_command_buf(mipi, cmd, parameters, i);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> I didn't see this on gcc 4.8, but it showed up when I used gcc 6.2.
>
> kbuild test robot:
> [drm:drm-next 1199/1208] drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c:198:26: error: redefinition of 'tinydrm_of_find_backlight'
>
> kbuild test robot:
> drivers/gpu/drm/tinydrm/mipi-dbi.c: In function 'mipi_dbi_typec1_command':
>>> drivers/gpu/drm/tinydrm/mipi-dbi.c:65:20: warning: field width specifier '*' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
> DRM_DEBUG_DRIVER("cmd=%02x, par=%*ph\n", cmd, len, data); \
> ^
> include/drm/drmP.h:228:40: note: in definition of macro 'DRM_DEBUG_DRIVER'
> drm_printk(KERN_DEBUG, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
> ^~~
>>> drivers/gpu/drm/tinydrm/mipi-dbi.c:671:2: note: in expansion of macro 'MIPI_DBI_DEBUG_COMMAND'
> MIPI_DBI_DEBUG_COMMAND(cmd, parameters, num);
> ^~~~~~~~~~~~~~~~~~~~~~
>
> Noralf.
>
>
> Noralf Trønnes (3):
> drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized
> drm/tinydrm: mipi-dbi: Fix field width specifier warning
> drm/tinydrm: helpers: Properly fix backlight dependency
>
> drivers/gpu/drm/tinydrm/mipi-dbi.c | 6 +++---
> include/drm/tinydrm/tinydrm-helpers.h | 19 -------------------
> 2 files changed, 3 insertions(+), 22 deletions(-)
>
> --
> 2.10.2
>
prev parent reply other threads:[~2017-02-24 1:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 13:29 Noralf Trønnes
2017-02-23 13:29 ` [PATCH 1/3] drm/tinydrm: mipi-dbi: Silence: ‘cmd’ may be used uninitialized Noralf Trønnes
2017-02-23 13:29 ` [PATCH 2/3] drm/tinydrm: mipi-dbi: Fix field width specifier warning Noralf Trønnes
2017-02-23 13:29 ` [PATCH 3/3] drm/tinydrm: helpers: Properly fix backlight dependency Noralf Trønnes
2017-02-26 22:44 ` Noralf Trønnes
2017-02-27 0:00 ` Daniel Vetter
2017-02-24 1:36 ` Noralf Trønnes [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=afffd1b1-e04f-e0fc-ac08-b2b9c1b33223@tronnes.org \
--to=noralf@tronnes.org \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®