Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-ast.spec'], chrootPath='/var/lib/mock/dist-an23-build-python3.11-369546-71394/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c8ce94df584542b2adc4324ca1d970aa', '-D', '/var/lib/mock/dist-an23-build-python3.11-369546-71394/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-ast.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1695081600 Wrote: /builddir/build/SRPMS/kmod-ast-6.6.7~1.2_rc1-1.13.1~1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-ast.spec'], chrootPath='/var/lib/mock/dist-an23-build-python3.11-369546-71394/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '70704d8ad9ec47d797ab3fe21925de57', '-D', '/var/lib/mock/dist-an23-build-python3.11-369546-71394/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-ast.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1695081600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.RsB5bH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kmod-ast-6.6.7~1.2_rc1 + /usr/bin/mkdir -p kmod-ast-6.6.7~1.2_rc1 + cd kmod-ast-6.6.7~1.2_rc1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/source-git.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uYeQD4 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd kmod-ast-6.6.7~1.2_rc1 ~/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src ~/build/BUILD/kmod-ast-6.6.7~1.2_rc1 + pushd src + /usr/bin/make -C /usr/src/kernels/6.6.7-1.2_rc1.an23.x86_64 -j80 M=/builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src modules make: Entering directory '/usr/src/kernels/6.6.7-1.2_rc1.an23.x86_64' CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_dp501.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_dp.o CC [M] /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_hdmitx.o /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.c: In function 'ast_cursor_init': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.c:80:25: error: too few arguments to function 'drm_gem_vram_vmap' 80 | vaddr = drm_gem_vram_vmap(gbo); | ^~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.c:30: ./include/drm/drm_gem_vram_helper.h:100:5: note: declared here 100 | int drm_gem_vram_vmap(struct drm_gem_vram_object *gbo, struct iosys_map *map); | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.c: In function 'ast_cursor_blit': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.c:186:15: error: too few arguments to function 'drm_gem_vram_vmap' 186 | src = drm_gem_vram_vmap(gbo); | ^~~~~~~~~~~~~~~~~ ./include/drm/drm_gem_vram_helper.h:100:5: note: declared here 100 | int drm_gem_vram_vmap(struct drm_gem_vram_object *gbo, struct iosys_map *map); | ^~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:29: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c: In function 'ast_mm_release': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:82:57: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 82 | arch_io_free_memtype_wc(pci_resource_start(dev->pdev, 0), | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:82:33: note: in expansion of macro 'pci_resource_start' 82 | arch_io_free_memtype_wc(pci_resource_start(dev->pdev, 0), | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:83:55: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 83 | pci_resource_len(dev->pdev, 0)); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ ./include/linux/pci.h:2098:10: note: in expansion of macro 'pci_resource_end' 2098 | (pci_resource_end((dev), (bar)) ? \ | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:83:33: note: in expansion of macro 'pci_resource_len' 83 | pci_resource_len(dev->pdev, 0)); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:83:55: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 83 | pci_resource_len(dev->pdev, 0)); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:83:33: note: in expansion of macro 'pci_resource_len' 83 | pci_resource_len(dev->pdev, 0)); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c: In function 'ast_mm_init': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:94:66: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 94 | ret = drmm_vram_helper_init(dev, pci_resource_start(dev->pdev, 0), | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:94:42: note: in expansion of macro 'pci_resource_start' 94 | ret = drmm_vram_helper_init(dev, pci_resource_start(dev->pdev, 0), | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:101:60: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 101 | arch_io_reserve_memtype_wc(pci_resource_start(dev->pdev, 0), | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:101:36: note: in expansion of macro 'pci_resource_start' 101 | arch_io_reserve_memtype_wc(pci_resource_start(dev->pdev, 0), | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:102:58: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 102 | pci_resource_len(dev->pdev, 0)); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ ./include/linux/pci.h:2098:10: note: in expansion of macro 'pci_resource_end' 2098 | (pci_resource_end((dev), (bar)) ? \ | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:102:36: note: in expansion of macro 'pci_resource_len' 102 | pci_resource_len(dev->pdev, 0)); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:102:58: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 102 | pci_resource_len(dev->pdev, 0)); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:102:36: note: in expansion of macro 'pci_resource_len' 102 | pci_resource_len(dev->pdev, 0)); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:103:65: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 103 | ast->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0), | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:103:41: note: in expansion of macro 'pci_resource_start' 103 | ast->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0), | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:104:63: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 104 | pci_resource_len(dev->pdev, 0)); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ ./include/linux/pci.h:2098:10: note: in expansion of macro 'pci_resource_end' 2098 | (pci_resource_end((dev), (bar)) ? \ | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:104:41: note: in expansion of macro 'pci_resource_len' 104 | pci_resource_len(dev->pdev, 0)); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:104:63: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 104 | pci_resource_len(dev->pdev, 0)); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.c:104:41: note: in expansion of macro 'pci_resource_len' 104 | pci_resource_len(dev->pdev, 0)); | ^~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_cursor.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.c: In function 'ast_set_def_ext_reg': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.c:91:26: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 91 | if (dev->pdev->revision >= 0x20) | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.c: In function 'ast_post_gpu': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.c:379:41: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 379 | pci_read_config_dword(ast->dev->pdev, 0x04, ®); | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.c:381:42: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 381 | pci_write_config_dword(ast->dev->pdev, 0x04, reg); | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c: In function 'ast_detect_config_mode': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:93:39: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 93 | struct device_node *np = dev->pdev->dev.of_node; | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:111:18: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 111 | if (dev->pdev->device != PCI_CHIP_AST2000) | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:123:28: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 123 | if (((dev->pdev->revision & 0xF0) == 0x40) && ((jregd0 & 0xC0) == 0)) | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:127:27: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 127 | if ((dev->pdev->revision & 0xF0) >= 0x30) | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c: In function 'ast_detect_chip': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:180:18: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 180 | if (dev->pdev->device == PCI_CHIP_AIP200) { | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:184:26: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 184 | if (dev->pdev->revision >= 0x50) { | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:187:33: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 187 | } else if (dev->pdev->revision >= 0x40) { | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:190:33: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 190 | } else if (dev->pdev->revision >= 0x30) { | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:193:33: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 193 | } else if (dev->pdev->revision >= 0x20) { | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:196:33: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 196 | } else if (dev->pdev->revision >= 0x10) { | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c: In function 'ast_get_dram_info': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:347:39: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 347 | struct device_node *np = dev->pdev->dev.of_node; | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c: In function 'ast_driver_load': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:478:36: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 478 | ast->regs = pci_iomap(dev->pdev, 1, 0); | ^~~~ | dev In file included from /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:29: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:489:39: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 489 | if (!(pci_resource_flags(dev->pdev, 2) & IORESOURCE_IO)) { | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:489:15: note: in expansion of macro 'pci_resource_flags' 489 | if (!(pci_resource_flags(dev->pdev, 2) & IORESOURCE_IO)) { | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:496:46: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 496 | ast->ioregs = pci_iomap(dev->pdev, 2, 0); | ^~~~ | dev make[2]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mm.o] Error 1 /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:523:61: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 523 | if (dev->vram_mm->vram_size < pci_resource_len(dev->pdev, 0)) { | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ ./include/linux/pci.h:2098:10: note: in expansion of macro 'pci_resource_end' 2098 | (pci_resource_end((dev), (bar)) ? \ | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:523:39: note: in expansion of macro 'pci_resource_len' 523 | if (dev->vram_mm->vram_size < pci_resource_len(dev->pdev, 0)) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:523:61: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 523 | if (dev->vram_mm->vram_size < pci_resource_len(dev->pdev, 0)) { | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:523:39: note: in expansion of macro 'pci_resource_len' 523 | if (dev->vram_mm->vram_size < pci_resource_len(dev->pdev, 0)) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:524:76: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 524 | ast->reservedbuffer = ioremap(pci_resource_start(ast->dev->pdev, 0) + (unsigned long)dev->vram_mm->vram_size, | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:524:47: note: in expansion of macro 'pci_resource_start' 524 | ast->reservedbuffer = ioremap(pci_resource_start(ast->dev->pdev, 0) + (unsigned long)dev->vram_mm->vram_size, | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:525:55: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 525 | pci_resource_len(dev->pdev, 0) - dev->vram_mm->vram_size); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ ./include/linux/pci.h:2098:10: note: in expansion of macro 'pci_resource_end' 2098 | (pci_resource_end((dev), (bar)) ? \ | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:525:33: note: in expansion of macro 'pci_resource_len' 525 | pci_resource_len(dev->pdev, 0) - dev->vram_mm->vram_size); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:525:55: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 525 | pci_resource_len(dev->pdev, 0) - dev->vram_mm->vram_size); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.c:525:33: note: in expansion of macro 'pci_resource_len' 525 | pci_resource_len(dev->pdev, 0) - dev->vram_mm->vram_size); | ^~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_main.o] Error 1 /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: In function 'ast_wait_one_vsync': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:544:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 544 | while (!(ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ) & AST_IO_VGAIR1_VREFRESH) && time_before(jiffies, timeout)); | ^~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:545:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 545 | timeout = jiffies + HZ; | ^~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:546:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 546 | while ((ast_io_read8(ast, AST_IO_INPUT_STATUS1_READ) & AST_IO_VGAIR1_VREFRESH) && time_before(jiffies, timeout)); | ^~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:547:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 547 | timeout = jiffies + HZ; | ^~~~~~~ make[2]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_post.o] Error 1 /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c: In function 'ast_kick_out_firmware_fb': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:73:14: error: implicit declaration of function 'alloc_apertures' [-Werror=implicit-function-declaration] 73 | ap = alloc_apertures(1); | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:73:12: warning: assignment to 'struct apertures_struct *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 73 | ap = alloc_apertures(1); | ^ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:77:11: error: invalid use of undefined type 'struct apertures_struct' 77 | ap->ranges[0].base = pci_resource_start(pdev, 0); | ^~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:78:11: error: invalid use of undefined type 'struct apertures_struct' 78 | ap->ranges[0].size = pci_resource_len(pdev, 0); | ^~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: In function 'ast_primary_plane_helper_atomic_check': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:574:51: error: 'DRM_PLANE_HELPER_NO_SCALING' undeclared (first use in this function); did you mean 'DRM_PLANE_NO_SCALING'? 574 | DRM_PLANE_HELPER_NO_SCALING, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | DRM_PLANE_NO_SCALING /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:574:51: note: each undeclared identifier is reported only once for each function it appears in /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: At top level: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:626:25: error: initialization of 'int (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'int (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types] 626 | .atomic_check = ast_primary_plane_helper_atomic_check, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:626:25: note: (near initialization for 'ast_primary_plane_helper_funcs.atomic_check') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:627:26: error: initialization of 'void (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types] 627 | .atomic_update = ast_primary_plane_helper_atomic_update, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:627:26: note: (near initialization for 'ast_primary_plane_helper_funcs.atomic_update') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:628:27: error: initialization of 'void (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types] 628 | .atomic_disable = ast_primary_plane_helper_atomic_disable, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:628:27: note: (near initialization for 'ast_primary_plane_helper_funcs.atomic_disable') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:83:9: error: implicit declaration of function 'drm_fb_helper_remove_conflicting_framebuffers' [-Werror=implicit-function-declaration] 83 | drm_fb_helper_remove_conflicting_framebuffers(ap, "astdrmfb", primary); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c: In function 'ast_pci_probe': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:102:14: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 102 | dev->pdev = pdev; | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: In function 'ast_cursor_plane_helper_atomic_check': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:682:51: error: 'DRM_PLANE_HELPER_NO_SCALING' undeclared (first use in this function); did you mean 'DRM_PLANE_NO_SCALING'? 682 | DRM_PLANE_HELPER_NO_SCALING, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | DRM_PLANE_NO_SCALING /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: At top level: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:730:25: error: initialization of 'int (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'int (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types] 730 | .atomic_check = ast_cursor_plane_helper_atomic_check, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:730:25: note: (near initialization for 'ast_cursor_plane_helper_funcs.atomic_check') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:731:26: error: initialization of 'void (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types] 731 | .atomic_update = ast_cursor_plane_helper_atomic_update, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:731:26: note: (near initialization for 'ast_cursor_plane_helper_funcs.atomic_update') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:732:27: error: initialization of 'void (*)(struct drm_plane *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_plane *, struct drm_plane_state *)' [-Werror=incompatible-pointer-types] 732 | .atomic_disable = ast_cursor_plane_helper_atomic_disable, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:732:27: note: (near initialization for 'ast_cursor_plane_helper_funcs.atomic_disable') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:882:25: error: initialization of 'int (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'int (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types] 882 | .atomic_check = ast_crtc_helper_atomic_check, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:882:25: note: (near initialization for 'ast_crtc_helper_funcs.atomic_check') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:883:25: error: initialization of 'void (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types] 883 | .atomic_begin = ast_crtc_helper_atomic_begin, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:883:25: note: (near initialization for 'ast_crtc_helper_funcs.atomic_begin') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:884:25: error: initialization of 'void (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types] 884 | .atomic_flush = ast_crtc_helper_atomic_flush, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:884:25: note: (near initialization for 'ast_crtc_helper_funcs.atomic_flush') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:885:26: error: initialization of 'void (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types] 885 | .atomic_enable = ast_crtc_helper_atomic_enable, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:885:26: note: (near initialization for 'ast_crtc_helper_funcs.atomic_enable') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:886:27: error: initialization of 'void (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types] 886 | .atomic_disable = ast_crtc_helper_atomic_disable, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:886:27: note: (near initialization for 'ast_crtc_helper_funcs.atomic_disable') /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:113:9: error: implicit declaration of function 'drm_fbdev_generic_setup' [-Werror=implicit-function-declaration] 113 | drm_fbdev_generic_setup(dev, 32); | ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c: In function 'ast_drm_freeze': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:139:17: error: implicit declaration of function 'drm_mode_config_helper_suspend'; did you mean 'drm_mode_config_cleanup'? [-Werror=implicit-function-declaration] 139 | error = drm_mode_config_helper_suspend(dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_mode_config_cleanup /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:142:29: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 142 | pci_save_state(dev->pdev); | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:940:22: error: 'drm_atomic_helper_legacy_gamma_set' undeclared here (not in a function); did you mean 'drm_atomic_helper_check_modeset'? 940 | .gamma_set = drm_atomic_helper_legacy_gamma_set, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_atomic_helper_check_modeset /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: In function 'ast_get_modes': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1004:24: error: 'EDID_LENGTH' undeclared (first use in this function); did you mean 'PCI_AF_LENGTH'? 1004 | edid = kmalloc(EDID_LENGTH, GFP_KERNEL); | ^~~~~~~~~~~ | PCI_AF_LENGTH /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1031:24: error: implicit declaration of function 'drm_get_edid'; did you mean 'drm_gem_evict'? [-Werror=implicit-function-declaration] 1031 | edid = drm_get_edid(connector, &ast_connector->i2c->adapter); | ^~~~~~~~~~~~ | drm_gem_evict /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1031:22: warning: assignment to 'struct edid *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1031 | edid = drm_get_edid(connector, &ast_connector->i2c->adapter); | ^ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c: In function 'ast_drm_thaw': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:150:16: error: implicit declaration of function 'drm_mode_config_helper_resume'; did you mean 'drm_mode_config_cleanup'? [-Werror=implicit-function-declaration] 150 | return drm_mode_config_helper_resume(dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | drm_mode_config_cleanup /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c: In function 'ast_drm_resume': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:157:36: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 157 | if (pci_enable_device(dev->pdev)) | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1034:23: error: implicit declaration of function 'drm_add_edid_modes' [-Werror=implicit-function-declaration] 1034 | ret = drm_add_edid_modes(connector, edid); | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: In function 'ast_mode_config_init': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1186:25: error: 'struct drm_mode_config' has no member named 'fb_base' 1186 | dev->mode_config.fb_base = pci_resource_start(ast->dev->pdev, 0); | ^ In file included from /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:32: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1186:65: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 1186 | dev->mode_config.fb_base = pci_resource_start(ast->dev->pdev, 0); | ^~~~ ./include/linux/pci.h:2093:44: note: in definition of macro 'pci_resource_n' 2093 | #define pci_resource_n(dev, bar) (&(dev)->resource[(bar)]) | ^~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1186:36: note: in expansion of macro 'pci_resource_start' 1186 | dev->mode_config.fb_base = pci_resource_start(ast->dev->pdev, 0); | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c: In function 'ast_i2c_create': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.c:1318:41: error: 'struct drm_device' has no member named 'pdev'; did you mean 'dev'? 1318 | i2c->adapter.dev.parent = &dev->pdev->dev; | ^~~~ | dev /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c: In function 'ast_init': /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.c:247:13: error: implicit declaration of function 'vgacon_text_force' [-Werror=implicit-function-declaration] 247 | if (vgacon_text_force() && ast_modeset == -1) | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_mode.o] Error 1 cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:243: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src/ast_drv.o] Error 1 make[1]: *** [/usr/src/kernels/6.6.7-1.2_rc1.an23.x86_64/Makefile:1913: /builddir/build/BUILD/kmod-ast-6.6.7~1.2_rc1/src] Error 2 make: *** [Makefile:234: __sub-make] Error 2 make: Leaving directory '/usr/src/kernels/6.6.7-1.2_rc1.an23.x86_64' error: Bad exit status from /var/tmp/rpm-tmp.uYeQD4 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.uYeQD4 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 70704d8ad9ec47d797ab3fe21925de57 -D /var/lib/mock/dist-an23-build-python3.11-369546-71394/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;\\007" --setenv=PS1= \\s-\\v\\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-ast.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 70704d8ad9ec47d797ab3fe21925de57 -D /var/lib/mock/dist-an23-build-python3.11-369546-71394/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.fulcyafm:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/kmod-ast.spec