tree:
https://github.com/0day-ci/linux/commits/UPDATE-20200919-040329/Daniel-Ve...
head: 94cdb5aa39405ff16ad98f65a8d44e9a8e55dac7
commit: 0eecbea55f799c9e404dcc6e3249af908252a240 [2/4] drm/i915/selftests: align more to
real device lifetimes
config: i386-randconfig-a006-20200917 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 0eecbea55f799c9e404dcc6e3249af908252a240
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from arch/x86/include/asm/bug.h:93,
from include/linux/bug.h:5,
from include/drm/drm_mm.h:40,
from include/drm/drm_vma_manager.h:26,
from drivers/gpu/drm/i915/i915_gem.c:28:
drivers/gpu/drm/i915/selftests/mock_gem_device.c: In function
'mock_gem_device':
> include/linux/kern_levels.h:5:18: error: format '%d'
expects argument of type 'int', but argument 2 has type 'long int'
[-Werror=format=]
5 | #define KERN_SOH "\001" /* ASCII Start Of
Header */
| ^~~~~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:339:9: note: in expansion of macro 'KERN_ERR'
339 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/gpu/drm/i915/selftests/mock_gem_device.c:147:3: note: in expansion of macro
'pr_err'
147 | pr_err("Failed to allocate mock GEM device: err=%d\n",
PTR_ERR(i915));
| ^~~~~~
In file included from drivers/gpu/drm/i915/i915_gem.c:1397:
drivers/gpu/drm/i915/selftests/mock_gem_device.c:147:52: note: format string is defined
here
147 | pr_err("Failed to allocate mock GEM device: err=%d\n",
PTR_ERR(i915));
| ~^
| |
| int
| %ld
> drivers/gpu/drm/i915/selftests/mock_gem_device.c:124:6: error:
unused variable 'err' [-Werror=unused-variable]
124 | int err;
| ^~~
cc1: all warnings being treated as errors
#
https://github.com/0day-ci/linux/commit/0eecbea55f799c9e404dcc6e3249af908...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
UPDATE-20200919-040329/Daniel-Vetter/managed-drm_device-absolute-final-leftover-bits/20200918-212606
git checkout 0eecbea55f799c9e404dcc6e3249af908252a240
vim +/err +124 drivers/gpu/drm/i915/selftests/mock_gem_device.c
1a0c19248a2f69 Chris Wilson 2017-07-18 116
66d9cb5d805af7 Chris Wilson 2017-02-13 117 struct drm_i915_private
*mock_gem_device(void)
66d9cb5d805af7 Chris Wilson 2017-02-13 118 {
01b9d4e21148c8 Joerg Roedel 2020-06-25 119 #if IS_ENABLED(CONFIG_IOMMU_API) &&
defined(CONFIG_INTEL_IOMMU)
9f9f4101fc98db Chris Wilson 2020-09-16 120 static struct dev_iommu fake_iommu = {
.priv = (void *)-1 };
01b9d4e21148c8 Joerg Roedel 2020-06-25 121 #endif
9f9f4101fc98db Chris Wilson 2020-09-16 122 struct drm_i915_private *i915;
9f9f4101fc98db Chris Wilson 2020-09-16 123 struct pci_dev *pdev;
66d9cb5d805af7 Chris Wilson 2017-02-13 @124 int err;
66d9cb5d805af7 Chris Wilson 2017-02-13 125
7fb81e9d80738e Daniel Vetter 2020-03-23 126 pdev = kzalloc(sizeof(*pdev), GFP_KERNEL);
66d9cb5d805af7 Chris Wilson 2017-02-13 127 if (!pdev)
7fb81e9d80738e Daniel Vetter 2020-03-23 128 return NULL;
66d9cb5d805af7 Chris Wilson 2017-02-13 129 device_initialize(&pdev->dev);
29f31623d7a830 Chris Wilson 2017-05-18 130 pdev->class = PCI_BASE_CLASS_DISPLAY
<< 16;
66d9cb5d805af7 Chris Wilson 2017-02-13 131 pdev->dev.release = release_dev;
66d9cb5d805af7 Chris Wilson 2017-02-13 132 dev_set_name(&pdev->dev,
"mock");
d58f0083d39a17 Chris Wilson 2019-01-07 133
dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
66d9cb5d805af7 Chris Wilson 2017-02-13 134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org