[Bug 266561] x11/nvidia-driver: copiler error: nvidia_os.c:283:19: error: incompatible integer to pointer conversion

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Sep 2022 06:39:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266561

            Bug ID: 266561
           Summary: x11/nvidia-driver: copiler error: nvidia_os.c:283:19:
                    error: incompatible integer to pointer conversion
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@FreeBSD.org

OS: recent 14-CURRENT (after commit 7ae99f80b6661760c5de3edd330b279f04b092a2)
driver: nvidia-driver-510.60.02

error:
[...]
cc  -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"510.60.02\"
-D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2
-fno-strict-aliasing -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG
-DNV_SPECTRE_V2=1 -DNV_KERNEL_INTERFACE_LAYER -Werror=undef  -Werror -D_KERNEL
-DKLD_MODULE -nostdinc  -I. -I../common/inc -include
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-510.60.02/src/nvidia/opt_global.h
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common 
-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
-fdebug-prefix-map=./i386=/usr/src/sys/i386/include     -MD 
-MF.depend.nvidia_os_registry.o -MTnvidia_os_registry.o -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
-ffreestanding -fwrapv -fstack-protector -Wall -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   -mno-aes -mno-avx  -std=iso9899:1999 -c
nvidia_os_registry.c -o nvidia_os_registry.o
--- nvidia_pci.o ---
--- nvidia_os.o ---
nvidia_os.c:283:19: error: incompatible integer to pointer conversion passing
'vm_offset_t' (aka 'unsigned long') to parameter of type 'void *'
[-Werror,-Wint-conversion]
    pmap_unmapdev((vm_offset_t)address, size);
                  ^~~~~~~~~~~~~~~~~~~~
./machine/pmap.h:511:26: note: passing argument to parameter here
void    pmap_unmapdev(void *, vm_size_t);

-- 
You are receiving this mail because:
You are the assignee for the bug.