post-352 drivers

Luca Boccassi luca.boccassi at gmail.com
Tue Feb 2 21:37:26 UTC 2016


On Tue, 2016-02-02 at 13:00 +0100, Andreas Beckmann wrote:
> On 2016-02-02 12:30, Luca Boccassi wrote:
> > On 1 February 2016 at 19:45, Andreas Beckmann <anbe at debian.org> wrote:
> >> Regarding conftest.sh: given the new upstream build system, can we just
> >> switch to using upstream's conftest.sh instead of patching around it and
> >> brewing our own conftest.h? Although it does not work out of the box ...
> >> probably due to the path layout with the -common headers packages. But
> >> maybe we can just patch that?
> > 
> > It would be great if we could, as it would make maintenance so much
> > easier. I've seen you already committed some changes to svn/355,
> > that's great, I'll give it a spin as well tonight or tomorrow.
> 
> This just needed some understanding how it works internally ... and that
> we kept calling into the build system in a way that "broke" conftest.sh
> :-( , predating my maintenance takeover.
> 
> 355.11+svn successfully survived my build-against-50-kernel-headers on
> amd64 test. Not sure whether any of these modules actually works :-)

Latest from branches/355 in my sid chroots fails to build on amd64 amd
armhf against all current kernel headers. The i386 ones work fine
though, which is curious. I'll keep debugging, meanwhile I'm attaching
the result of the dkms install for reference (this is a dkms install
after installing nvidia-kernel-dkms).

> BTW, can you test whether we still need the ld.bfd patch? Some years ago
> modules built with ld.gold were broken, see bug referenced in the patch.

Yes I've been wondering about that, I'll see what I can do.

Kind regards,
Luca Boccassi


DKMS make.log for nvidia-current-355.11 for kernel 4.4.0-trunk-amd64
(x86_64)
Tue Feb  2 20:41:52 UTC 2016
make KBUILD_OUTPUT=/lib/modules/4.4.0-trunk-amd64/build KBUILD_VERBOSE=1
-C /lib/modules/4.4.0-trunk-amd64/source
M=/var/lib/dkms/nvidia-current/355.11/build ARCH=amd64
NV_KERNEL_SOURCES=/lib/modules/4.4.0-trunk-amd64/source
NV_KERNEL_OUTPUT=/lib/modules/4.4.0-trunk-amd64/build
NV_KERNEL_MODULES="nvidia nvidia-uvm"
INSTALL_MOD_DIR=kernel/drivers/video Q= modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-trunk-common'
make -C /lib/modules/4.4.0-trunk-amd64/build
KBUILD_SRC=/usr/src/linux-headers-4.4.0-trunk-common \
-f /usr/src/linux-headers-4.4.0-trunk-common/Makefile modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.0-trunk-amd64'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or
include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to
fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p /var/lib/dkms/nvidia-current/355.11/build/.tmp_versions ; rm
-f /var/lib/dkms/nvidia-current/355.11/build/.tmp_versions/*
make -f /usr/src/linux-headers-4.4.0-trunk-common/scripts/Makefile.build
obj=/var/lib/dkms/nvidia-current/355.11/build
 CONFTEST patches.h:
static struct {
                const char *short_description;
                const char *description;
              } __nv_patches[] = {
{ NULL, NULL } };
 CONFTEST headers.h:
#undef NV_ASM_SYSTEM_H_PRESENT
#define NV_DRM_DRMP_H_PRESENT
#define NV_DRM_DRM_GEM_H_PRESENT
#define NV_GENERATED_AUTOCONF_H_PRESENT
#define NV_GENERATED_COMPILE_H_PRESENT
#define NV_GENERATED_UTSRELEASE_H_PRESENT
#define NV_LINUX_EFI_H_PRESENT
#define NV_LINUX_KCONFIG_H_PRESENT
#define NV_LINUX_SCREEN_INFO_H_PRESENT
#define NV_LINUX_SEMAPHORE_H_PRESENT
#define NV_LINUX_PRINTK_H_PRESENT
#define NV_LINUX_RATELIMIT_H_PRESENT
#undef NV_LINUX_PRIO_TREE_H_PRESENT
#define NV_LINUX_LOG2_H_PRESENT
#undef NV_XEN_IOEMU_H_PRESENT
 CONFTEST: INIT_WORK
 CONFTEST macros.h:
#error INIT_WORK() conftest failed!
 CONFTEST: remap_pfn_range
 CONFTEST: follow_pfn
 CONFTEST: vmap
 CONFTEST: set_pages_uc
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: change_page_attr
 CONFTEST: pci_get_class
 CONFTEST: pci_choose_state
 CONFTEST: vm_insert_page
 CONFTEST: acpi_device_id
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: kmem_cache_create
 CONFTEST: on_each_cpu
 CONFTEST: smp_call_function
 CONFTEST: acpi_evaluate_integer
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: pci_domain_nr
 CONFTEST: pci_dma_mapping_error
 CONFTEST: sg_alloc_table
 CONFTEST: sg_init_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 CONFTEST: proc_create_data
 CONFTEST: pde_data
 CONFTEST: proc_remove
 CONFTEST: pm_vt_switch_required
 CONFTEST: drm_pci_set_busid
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: write_cr4
 CONFTEST: remap_page_range
 CONFTEST: address_space
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 CONFTEST: fatal_signal_pending
 CONFTEST: list_cut_position
 CONFTEST functions.h:
#define NV_REMAP_PFN_RANGE_PRESENT
#define NV_FOLLOW_PFN_PRESENT
#define NV_SET_PAGES_UC_PRESENT
#define NV_SET_MEMORY_UC_PRESENT
#define NV_SET_MEMORY_ARRAY_UC_PRESENT
#define NV_CHANGE_PAGE_ATTR_PRESENT
#define NV_PCI_GET_CLASS_PRESENT
#define NV_PCI_CHOOSE_STATE_PRESENT
#define NV_VM_INSERT_PAGE_PRESENT
#undef NV_ACPI_DEVICE_ID_HAS_DRIVER_DATA
#define NV_ACQUIRE_CONSOLE_SEM_PRESENT
#define NV_CONSOLE_LOCK_PRESENT
#error kmem_cache_create() conftest failed!
#error on_each_cpu() conftest failed!
#error smp_call_function() conftest failed!
#undef NV_ACPI_EVALUATE_INTEGER_PRESENT
typedef unsigned long nv_acpi_integer_t;
#define NV_IOREMAP_CACHE_PRESENT
#define NV_IOREMAP_WC_PRESENT
#error acpi_walk_namespace() conftest failed!
#define NV_PCI_DOMAIN_NR_PRESENT
#error pci_dma_mapping_error() conftest failed!
#undef NV_SG_ALLOC_TABLE_PRESENT
#undef NV_SG_ALLOC_TABLE_FROM_PAGES_PRESENT
#define NV_PCI_GET_DOMAIN_BUS_AND_SLOT_PRESENT
#define NV_GET_NUM_PHYSPAGES_PRESENT
#define NV_EFI_ENABLED_PRESENT
#define NV_PROC_CREATE_DATA_PRESENT
#define NV_PDE_DATA_PRESENT
#define NV_PROC_REMOVE_PRESENT
#define NV_PM_VT_SWITCH_REQUIRED_PRESENT
#define NV_DRM_PCI_SET_BUSID_PRESENT
#undef NV_XEN_IOEMU_INJECT_MSI
#define NV_PHYS_TO_DMA_PRESENT
#define NV_GET_DMA_OPS_PRESENT
#define NV_WRITE_CR4_PRESENT
#undef NV_ADDRESS_SPACE_HAS_RWLOCK_TREE_LOCK
#define NV_ADDRESS_SPACE_INIT_ONCE_PRESENT
#define NV_KBASENAME_PRESENT
#define NV_FATAL_SIGNAL_PENDING_PRESENT
#define NV_LIST_CUT_POSITION_PRESENT
 CONFTEST symbols.h:
 CONFTEST: i2c_adapter
 CONFTEST: pm_message_t
 CONFTEST: irq_handler_t
 CONFTEST: acpi_device_ops
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: proc_dir_entry
 CONFTEST: scatterlist
 CONFTEST: sg_table
 CONFTEST: file_operations
 CONFTEST: vm_operations_struct
 CONFTEST: pci_save_state
 CONFTEST: file_inode
 CONFTEST: task_struct
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: dma_map_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: fault_flags
 CONFTEST: atomic64_type
 CONFTEST: backing_dev_info
 CONFTEST types.h:
#undef NV_I2C_ADAPTER_HAS_CLIENT_REGISTER
#undef NV_PM_MESSAGE_T_PRESENT
#undef NV_PM_MESSAGE_T_HAS_EVENT
#undef NV_IRQ_HANDLER_T_PRESENT
#undef NV_ACPI_DEVICE_OPS_HAS_MATCH
#undef NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT
#undef NV_ACPI_DEVICE_ID_HAS_DRIVER_DATA
#undef NV_OUTER_FLUSH_ALL_PRESENT
#undef NV_PROC_DIR_ENTRY_HAS_OWNER
#define NV_SCATTERLIST_HAS_PAGE
#undef NV_SG_TABLE_PRESENT
#undef NV_FILE_OPERATIONS_HAS_IOCTL
#undef NV_FILE_OPERATIONS_HAS_UNLOCKED_IOCTL
#undef NV_FILE_OPERATIONS_HAS_COMPAT_IOCTL
#undef NV_VM_OPERATIONS_STRUCT_HAS_FAULT
#undef NV_VM_OPERATIONS_STRUCT_HAS_ACCESS
#define NV_PCI_SAVE_STATE_ARGUMENT_COUNT 2
#undef NV_FILE_HAS_INODE
#undef NV_TASK_STRUCT_HAS_CRED
#undef NV_KUID_T_PRESENT
#undef NV_DMA_OPS_PRESENT
#undef NV_DMA_MAP_OPS_PRESENT
#undef NV_NONCOHERENT_SWIOTLB_DMA_OPS_PRESENT
#undef NV_FAULT_FLAG_PRESENT
#undef NV_ATOMIC64_PRESENT
#undef NV_ADDRESS_SPACE_HAS_BACKING_DEV_INFO
 CONFTEST: dom0_kernel_present
 CONFTEST: drm_available
 CONFTEST: nvidia_grid_build
 CONFTEST generic.h:
#undef NV_DOM0_KERNEL_PRESENT
#undef NV_DRM_AVAILABLE
#undef NV_GRID_BUILD
   gcc-5
-Wp,-MD,/var/lib/dkms/nvidia-current/355.11/build/nvidia/.nv-frontend.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/src/linux-headers-4.4.0-trunk-common/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated  -I/usr/src/linux-headers-4.4.0-trunk-common/include -Iinclude -I/usr/src/linux-headers-4.4.0-trunk-common/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-headers-4.4.0-trunk-common/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-headers-4.4.0-trunk-common/include/linux/kconfig.h   -I/var/lib/dkms/nvidia-current/355.11/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO   -I/var/lib/dkms/nvidia-current/355.11/build/common/inc   -I/var/lib/dkms/nvidia-current/355.11/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"355.11\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args   -I/var/lib/dkms/nvidia-current/355.11/build/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_frontend)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia-current/355.11/build/nvidia/.tmp_nv-frontend.o /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c
In file included
from /var/lib/dkms/nvidia-current/355.11/build/common/inc/conftest.h:2:0,

from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:15,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia-current/355.11/build/conftest/functions.h:13:2:
error: #error kmem_cache_create() conftest failed!
 #error kmem_cache_create() conftest failed!
  ^
/var/lib/dkms/nvidia-current/355.11/build/conftest/functions.h:14:2:
error: #error on_each_cpu() conftest failed!
 #error on_each_cpu() conftest failed!
  ^
/var/lib/dkms/nvidia-current/355.11/build/conftest/functions.h:15:2:
error: #error smp_call_function() conftest failed!
 #error smp_call_function() conftest failed!
  ^
/var/lib/dkms/nvidia-current/355.11/build/conftest/functions.h:20:2:
error: #error acpi_walk_namespace() conftest failed!
 #error acpi_walk_namespace() conftest failed!
  ^
/var/lib/dkms/nvidia-current/355.11/build/conftest/functions.h:22:2:
error: #error pci_dma_mapping_error() conftest failed!
 #error pci_dma_mapping_error() conftest failed!
  ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/common/inc/conftest.h:4:0,

from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:15,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia-current/355.11/build/conftest/macros.h:1:2: error:
#error INIT_WORK() conftest failed!
 #error INIT_WORK() conftest failed!
  ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:129:15:
error: conflicting types for 'kuid_t'
 typedef uid_t kuid_t;
               ^
In file included
from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/ipc.h:5:0,

from /usr/src/linux-headers-4.4.0-trunk-common/include/uapi/linux/sem.h:4,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/sem.h:7,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/sched.h:35,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/utsname.h:5,

from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:40,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/usr/src/linux-headers-4.4.0-trunk-common/include/linux/uidgid.h:22:3:
note: previous declaration of 'kuid_t' was here
 } kuid_t;
   ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:131:21:
error: conflicting types for '__kuid_val'
 static inline uid_t __kuid_val(kuid_t uid)
                     ^
In file included
from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/ipc.h:5:0,

from /usr/src/linux-headers-4.4.0-trunk-common/include/uapi/linux/sem.h:4,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/sem.h:7,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/sched.h:35,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/utsname.h:5,

from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:40,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/usr/src/linux-headers-4.4.0-trunk-common/include/linux/uidgid.h:33:21:
note: previous definition of '__kuid_val' was here
 static inline uid_t __kuid_val(kuid_t uid)
                     ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:144:2:
error: #error "struct file_operations compile test likely failed!"
 #error "struct file_operations compile test likely failed!"
  ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:329:2:
error: #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
 #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
  ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:333:6:
warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined
[-Wundef]
 #if (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 6)
      ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:335:8:
warning: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined
[-Wundef]
 #elif (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 7)
        ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:341:2:
error: #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value
unrecognized!"
 #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
  ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:882:2:
error: #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function()
unavailable)!"
 #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function()
unavailable)!"
  ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:902:2:
error: #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
 #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
  ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h: In
function 'nv_execute_on_all_cpus':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:911:11:
error: implicit declaration of function
'NV_ON_EACH_CPU' [-Werror=implicit-function-declaration]
     ret = NV_ON_EACH_CPU(func, info, 1);
           ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h: At top
level:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1164:13:
error: conflicting types for 'pm_message_t'
 typedef u32 pm_message_t;
             ^
In file included
from /usr/src/linux-headers-4.4.0-trunk-common/arch/x86/include/asm/apic.h:5:0,

from /usr/src/linux-headers-4.4.0-trunk-common/arch/x86/include/asm/smp.h:12,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/smp.h:59,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/sched.h:34,

from /usr/src/linux-headers-4.4.0-trunk-common/include/linux/utsname.h:5,

from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:40,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/usr/src/linux-headers-4.4.0-trunk-common/include/linux/pm.h:64:3: note:
previous declaration of 'pm_message_t' was here
 } pm_message_t;
   ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1421:6:
warning: "NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT" is not defined [-Wundef]
 #if (NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT == 5)
      ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h: In
function 'nv_dma_maps_swiotlb':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1562:41:
warning: initialization from incompatible pointer type
[-Wincompatible-pointer-types]
     const struct dma_mapping_ops *ops = get_dma_ops(&dev->dev);
                                         ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1581:26:
error: dereferencing pointer to incomplete type 'const struct
dma_mapping_ops'
     swiotlb_in_use = (ops->map_sg == swiotlb_map_sg);
                          ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h: At top
level:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1719:6:
warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
 #if (NV_INIT_WORK_ARGUMENT_COUNT == 2)
      ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1729:8:
warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
 #elif (NV_INIT_WORK_ARGUMENT_COUNT == 3)
        ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1739:2:
error: #error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
 #error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
  ^
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h: In
function 'nv_pci_save_state':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1891:5:
error: too many arguments to function 'pci_save_state'
     pci_save_state(dev, &nv->pci_cfg_space[0]);
     ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:109:0,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/usr/src/linux-headers-4.4.0-trunk-common/include/linux/pci.h:1066:5:
note: declared here
 int pci_save_state(struct pci_dev *dev);
     ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h: In
function 'nv_pci_restore_state':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1898:5:
error: too many arguments to function 'pci_restore_state'
     pci_restore_state(dev, &nv->pci_cfg_space[0]);
     ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:109:0,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/usr/src/linux-headers-4.4.0-trunk-common/include/linux/pci.h:1067:6:
note: declared here
 void pci_restore_state(struct pci_dev *dev);
      ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:1971:0,

from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-proto.h: At top
level:
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-proto.h:25:6:
warning: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined [-Wundef]
 #if (NV_INIT_WORK_ARGUMENT_COUNT == 3)
      ^
In file included
from /var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:13:0:
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c: In
function 'nvidia_frontend_poll':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:2083:35:
error: 'struct file' has no member named 'f_dentry'
 #define NV_FILE_INODE(file) (file)->f_dentry->d_inode
                                   ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:292:27:
note: in expansion of macro 'NV_FILE_INODE'
     struct inode *inode = NV_FILE_INODE(file);
                           ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c: In
function 'nvidia_frontend_unlocked_ioctl':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:2083:35:
error: 'struct file' has no member named 'f_dentry'
 #define NV_FILE_INODE(file) (file)->f_dentry->d_inode
                                   ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:331:34:
note: in expansion of macro 'NV_FILE_INODE'
     return nvidia_frontend_ioctl(NV_FILE_INODE(file), file, cmd,
i_arg);
                                  ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c: In
function 'nvidia_frontend_compat_ioctl':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:2083:35:
error: 'struct file' has no member named 'f_dentry'
 #define NV_FILE_INODE(file) (file)->f_dentry->d_inode
                                   ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:340:34:
note: in expansion of macro 'NV_FILE_INODE'
     return nvidia_frontend_ioctl(NV_FILE_INODE(file), file, cmd,
i_arg);
                                  ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c: In
function 'nvidia_frontend_mmap':
/var/lib/dkms/nvidia-current/355.11/build/common/inc/nv-linux.h:2083:35:
error: 'struct file' has no member named 'f_dentry'
 #define NV_FILE_INODE(file) (file)->f_dentry->d_inode
                                   ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:349:27:
note: in expansion of macro 'NV_FILE_INODE'
     struct inode *inode = NV_FILE_INODE(file);
                           ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c: In
function 'nvidia_frontend_unlocked_ioctl':
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:332:1:
warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c: In
function 'nvidia_frontend_compat_ioctl':
/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.c:341:1:
warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.4.0-trunk-common/scripts/Makefile.build:263:
recipe for target
'/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.o' failed
make[3]: ***
[/var/lib/dkms/nvidia-current/355.11/build/nvidia/nv-frontend.o] Error 1
/usr/src/linux-headers-4.4.0-trunk-common/Makefile:1401: recipe for
target '_module_/var/lib/dkms/nvidia-current/355.11/build' failed
make[2]: *** [_module_/var/lib/dkms/nvidia-current/355.11/build] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-trunk-amd64'
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-trunk-common'
Makefile:81: recipe for target 'modules' failed
make: *** [modules] Error 2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20160202/1f80fa23/attachment-0001.sig>


More information about the pkg-nvidia-devel mailing list