Date: Sun, 05 Jul 2020 12:54:59 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 247775] linuxkpi: drm-devel-kmod fails to build Message-ID: <bug-247775-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247775 Bug ID: 247775 Summary: linuxkpi: drm-devel-kmod fails to build Product: Ports & Packages Version: Latest Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: pkubaj@FreeBSD.org CC: powerpc@FreeBSD.org CC: powerpc@FreeBSD.org On powerpc64: cc -O2 -pipe -fno-strict-aliasing '-DKBUILD_MODNAME=3D"drm"' '-DLINUXKPI_PARAM_PREFIX=3Ddrm_' -DDRM_SYSCTL_PARAM_PREFIX=3D_dri -DLINUXKPI_VERSION=3D50000 -DCONFIG_DRM_AMDGPU_CIK -DCONFIG_DRM_AMDGPU_SI -DCONFIG_DRM_AMD_DC -DCONFIG_DRM_AMD_DC_FBC -DCONFIG_DRM_AMD_POWERPLAY -DCONFIG_DRM_I915_ALPHA_SUPPORT -DCONFIG_DRM_I915_FORCE_PROBE=3D'"*"' -DCONFIG_DRM_I915_CAPTURE_ERROR -DCONFIG_DRM_I915_SPIN_REQUEST=3D5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=3D250 -DCONFIG_DRM_LOAD_EDID_FIRMWA= RE -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALLOC=3D100 -DCONFIG_DRM_LEGACY -DCONFIG_DRM_VM -DCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DMI -DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_SM= P=20 -Werror -D_KERNEL -DKLD_MODULE -nostdinc=20 -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/linuxkpi/= gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/linuxkpi/= dummy/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/drivers/g= pu/drm -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/include -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/include/d= rm -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/include/u= api -I/tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/drivers/g= pu -include /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/drm/opt_glo= bal.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fPIC -mlongcall -fno-omit-frame-pointer -fdebug-prefix-map=3D./machine=3D/usr/src/sys/powerpc/include -MD=20 -MF.depend.drm_print.o -MTdrm_print.o -mno-altivec -msoft-float -mabi=3Delf= v2 -ffreestanding -fwrapv -fstack-protector -Wno-cast-qual -Wno-pointer-arith -Wno-pointer-sign -Wno-format -Wno-expansion-to-defined -Wno-format-zero-le= ngth -std=3Diso9899:1999 -c /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/drivers/gpu= /drm/drm_print.c -o drm_print.o In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/drivers/gpu= /drm/drm_print.c:34: In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/linuxkpi/gp= lv2/include/linux/io.h:4: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/io.h:34: In file included from ./machine/vm.h:34: In file included from ./machine/pte.h:210: ./machine/tlb.h:176:15: error: unknown type name 'uintptr_t' void tlb_lock(uintptr_t *); ^ ./machine/tlb.h:177:17: error: unknown type name 'uintptr_t' void tlb_unlock(uintptr_t *); ^ ./machine/tlb.h:179:21: error: a parameter list without types is only allow= ed in a function definition int tlb1_set_entry(vm_offset_t, vm_paddr_t, vm_size_t, uint32_t); ^ In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/drivers/gpu= /drm/drm_print.c:34: In file included from /tmp/usr/ports/graphics/drm-devel-kmod/work/drm-kmod-drm_v5.3_1/linuxkpi/gp= lv2/include/linux/io.h:4: In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/io.h:34: In file included from ./machine/vm.h:34: ./machine/pte.h:227:9: error: unknown type name 'uint64_t' typedef uint64_t pte_t; ^ sys/types.h should be before machine/vm.h. The following patch fixes drm-devel-kmod and should have no negative effects: Index: /usr/src/sys/compat/linuxkpi/common/include/linux/io.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/sys/compat/linuxkpi/common/include/linux/io.h (revision 362914) +++ /usr/src/sys/compat/linuxkpi/common/include/linux/io.h (working co= py) @@ -31,9 +31,9 @@ #ifndef _LINUX_IO_H_ #define _LINUX_IO_H_ +#include <sys/types.h> #include <machine/vm.h> #include <sys/endian.h> -#include <sys/types.h> #include <linux/compiler.h> #include <linux/types.h> --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247775-7788>