linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Daniel Vetter <daniel.vetter@ffwll.ch>,
	Intel Graphics <intel-gfx@lists.freedesktop.org>,
	DRI <dri-devel@lists.freedesktop.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: build warning after merge of the drm-misc tree
Date: Tue, 10 Nov 2020 13:29:40 +1100	[thread overview]
Message-ID: <20201110132940.5387bac6@canb.auug.org.au> (raw)

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

Hi all,

After merging the drm-misc tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

In file included from include/linux/kernel.h:14,
                 from include/asm-generic/bug.h:20,
                 from arch/arm/include/asm/bug.h:60,
                 from include/linux/bug.h:5,
                 from include/linux/io.h:11,
                 from include/linux/dma-buf-map.h:9,
                 from include/linux/dma-buf.h:16,
                 from drivers/gpu/drm/drm_fb_helper.c:33:
drivers/gpu/drm/drm_fb_helper.c: In function 'fb_read_screen_base':
include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
   18 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                            ^~
include/linux/minmax.h:32:4: note: in expansion of macro '__typecheck'
   32 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/minmax.h:42:24: note: in expansion of macro '__safe_cmp'
   42 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/minmax.h:51:19: note: in expansion of macro '__careful_cmp'
   51 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
drivers/gpu/drm/drm_fb_helper.c:2041:22: note: in expansion of macro 'min'
 2041 |  size_t alloc_size = min(count, PAGE_SIZE);
      |                      ^~~
drivers/gpu/drm/drm_fb_helper.c: In function 'fb_write_screen_base':
include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast
   18 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                            ^~
include/linux/minmax.h:32:4: note: in expansion of macro '__typecheck'
   32 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/minmax.h:42:24: note: in expansion of macro '__safe_cmp'
   42 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/minmax.h:51:19: note: in expansion of macro '__careful_cmp'
   51 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
drivers/gpu/drm/drm_fb_helper.c:2115:22: note: in expansion of macro 'min'
 2115 |  size_t alloc_size = min(count, PAGE_SIZE);
      |                      ^~~

Introduced by commit

  222ec45f4c69 ("drm/fb_helper: Support framebuffers in I/O memory")

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2020-11-10  2:29 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10  2:29 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-12  6:58 linux-next: build warning after merge of the drm-misc tree Stephen Rothwell
2024-04-12  7:01 ` Stephen Rothwell
2024-03-26  5:01 Stephen Rothwell
2023-10-05  3:56 Stephen Rothwell
2023-09-26  5:07 Stephen Rothwell
2023-09-26 10:56 ` Danilo Krummrich
2023-08-07  1:28 Stephen Rothwell
2023-08-02  4:21 Stephen Rothwell
2023-08-02 14:49 ` Doug Anderson
2023-08-02  4:17 Stephen Rothwell
2023-08-02 14:49 ` Doug Anderson
2022-11-07  3:38 Stephen Rothwell
2022-04-20  6:24 Stephen Rothwell
2022-04-06  5:50 Stephen Rothwell
2022-04-13  0:04 ` Stephen Rothwell
2022-04-13  8:23   ` Daniel Vetter
2022-04-13  8:24     ` Christian König
2022-04-06  0:58 Stephen Rothwell
2022-04-06  1:45 ` Marek Vasut
2021-11-17  2:49 Stephen Rothwell
2022-01-20  3:26 ` Stephen Rothwell
2022-03-02  1:31   ` Stephen Rothwell
2022-03-02  3:26     ` Andrey Grodzovsky
2022-03-02  5:02       ` Stephen Rothwell
2022-03-27 23:56       ` Stephen Rothwell
2022-03-28 13:26         ` Andrey Grodzovsky
2021-10-15 10:01 Stephen Rothwell
2022-01-20  3:19 ` Stephen Rothwell
2022-01-20  9:50   ` Jani Nikula
2021-10-15  9:54 Stephen Rothwell
2022-01-20  3:18 ` Stephen Rothwell
2022-01-21 10:42   ` Hans de Goede
2021-10-05  7:59 Stephen Rothwell
2021-10-05  8:23 ` Christian König
2021-10-21  1:27   ` Stephen Rothwell
2021-11-01  9:17 ` Stephen Rothwell
2021-09-27  5:44 Stephen Rothwell
2021-09-27 14:42 ` Doug Anderson
2021-02-08 12:39 Stephen Rothwell
2020-12-09 10:02 Stephen Rothwell
2020-12-09 16:10 ` Luben Tuikov
2020-11-18  5:23 Stephen Rothwell
2020-11-02  1:46 Stephen Rothwell
2020-11-02  8:05 ` Boris Brezillon
2020-09-08  4:15 Stephen Rothwell
2020-05-07  3:04 Stephen Rothwell
2019-10-10 23:45 Stephen Rothwell
2019-08-16  3:31 Stephen Rothwell
2019-08-16  4:48 ` Sam Ravnborg
2019-08-16  6:23   ` Daniel Vetter
2019-08-16  9:47     ` Laurent Pinchart
2019-08-16 12:24       ` Laurent Pinchart
2019-02-08  1:32 Stephen Rothwell
2019-02-08  9:29 ` Maxime Ripard
2019-01-07 23:58 Stephen Rothwell
2018-07-12  1:51 Stephen Rothwell
2017-04-05  0:41 Stephen Rothwell
2017-04-05  7:26 ` Neil Armstrong
2017-03-10  0:03 Stephen Rothwell
2016-11-22  1:45 Stephen Rothwell
2016-06-03  1:09 Stephen Rothwell
2015-09-23  3:20 Stephen Rothwell

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=20201110132940.5387bac6@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=tzimmermann@suse.de \
    /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;
as well as URLs for NNTP newsgroup(s).