Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2020 07:15:16 +0000
From:      marco <freebsd-current@lordsith.net>
To:        freebsd-current@freebsd.org
Subject:   Re: Build failure
Message-ID:  <20201020071516.GA11920@freedom.nl>
In-Reply-To: <20201003103630.b93bcef3cf5ea163cbd4b03d@bidouilliste.com>
References:  <CAKS%2Bcu1YipLBwK90=VKRPE2YPscD8=GYQNwHSiFwD3xOGx-_Lg@mail.gmail.com> <20201003103630.b93bcef3cf5ea163cbd4b03d@bidouilliste.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 03, 2020 at 10:36:30AM +0200, you (Emmanuel Vadot) sent the fol=
lowing to [freebsd-current] :
> On Fri, 2 Oct 2020 19:53:44 -0500
> Patrick McMunn <doctorwhoguy@gmail.com> wrote:
>=20
> > I update the sources today and ran "make -j24 buildworld buildkernel
> > KERNCONF=3DGENERIC-NODEBUG", and the build failed. I made sure to "make
> > clean" and "make cleanworld" and try again, and I got the same result.
> >=20
> > --=20
> > Patrick McMunn
> >=20
> > - Learn more about the Catholic Faith: http://www.catholic.com/
> > - Pray with the Church: http://www.universalis.com/
>=20
>  Hi,
>  You need to update your ports tree.
>  the drm-current-kmod ports install it's sources so the module will be
> rebuilt when you build a kernel.
>  This works as long as no changes in base need changes in those sources
> too. If there is needed changes in drm-kmod sources this unfortunatelly
> fails to compile, not much we can do here.

I checked out 05b104834ae7 (r366780) from
https://cgit-beta.freebsd.org/src.git and ran a 'make -j4 builworld and mak=
e -j4 buildkernel'
for GENERIC-NODEBUG which also failed (buildworld was successfull).
I did update the ports tree (portsnap fetch update) right before
buildkernel and also have
drm-current-kmod installed.

My normal procedure of updating current using BEs (using
WITH_MALLOC_PRODUCTION=3D in /etc/src.conf):

make -j4 buildworld
make -j4 buildkernel
bectl create xxxxx
bectl mount xxxxx /mnt
make -j4 installkernel DESTDIR=3D/mnt
mergemaster -Fp -D /mnt
make -j4 installworld DESTDIR=3D/mnt
mergemaster -Fi -D /mnt
make -DBATCH_DELETE_OLD_FILES delete-old DESTDIR=3D/mnt
make -DBATCH_DELETE_OLD_FILES delete-old-libs DESTDIR=3D/mnt (optional)
bectl umount xxxxx
bectl activate xxxxx
shutdown -r +1

I do see there's an update to drm-current-kmod (g20201003) and I'm currently
on g20200914 but I don't want to
update in place in my current BE (not sure if this could solve the
errors that are thrown).

--- linux_backlight.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:52:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/dma-mapping.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/dma-mapping.h:116:10: err=
or: incomplete definition of type 'struct device'
        if (!dev->dma_priv || !dma_supported(dev, dma_mask))
             ~~~^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:203:24: error: fiel=
d has incomplete type 'struct device_driver'
        struct device_driver            driver;
                                        ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:9: note: forward declaration of 'struct device_driver'
        struct device_driver driver;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:233:17: error: fiel=
d has incomplete type 'struct device'
        struct device           dev;
                                ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:331:9: error: impli=
cit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-W=
implicit-function-declaration]
        return dev_get_drvdata(&pdev->dev);
               ^
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:338:2: error: impli=
cit declaration of function 'dev_set_drvdata' is invalid in C99 [-Werror,-W=
implicit-function-declaration]
        dev_set_drvdata(&pdev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:112:16: error: field has incomplete type 'struct device'
        struct device dev;
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is i=
nvalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&bl_dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: st=
atic declaration of 'dev_get_drvdata' follows non-static declaration
dev_get_drvdata(const struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: note: previous implicit declaration is here
        return dev_get_drvdata(&dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: st=
atic declaration of 'dev_set_drvdata' follows non-static declaration
dev_set_drvdata(struct device *dev, void *data)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: note: previous implicit declaration is here
        dev_set_drvdata(&dev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: st=
atic declaration of 'device_unregister' follows non-static declaration
device_unregister(struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: note: previous implicit declaration is here
        device_unregister(&client->dev);
        ^
--- linux_device.o ---
cc -target x86_64-unknown-freebsd13.0 --sysroot=3D/usr/obj/usr/src/amd64.am=
d64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common '=
-DKBUILD_MODNAME=3D"linuxkpi_gplv2"' -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 -DCON=
FIG_DRM_I915_SPIN_REQUEST=3D5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=3D250=
 -DCONFIG_DRM_LOAD_EDID_FIRMWARE -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_O=
RIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON -DCONFIG_DRM_FBDEV_EMULATION -D=
CONFIG_DRM_FBDEV_OVERALLOC=3D100 -DCONFIG_DRM_LEGACY -DCONFIG_DRM_VM -DCONF=
IG_ARCH_HAVE_NMI_SAFE_CMPXCHG -DCONFIG_BACKLIGHT_CLASS_DEVICE -DCONFIG_DMI =
-DCONFIG_FB -DCONFIG_MTRR -DCONFIG_PCI -DCONFIG_PM -DCONFIG_SMP -DCONFIG_AC=
PI -DCONFIG_ACPI_SLEEP -DCONFIG_AGP -DCONFIG_X86 -DCONFIG_X86_PAT -DCONFIG_=
64BIT -DCONFIG_AS_MOVNTDQA -DCONFIG_COMPAT -DCONFIG_X64_64 -DCONFIG_DRM_AMD=
_DC_DCN1_0 -DCONFIG_DRM_AMD_DC_DCN1_01 -DCONFIG_DRM_AMD_DC_DCN2_0 -DCONFIG_=
DRM_AMD_DC_DSC_SUPPORT  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE=
 -DKLD_TIED -nostdinc  -I/usr/local/sys/modules/drm-current-kmod/include
-I/usr/local/sys/modules/drm-current-kmod/linuxkpi/dummy/include -I/usr/loc=
al/sys/modules/drm-current-kmod/linuxkpi/gplv2/include -I/usr/src/sys/compa=
t/linuxkpi/common/include -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/us=
r/src/amd64.amd64/sys/GENERIC-NODEBUG/opt_global.h -I. -I/usr/src/sys -I/us=
r/src/sys/contrib/ck/include -fno-common -g -fno-omit-frame-pointer -mno-om=
it-leaf-frame-pointer -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/i=
nclude -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include -I/usr/obj/usr=
/src/amd64.amd64/sys/GENERIC-NODEBUG     -MD  -MF.depend.linux_device.o -MT=
linux_device.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-flo=
at  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protecto=
r -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -W=
missing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D=
__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-=
option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empt=
y-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-erro=
r-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-membe=
r -Wno-format-zero-length -Wno-pointer-arith   -mno-aes -mno-avx  -std=3Dis=
o9899:1999 -c /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/li=
nux_device.c -o linux_device.o
--- linux_backlight.o ---
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.=
c:129:27: error: initializing 'struct backlight_device *' with an expressio=
n of incompatible type 'void'
        struct backlight_device *bd =3D to_backlight_device(dev);
                                 ^    ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.=
c:138:27: error: initializing 'struct backlight_device *' with an expressio=
n of incompatible type 'void'
        struct backlight_device *bd =3D to_backlight_device(dev);
                                 ^    ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.=
c:164:27: error: initializing 'struct backlight_device *' with an expressio=
n of incompatible type 'void'
        struct backlight_device *bd =3D to_backlight_device(dev);
                                 ^    ~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=3D]
20 errors generated.
*** [linux_backlight.o] Error code 1

make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi
--- linux_component.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
140:16: error: field has incomplete type 'struct device'
        struct device dev;              /* the adapter device */
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
166:16: error: field has incomplete type 'struct device'
        struct device dev;              /* the device structure         */
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:23: error: field has incomplete type 'struct device_driver'
        struct device_driver driver;
                             ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:9: note: forward declaration of 'struct device_driver'
        struct device_driver driver;
               ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: error: implicit declaration of function 'device_unregister' is inval=
id in C99 [-Werror,-Wimplicit-function-declaration]
        device_unregister(&client->dev);
        ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: error: implicit declaration of function 'dev_get_drvdata' is invalid=
 in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&dev->dev);
               ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: error: implicit declaration of function 'dev_set_drvdata' is invalid=
 in C99 [-Werror,-Wimplicit-function-declaration]
        dev_set_drvdata(&dev->dev, data);
        ^
--- linux_compat.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:

In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
140:16: error: field has incomplete type 'struct device'
        struct device dev;              /* the adapter device */
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
166:16: error: field has incomplete type 'struct device'
        struct device dev;              /* the device structure         */
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:23: error: field has incomplete type 'struct device_driver'
        struct device_driver driver;
                             ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:9: note: forward declaration of 'struct device_driver'
        struct device_driver driver;
               ^
--- linux_component.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:52:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/dma-mapping.h:4:
--- linux_compat.o ---
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: error: implicit declaration of function 'device_unregister' is inval=
id in C99 [-Werror,-Wimplicit-function-declaration]
        device_unregister(&client->dev);
        ^
--- linux_component.o ---
/usr/src/sys/compat/linuxkpi/common/include/linux/dma-mapping.h:116:10: err=
or: incomplete definition of type 'struct device'
        if (!dev->dma_priv || !dma_supported(dev, dma_mask))
             ~~~^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:203:24: error: fiel=
d has incomplete type 'struct device_driver'
        struct device_driver            driver;
                                        ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:9: note: forward declaration of 'struct device_driver'
        struct device_driver driver;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:233:17: error: fiel=
d has incomplete type 'struct device'
        struct device           dev;
                                ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:331:9: error: impli=
cit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-W=
implicit-function-declaration]
        return dev_get_drvdata(&pdev->dev);
               ^
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:338:2: error: impli=
cit declaration of function 'dev_set_drvdata' is invalid in C99 [-Werror,-W=
implicit-function-declaration]
        dev_set_drvdata(&pdev->dev, data);
        ^
--- linux_compat.o ---
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: error: implicit declaration of function 'dev_get_drvdata' is invalid=
 in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&dev->dev);
               ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: error: implicit declaration of function 'dev_set_drvdata' is invalid=
 in C99 [-Werror,-Wimplicit-function-declaration]
        dev_set_drvdata(&dev->dev, data);
        ^
--- linux_component.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:112:16: error: field has incomplete type 'struct device'
        struct device dev;
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is i=
nvalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&bl_dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: st=
atic declaration of 'dev_get_drvdata' follows non-static declaration
dev_get_drvdata(const struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: note: previous implicit declaration is here
        return dev_get_drvdata(&dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: st=
atic declaration of 'dev_set_drvdata' follows non-static declaration
dev_set_drvdata(struct device *dev, void *data)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: note: previous implicit declaration is here
        dev_set_drvdata(&dev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: st=
atic declaration of 'device_unregister' follows non-static declaration
device_unregister(struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: note: previous implicit declaration is here
        device_unregister(&client->dev);
        ^
--- linux_compat.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:7=
30:55: error: declaration of 'struct pci_dev' will not be visible outside o=
f this function [-Werror,-Wvisibility]
extern int remove_conflicting_pci_framebuffers(struct pci_dev *pdev, int re=
s_id, const char *name);
                                                      ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:112:16: error: field has incomplete type 'struct device'
        struct device dev;
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
--- linux_component.o ---
16 errors generated.
--- linux_compat.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:

In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is i=
nvalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&bl_dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: st=
atic declaration of 'dev_get_drvdata' follows non-static declaration
dev_get_drvdata(const struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: note: previous implicit declaration is here
        return dev_get_drvdata(&dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: st=
atic declaration of 'dev_set_drvdata' follows non-static declaration
dev_set_drvdata(struct device *dev, void *data)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: note: previous implicit declaration is here
        dev_set_drvdata(&dev->dev, data);
        ^
--- linux_device.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
140:16: error: field has incomplete type 'struct device'
        struct device dev;              /* the adapter device */
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
166:16: error: field has incomplete type 'struct device'
        struct device dev;              /* the device structure         */
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/uapi/linux/fb.h:5:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:23: error: field has incomplete type 'struct device_driver'
        struct device_driver driver;
                             ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:9: note: forward declaration of 'struct device_driver'
        struct device_driver driver;
               ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: error: implicit declaration of function 'device_unregister' is inval=
id in C99 [-Werror,-Wimplicit-function-declaration]
        device_unregister(&client->dev);
        ^
--- linux_component.o ---
*** [linux_component.o] Error code 1

make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi
--- linux_compat.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dma=
pool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: st=
atic declaration of 'device_unregister' follows non-static declaration
device_unregister(struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: note: previous implicit declaration is here
        device_unregister(&client->dev);
        ^
--- linux_device.o ---
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: error: implicit declaration of function 'dev_get_drvdata' is invalid=
 in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&dev->dev);
               ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: error: implicit declaration of function 'dev_set_drvdata' is invalid=
 in C99 [-Werror,-Wimplicit-function-declaration]

        dev_set_drvdata(&dev->dev, data);
        ^
--- linux_compat.o ---
12 errors generated.
*** [linux_compat.o] Error code 1

make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi
--- linux_device.o ---
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci=
=2Eh:52:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/dma-mapping.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/dma-mapping.h:116:10: err=
or: incomplete definition of type 'struct device'
        if (!dev->dma_priv || !dma_supported(dev, dma_mask))
             ~~~^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:203:24: error: fiel=
d has incomplete type 'struct device_driver'
        struct device_driver            driver;
                                        ^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
201:9: note: forward declaration of 'struct device_driver'
        struct device_driver driver;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:233:17: error: fiel=
d has incomplete type 'struct device'
        struct device           dev;
                                ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:331:9: error: impli=
cit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-W=
implicit-function-declaration]
        return dev_get_drvdata(&pdev->dev);
               ^
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:338:2: error: impli=
cit declaration of function 'dev_set_drvdata' is invalid in C99 [-Werror,-W=
implicit-function-declaration]
        dev_set_drvdata(&pdev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:112:16: error: field has incomplete type 'struct device'
        struct device dev;
                      ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct devic=
e'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dev=
ice.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backli=
ght.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is i=
nvalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&bl_dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: st=
atic declaration of 'dev_get_drvdata' follows non-static declaration
dev_get_drvdata(const struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
243:9: note: previous implicit declaration is here
        return dev_get_drvdata(&dev->dev);
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: st=
atic declaration of 'dev_set_drvdata' follows non-static declaration
dev_set_drvdata(struct device *dev, void *data)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
249:2: note: previous implicit declaration is here
        dev_set_drvdata(&dev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv=
2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: st=
atic declaration of 'device_unregister' follows non-static declaration
device_unregister(struct device *dev)
^
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/i2c.h:=
237:2: note: previous implicit declaration is here
        device_unregister(&client->dev);
        ^
16 errors generated.
*** [linux_device.o] Error code 1

make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi
4 errors

make[4]: stopped in /usr/local/sys/modules/drm-current-kmod/linuxkpi
*** [modules-all] Error code 2

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
1 error

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG



--=20
Marco van Lienen -- FreeBSD enthusiast
https://keybase.io/scarcry , GnuPG id: 8580E6CB
"The Tuck Pendleton machine...zero defects."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201020071516.GA11920>