[PATCHv6 2/6] drm/core: Add drm_afbc_framebuffer and a corresponding helper
kbuild test robot
lkp at intel.com
Wed Mar 4 04:57:54 UTC 2020
Hi Andrzej,
I love your patch! Yet something to improve:
[auto build test ERROR on rockchip/for-next]
[also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.6-rc4 next-20200303]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Andrzej-Pietrasiewicz/Add-AFBC-support-for-Rockchip/20200304-030705
base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
config: arm64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 211fb91f1067ecdf7c0b8a019bcf76554d813129)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/msm/msm_atomic.c:8:
>> include/drm/drm_gem_framebuffer_helper.h:43:1: error: unknown type name 'bool'
bool drm_afbc_get_superblock_wh(u64 modifier, u32 *w, u32 *h);
^
>> include/drm/drm_gem_framebuffer_helper.h:43:33: error: unknown type name 'u64'
bool drm_afbc_get_superblock_wh(u64 modifier, u32 *w, u32 *h);
^
>> include/drm/drm_gem_framebuffer_helper.h:43:47: error: unknown type name 'u32'
bool drm_afbc_get_superblock_wh(u64 modifier, u32 *w, u32 *h);
^
include/drm/drm_gem_framebuffer_helper.h:43:55: error: unknown type name 'u32'
bool drm_afbc_get_superblock_wh(u64 modifier, u32 *w, u32 *h);
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:20:
In file included from arch/arm64/include/asm/kgdb.h:14:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:87:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
include/uapi/asm-generic/signal.h:91:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:20:
In file included from arch/arm64/include/asm/kgdb.h:14:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:87:25: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
include/uapi/asm-generic/signal.h:91:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:20:
In file included from arch/arm64/include/asm/kgdb.h:14:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:88:4: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
set->sig[1] | set->sig[0]) == 0;
^ ~
include/uapi/asm-generic/signal.h:91:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:20:
In file included from arch/arm64/include/asm/kgdb.h:14:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:90:11: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set->sig[1] | set->sig[0]) == 0;
^ ~
include/uapi/asm-generic/signal.h:91:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:20:
In file included from arch/arm64/include/asm/kgdb.h:14:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:103:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
include/uapi/asm-generic/signal.h:91:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
In file included from include/linux/kgdb.h:20:
In file included from arch/arm64/include/asm/kgdb.h:14:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:103:27: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
include/uapi/asm-generic/signal.h:91:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/gpu/drm/msm/msm_atomic.c:9:
In file included from include/drm/drm_vblank.h:32:
In file included from include/drm/drm_modes.h:33:
In file included from include/drm/drm_connector.h:31:
In file included from include/drm/drm_util.h:36:
vim +/bool +43 include/drm/drm_gem_framebuffer_helper.h
17
18 struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb,
19 unsigned int plane);
20 void drm_gem_fb_destroy(struct drm_framebuffer *fb);
21 int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file,
22 unsigned int *handle);
23
24 struct drm_framebuffer *
25 drm_gem_fb_init_with_funcs(struct drm_device *dev, struct drm_framebuffer *fb,
26 struct drm_file *file,
27 const struct drm_mode_fb_cmd2 *mode_cmd,
28 const struct drm_framebuffer_funcs *funcs);
29 struct drm_framebuffer *
30 drm_gem_fb_create_with_funcs(struct drm_device *dev, struct drm_file *file,
31 const struct drm_mode_fb_cmd2 *mode_cmd,
32 const struct drm_framebuffer_funcs *funcs);
33 struct drm_framebuffer *
34 drm_gem_fb_create(struct drm_device *dev, struct drm_file *file,
35 const struct drm_mode_fb_cmd2 *mode_cmd);
36 struct drm_framebuffer *
37 drm_gem_fb_create_with_dirty(struct drm_device *dev, struct drm_file *file,
38 const struct drm_mode_fb_cmd2 *mode_cmd);
39
40 #define drm_is_afbc(modifier) \
41 (((modifier) & AFBC_VENDOR_AND_TYPE_MASK) == DRM_FORMAT_MOD_ARM_AFBC(0))
42
> 43 bool drm_afbc_get_superblock_wh(u64 modifier, u32 *w, u32 *h);
44
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 70411 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200304/e354c9d3/attachment-0001.gz>
More information about the dri-devel
mailing list