From: kbuild test robot <fengguang.wu@intel.com>
To: Johannes Berg <johannes.berg@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Subject: [rcu:rcu/next 28/28] include/linux/compiler.h:536:47: error: dereferencing pointer to incomplete type 'struct drm_master'
Date: Fri, 12 Aug 2016 02:44:55 +0800 [thread overview]
Message-ID: <201608120253.dbL41wPJ%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head: a1dff3e407c785ab982810d0b14f829aaf3022b6
commit: a1dff3e407c785ab982810d0b14f829aaf3022b6 [28/28] locking/barriers: suppress sparse warnings in lockless_dereference()
config: i386-randconfig-s0-201632 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
git checkout a1dff3e407c785ab982810d0b14f829aaf3022b6
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from drivers/gpu/drm/drm_fb_helper.c:32:
drivers/gpu/drm/drm_fb_helper.c: In function 'drm_fb_helper_is_bound':
>> include/linux/compiler.h:536:47: error: dereferencing pointer to incomplete type 'struct drm_master'
size_t __maybe_unused __size_of_ptr = sizeof(*(p)); \
^~~~
>> drivers/gpu/drm/drm_fb_helper.c:467:6: note: in expansion of macro 'lockless_dereference'
if (lockless_dereference(dev->master))
^~~~~~~~~~~~~~~~~~~~
vim +536 include/linux/compiler.h
530 * The seemingly unused size_t variable is to validate @p is indeed a pointer
531 * type by making sure it can be dereferenced.
532 */
533 #define lockless_dereference(p) \
534 ({ \
535 typeof(p) _________p1 = READ_ONCE(p); \
> 536 size_t __maybe_unused __size_of_ptr = sizeof(*(p)); \
537 smp_read_barrier_depends(); /* Dependency order vs. p above. */ \
538 (_________p1); \
539 })
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 34064 bytes --]
reply other threads:[~2016-08-11 18:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201608120253.dbL41wPJ%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=johannes.berg@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
/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®