* [drm-intel:drm-intel-nightly 922/930] drivers/gpu/drm/i915/i915_gem_gtt.c:2732:9: note: in expansion of macro 'list_first_entry_or_null'
@ 2016-12-16 15:21 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-12-16 15:21 UTC (permalink / raw)
To: Chris Wilson; +Cc: Daniel Vetter, intel-gfx, kbuild-all, dri-devel
[-- Attachment #1: Type: text/plain, Size: 3240 bytes --]
tree: git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head: ca1c03136b168816ac65c5945776908e464fca6b
commit: 45b186f111f1623b257d183920cd4aab16a1acd5 [922/930] drm: Constify the drm_mm API
config: i386-randconfig-x005-201650 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 45b186f111f1623b257d183920cd4aab16a1acd5
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/linux/mutex.h:14:0,
from include/linux/seq_file.h:7,
from drivers/gpu/drm/i915/i915_gem_gtt.c:26:
drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'i915_gtt_color_adjust':
>> include/linux/list.h:385:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
struct list_head *head__ = (ptr); \
^
>> drivers/gpu/drm/i915/i915_gem_gtt.c:2732:9: note: in expansion of macro 'list_first_entry_or_null'
node = list_first_entry_or_null(&node->node_list,
^~~~~~~~~~~~~~~~~~~~~~~~
vim +/list_first_entry_or_null +2732 drivers/gpu/drm/i915/i915_gem_gtt.c
307dc25b Chris Wilson 2016-08-05 2716 /* Wait a bit, in hopes it avoids the hang */
307dc25b Chris Wilson 2016-08-05 2717 udelay(10);
307dc25b Chris Wilson 2016-08-05 2718 }
307dc25b Chris Wilson 2016-08-05 2719 }
5c042287 Ben Widawsky 2011-10-17 2720
03ac84f1 Chris Wilson 2016-10-28 2721 dma_unmap_sg(kdev, pages->sgl, pages->nents, PCI_DMA_BIDIRECTIONAL);
7c2e6fdf Daniel Vetter 2010-11-06 2722 }
644ec02b Daniel Vetter 2012-03-26 2723
45b186f1 Chris Wilson 2016-12-16 2724 static void i915_gtt_color_adjust(const struct drm_mm_node *node,
42d6ab48 Chris Wilson 2012-07-26 2725 unsigned long color,
440fd528 Thierry Reding 2015-01-23 2726 u64 *start,
440fd528 Thierry Reding 2015-01-23 2727 u64 *end)
42d6ab48 Chris Wilson 2012-07-26 2728 {
42d6ab48 Chris Wilson 2012-07-26 2729 if (node->color != color)
42d6ab48 Chris Wilson 2012-07-26 2730 *start += 4096;
42d6ab48 Chris Wilson 2012-07-26 2731
2a1d7752 Chris Wilson 2016-07-26 @2732 node = list_first_entry_or_null(&node->node_list,
42d6ab48 Chris Wilson 2012-07-26 2733 struct drm_mm_node,
42d6ab48 Chris Wilson 2012-07-26 2734 node_list);
2a1d7752 Chris Wilson 2016-07-26 2735 if (node && node->allocated && node->color != color)
42d6ab48 Chris Wilson 2012-07-26 2736 *end -= 4096;
42d6ab48 Chris Wilson 2012-07-26 2737 }
fbe5d36e Ben Widawsky 2013-11-04 2738
f6b9d5ca Chris Wilson 2016-08-04 2739 int i915_gem_init_ggtt(struct drm_i915_private *dev_priv)
644ec02b Daniel Vetter 2012-03-26 2740 {
:::::: The code at line 2732 was first introduced by commit
:::::: 2a1d775201081c400d7e60ceb8e5ac887d11b1f7 drm/i915: Prefer list_first_entry_or_null
:::::: TO: Chris Wilson <chris@chris-wilson.co.uk>
:::::: CC: Chris Wilson <chris@chris-wilson.co.uk>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27868 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-16 15:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-16 15:21 [drm-intel:drm-intel-nightly 922/930] drivers/gpu/drm/i915/i915_gem_gtt.c:2732:9: note: in expansion of macro 'list_first_entry_or_null' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.