Re: Build failure

From: marco <freebsd-current_at_lordsith.net>
Date: Tue, 20 Oct 2020 07:15:16 +0000
On Sat, Oct 03, 2020 at 10:36:30AM +0200, you (Emmanuel Vadot) sent the following to [freebsd-current] :
> On Fri, 2 Oct 2020 19:53:44 -0500
> Patrick McMunn <doctorwhoguy_at_gmail.com> wrote:
> 
> > I update the sources today and ran "make -j24 buildworld buildkernel
> > KERNCONF=GENERIC-NODEBUG", and the build failed. I made sure to "make
> > clean" and "make cleanworld" and try again, and I got the same result.
> > 
> > -- 
> > Patrick McMunn
> > 
> > - Learn more about the Catholic Faith: http://www.catholic.com/
> > - Pray with the Church: http://www.universalis.com/
> 
>  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 make -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= in /etc/src.conf):

make -j4 buildworld
make -j4 buildkernel
bectl create xxxxx
bectl mount xxxxx /mnt
make -j4 installkernel DESTDIR=/mnt
mergemaster -Fp -D /mnt
make -j4 installworld DESTDIR=/mnt
mergemaster -Fi -D /mnt
make -DBATCH_DELETE_OLD_FILES delete-old DESTDIR=/mnt
make -DBATCH_DELETE_OLD_FILES delete-old-libs DESTDIR=/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/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:52:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/dma-mapping.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/dma-mapping.h:116:10: error: 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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:203:24: 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;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:233:17: error: field has incomplete type 'struct device'
        struct device           dev;
                                ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:331:9: error: implicit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&pdev->dev);
               ^
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:338:2: error: implicit declaration of function 'dev_set_drvdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        dev_set_drvdata(&pdev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is invalid 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/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: static 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/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: static 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/gplv2/src/linux_backlight.c:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: static 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=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common '-DKBUILD_MODNAME="linuxkpi_gplv2"' -DLINUXKPI_VERSION=50000
-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='"*"' -DCONFIG_DRM_I915_CAPTURE_ERROR -DCONFIG_DRM_I915_SPIN_REQUEST=5 -DCONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 -DCONFIG_DRM_LOAD_EDID_FIRMWARE -DCONFIG_DRM_MIPI_DSI -DCONFIG_DRM_PANEL_ORIENTATION_QUIRKS -DCONFIG_DRM_VMWGFX_FBCON -DCONFIG_DRM_FBDEV_EMULATION -DCONFIG_DRM_FBDEV_OVERALLOC=100 -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_SMP -DCONFIG_ACPI -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/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG     -MD  -MF.depend.linux_device.o -MTlinux_device.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -Wno-format-zero-length -Wno-pointer-arith   -mno-aes -mno-avx  -std=iso9899:1999 -c /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_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 expression of incompatible type 'void'
        struct backlight_device *bd = 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 expression of incompatible type 'void'
        struct backlight_device *bd = 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 expression of incompatible type 'void'
        struct backlight_device *bd = to_backlight_device(dev);
                                 ^    ~~~~~~~~~~~~~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
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/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 invalid 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/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:

In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:52:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 invalid 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: error: 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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:203:24: 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;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:233:17: error: field has incomplete type 'struct device'
        struct device           dev;
                                ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:331:9: error: implicit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&pdev->dev);
               ^
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:338:2: error: implicit declaration of function 'dev_set_drvdata' is invalid in C99 [-Werror,-Wimplicit-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/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is invalid 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/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: static 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/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: static 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/gplv2/src/linux_component.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/component.h:18:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: static 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/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:730:55: error: declaration of 'struct pci_dev' will not be visible outside of this function [-Werror,-Wvisibility]
extern int remove_conflicting_pci_framebuffers(struct pci_dev *pdev, int res_id, const char *name);
                                                      ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.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 device'
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/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:

In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is invalid 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/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: static 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/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: static 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/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:4:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/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 invalid 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/gplv2/src/linux_compat.c:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:51:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/dmapool.h:37:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: static 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/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:52:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/dma-mapping.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/dma-mapping.h:116:10: error: 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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:203:24: 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;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:233:17: error: field has incomplete type 'struct device'
        struct device           dev;
                                ^
/usr/src/sys/sys/types.h:275:16: note: forward declaration of 'struct device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:12:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/fb.h:10:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/pci.h:10:
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:331:9: error: implicit declaration of function 'dev_get_drvdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return dev_get_drvdata(&pdev->dev);
               ^
/usr/src/sys/compat/linuxkpi/common/include/linux/pci.h:338:2: error: implicit declaration of function 'dev_set_drvdata' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        dev_set_drvdata(&pdev->dev, data);
        ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.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 device'
typedef struct device   *device_t;
               ^
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/device.h:44:
/usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/backlight.h:152:9: error: implicit declaration of function 'dev_get_drvdata' is invalid 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/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:212:1: error: static 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/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:219:1: error: static 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/gplv2/src/linux_device.c:1:
In file included from /usr/local/sys/modules/drm-current-kmod/linuxkpi/gplv2/include/linux/device.h:4:
/usr/src/sys/compat/linuxkpi/common/include/linux/device.h:438:1: error: static 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



-- 
Marco van Lienen -- FreeBSD enthusiast
https://keybase.io/scarcry , GnuPG id: 8580E6CB
"The Tuck Pendleton machine...zero defects."
Received on Tue Oct 20 2020 - 05:15:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC