Kernel Error Nvidia Installation Error message

# rpm --nodeps -ivh --force nvidia-gfxG03-kmp-default-331.38_k3.4.6_2.10-2
Preparing...                          ################################# [100%]
Updating / installing...
   1:nvidia-gfxG03-kmp-default- 331.38_##################### ############ [100%]
make: Entering directory '/usr/src/linux-4.4.21-69-obj/x86_64/default'
  CC [M]  /usr/src/kernel-modules/nvidia-331.38-default/nv.o
In file included from /usr/src/linux-4.4.21-69/include/uapi/linux/stddef.h:1:0,
                 from /usr/src/linux-4.4.21-69/include/linux/stddef.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/posix_types.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/types.h:13,
                 from /usr/src/linux-4.4.21-69/include/linux/types.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/capability.h:16,
                 from /usr/src/linux-4.4.21-69/include/linux/capability.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
/usr/src/linux-4.4.21-69/include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsi
           cnts, cnts | _QW_LOCKED) == cnts);
                                    ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’

 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-4.4.21-69/include/uapi/linux/stddef.h:1:0,
                 from /usr/src/linux-4.4.21-69/include/linux/stddef.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/posix_types.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/types.h:13,
                 from /usr/src/linux-4.4.21-69/include/linux/types.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/capability.h:16,
                 from /usr/src/linux-4.4.21-69/include/linux/capability.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/mmzone.h: In function ‘next_zones_zonelist’:
/usr/src/linux-4.4.21-69/include/linux/mmzone.h:949:44: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                            ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-4.4.21-69/arch/x86/include/asm/preempt.h:5:0,
                 from /usr/src/linux-4.4.21-69/include/linux/preempt.h:59,
                 from /usr/src/linux-4.4.21-69/include/linux/spinlock.h:50,
                 from /usr/src/linux-4.4.21-69/include/linux/seqlock.h:35,
                 from /usr/src/linux-4.4.21-69/include/linux/time.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:19,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
In file included from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:0:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h: At top level:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:46:5: warning: "LINUX_VERSION_CODE" is not defined [-Wundef]
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
     ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:46:26: warning: "KERNEL_VERSION" is not defined [-Wundef]
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
                          ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:46:40: error: missing binary operator before token "("
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
                                        ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:48:7: warning: "LINUX_VERSION_CODE" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
       ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:48:28: warning: "KERNEL_VERSION" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
                            ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:48:42: error: missing binary operator before token "("
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
                                          ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:50:7: warning: "LINUX_VERSION_CODE" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
       ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:50:29: warning: "KERNEL_VERSION" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
                             ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:50:43: error: missing binary operator before token "("
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
                                           ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:53:4: error: #error This driver does not support development kernels!
 #  error This driver does not support development kernels!
    ^
In file included from /usr/src/linux-4.4.21-69/include/uapi/linux/stddef.h:1:0,
                 from /usr/src/linux-4.4.21-69/include/linux/stddef.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/posix_types.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/types.h:13,
                 from /usr/src/linux-4.4.21-69/include/linux/types.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/capability.h:16,
                 from /usr/src/linux-4.4.21-69/include/linux/capability.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h:734:26: warning: comparison between signed and unsigned integer expressions [-Ws
  if (likely(sz < 0 || sz >= n))
                          ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h:752:26: warning: comparison between signed and unsigned integer expressions [-Ws
  if (likely(sz < 0 || sz >= n))
                          ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-4.4.21-69/include/linux/writeback.h:192:0,
                 from /usr/src/linux-4.4.21-69/include/linux/memcontrol.h:30,
                 from /usr/src/linux-4.4.21-69/include/linux/swap.h:8,
                 from /usr/src/linux-4.4.21-69/include/linux/pagemap.h:15,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:135,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/bio.h: In function ‘bio_next_split’:
/usr/src/linux-4.4.21-69/include/linux/bio.h:424:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare
  if (sectors >= bio_sectors(bio))
              ^
In file included from /usr/src/linux-4.4.21-69/arch/x86/include/asm/preempt.h:5:0,
                 from /usr/src/linux-4.4.21-69/include/linux/preempt.h:59,
                 from /usr/src/linux-4.4.21-69/include/linux/spinlock.h:50,
                 from /usr/src/linux-4.4.21-69/include/linux/seqlock.h:35,
                 from /usr/src/linux-4.4.21-69/include/linux/time.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:19,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h: In function ‘mem_cgroup_events’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
In file included from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:0:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h: At top level:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:201:39: error: missing binary operator before token "("
   (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11))
                                       ^
In file included from /usr/src/linux-4.4.21-69/include/acpi/platform/acenv.h:174:0,
                 from /usr/src/linux-4.4.21-69/include/acpi/acpi.h:56,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:269,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/acpi/platform/aclinux.h:52:2: error: #error "Please don't include <acpi/acpi.h> directly, include <linu
 #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
  ^
In file included from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:270:0,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/acpi/acpi_drivers.h:94:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by d
 struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                           ^
/usr/src/linux-4.4.21-69/include/acpi/acpi_drivers.h:94:43: warning: its scope is only this definition or declaration, which is probablydefault]
/usr/src/kernel-modules/nvidia-331.38-default/nv.c: In function ‘nvidia_unlocked_ioctl’:
/usr/src/kernel-modules/nvidia-331.38-default/nv.c:2029:29: error: ‘struct file’ has no member named ‘f_dentry’
     return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                             ^
/usr/src/kernel-modules/nvidia-331.38-default/nv.c: In function ‘nvidia_compat_ioctl’:
/usr/src/kernel-modules/nvidia-331.38-default/nv.c:2039:29: error: ‘struct file’ has no member named ‘f_dentry’
     return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                             ^
/usr/src/linux-4.4.21-69/scripts/Makefile.build:259: recipe for target '/usr/src/kernel-modules/nvidia-331.38-default/nv.o' failed
make[3]: *** [/usr/src/kernel-modules/nvidia-331.38-default/nv.o] Error 1
/usr/src/linux-4.4.21-69/Makefile:1411: recipe for target '_module_/usr/src/kernel-modules/nvidia-331.38-default' failed
make[2]: *** [_module_/usr/src/kernel-modules/nvidia-331.38-default] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
make: Leaving directory '/usr/src/linux-4.4.21-69-obj/x86_64/default'
/usr/src/kernel-modules/nvidia-331.38-default /
NVIDIA: calling KBUILD...
make[1]: Entering directory '/usr/src/linux-4.4.21-69'
make -C /usr/src/linux-obj/x86_64/default KBUILD_SRC=/usr/src/linux-4.4.21-69 \
-f /usr/src/linux-4.4.21-69/Makefile modules
make[2]: Entering directory '/usr/src/linux-4.4.21-69-obj/x86_64/default'
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 /usr/src/kernel-modules/nvidia-331.38-default/.tmp_versions ; rm -f /usr/src/kernel-modules/nvidia-331.38-default/.tmp_versions
make -f /usr/src/linux-4.4.21-69/scripts/Makefile.build obj=/usr/src/kernel-modules/nvidia-331.38-default
  cc -Wp,-MD,/usr/src/kernel-modules/nvidia-331.38-default/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.8/include -I/u/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated  -I/usr/src/linux-4.4.21-69/include -Iinclude -I/usr/src/linux-4-Iarch/x86/include/generated/uapi -I/usr/src/linux-4.4.21-69/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.4.21-69/incrc/kernel-modules/nvidia-331.38-default -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ation -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=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 -Do-sign-compare -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unusacking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaratr-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DEBUG -U_DEBUG -DNDEBUG   -I/usr/src/kernel-modules/nvidia-331.38-default -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__TRING=\"331.38\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/src/kernel-modules/nvidia-331.38-default/.tmp_nv.a-331.38-default/nv.c
In file included from /usr/src/linux-4.4.21-69/include/uapi/linux/stddef.h:1:0,
                 from /usr/src/linux-4.4.21-69/include/linux/stddef.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/posix_types.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/types.h:13,
                 from /usr/src/linux-4.4.21-69/include/linux/types.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/capability.h:16,
                 from /usr/src/linux-4.4.21-69/include/linux/capability.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
/usr/src/linux-4.4.21-69/include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsi
           cnts, cnts | _QW_LOCKED) == cnts);
                                    ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-4.4.21-69/include/uapi/linux/stddef.h:1:0,
                 from /usr/src/linux-4.4.21-69/include/linux/stddef.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/posix_types.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/types.h:13,
                 from /usr/src/linux-4.4.21-69/include/linux/types.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/capability.h:16,
                 from /usr/src/linux-4.4.21-69/include/linux/capability.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/mmzone.h: In function ‘next_zones_zonelist’:
/usr/src/linux-4.4.21-69/include/linux/mmzone.h:949:44: warning: comparison between signed and unsigned integer expressions [-Wsign-comp
  if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                            ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-4.4.21-69/arch/x86/include/asm/preempt.h:5:0,
                 from /usr/src/linux-4.4.21-69/include/linux/preempt.h:59,
                 from /usr/src/linux-4.4.21-69/include/linux/spinlock.h:50,
                 from /usr/src/linux-4.4.21-69/include/linux/seqlock.h:35,
                 from /usr/src/linux-4.4.21-69/include/linux/time.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:19,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \

                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_cpu_add’
   this_cpu_add(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^
/usr/src/linux-4.4.21-69/include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_cpu_sub’
   this_cpu_sub(*percpu_count, nr);
   ^
In file included from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:0:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h: At top level:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:46:5: warning: "LINUX_VERSION_CODE" is not defined [-Wundef]
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
     ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:46:26: warning: "KERNEL_VERSION" is not defined [-Wundef]
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
                          ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:46:40: error: missing binary operator before token "("
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)
                                        ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:48:7: warning: "LINUX_VERSION_CODE" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
       ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:48:28: warning: "KERNEL_VERSION" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
                            ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:48:42: error: missing binary operator before token "("
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
                                          ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:50:7: warning: "LINUX_VERSION_CODE" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
       ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:50:29: warning: "KERNEL_VERSION" is not defined [-Wundef]
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
                             ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:50:43: error: missing binary operator before token "("
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
                                           ^
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:53:4: error: #error This driver does not support development kernels!
 #  error This driver does not support development kernels!
    ^
In file included from /usr/src/linux-4.4.21-69/include/uapi/linux/stddef.h:1:0,
                 from /usr/src/linux-4.4.21-69/include/linux/stddef.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/posix_types.h:4,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/types.h:13,
                 from /usr/src/linux-4.4.21-69/include/linux/types.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/capability.h:16,
                 from /usr/src/linux-4.4.21-69/include/linux/capability.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:15,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h:734:26: warning: comparison between signed and unsigned integer expressions [-Ws
  if (likely(sz < 0 || sz >= n))
                          ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/uaccess.h:752:26: warning: comparison between signed and unsigned integer expressions [-Ws
  if (likely(sz < 0 || sz >= n))
                          ^
/usr/src/linux-4.4.21-69/include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-4.4.21-69/include/linux/writeback.h:192:0,
                 from /usr/src/linux-4.4.21-69/include/linux/memcontrol.h:30,
                 from /usr/src/linux-4.4.21-69/include/linux/swap.h:8,
                 from /usr/src/linux-4.4.21-69/include/linux/pagemap.h:15,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:135,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/bio.h: In function ‘bio_next_split’:
/usr/src/linux-4.4.21-69/include/linux/bio.h:424:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare
  if (sectors >= bio_sectors(bio))
              ^
In file included from /usr/src/linux-4.4.21-69/arch/x86/include/asm/preempt.h:5:0,
                 from /usr/src/linux-4.4.21-69/include/linux/preempt.h:59,
                 from /usr/src/linux-4.4.21-69/include/linux/spinlock.h:50,
                 from /usr/src/linux-4.4.21-69/include/linux/seqlock.h:35,
                 from /usr/src/linux-4.4.21-69/include/linux/time.h:5,
                 from /usr/src/linux-4.4.21-69/include/uapi/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/timex.h:56,
                 from /usr/src/linux-4.4.21-69/include/linux/sched.h:19,
                 from /usr/src/linux-4.4.21-69/include/linux/utsname.h:5,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:44,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h: In function ‘mem_cgroup_events’:
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsi
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-4.4.21-69/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^
/usr/src/linux-4.4.21-69/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^
/usr/src/linux-4.4.21-69/include/linux/memcontrol.h:298:2: note: in expansion of macro ‘this_cpu_add’
  this_cpu_add(memcg->stat->events[idx], nr);
  ^
In file included from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:0:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h: At top level:
/usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:201:39: error: missing binary operator before token "("
   (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11))
                                       ^
In file included from /usr/src/linux-4.4.21-69/include/acpi/platform/acenv.h:174:0,
                 from /usr/src/linux-4.4.21-69/include/acpi/acpi.h:56,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:269,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/acpi/platform/aclinux.h:52:2: error: #error "Please don't include <acpi/acpi.h> directly, include <linu
 #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
  ^
In file included from /usr/src/kernel-modules/nvidia-331.38-default/nv-linux.h:270:0,
                 from /usr/src/kernel-modules/nvidia-331.38-default/nv.c:13:
/usr/src/linux-4.4.21-69/include/acpi/acpi_drivers.h:94:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by d
 struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                           ^
/usr/src/linux-4.4.21-69/include/acpi/acpi_drivers.h:94:43: warning: its scope is only this definition or declaration, which is probablydefault]
/usr/src/kernel-modules/nvidia-331.38-default/nv.c: In function ‘nvidia_unlocked_ioctl’:
/usr/src/kernel-modules/nvidia-331.38-default/nv.c:2029:29: error: ‘struct file’ has no member named ‘f_dentry’
     return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                             ^
/usr/src/kernel-modules/nvidia-331.38-default/nv.c: In function ‘nvidia_compat_ioctl’:
/usr/src/kernel-modules/nvidia-331.38-default/nv.c:2039:29: error: ‘struct file’ has no member named ‘f_dentry’
     return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                             ^
/usr/src/linux-4.4.21-69/scripts/Makefile.build:259: recipe for target '/usr/src/kernel-modules/nvidia-331.38-default/nv.o' failed
make[3]: *** [/usr/src/kernel-modules/nvidia-331.38-default/nv.o] Error 1
/usr/src/linux-4.4.21-69/Makefile:1411: recipe for target '_module_/usr/src/kernel-modules/nvidia-331.38-default' failed
make[2]: *** [_module_/usr/src/kernel-modules/nvidia-331.38-default] Error 2
make[2]: Leaving directory '/usr/src/linux-4.4.21-69-obj/x86_64/default'
Makefile:146: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.4.21-69'
NVIDIA: left KBUILD.
 nvidia.ko failed to build!
Makefile:172: recipe for target 'nvidia.ko' failed
make: *** [nvidia.ko] Error 1
/
install: cannot stat '/usr/src/kernel-modules/nvidia-331.38-default/nvidia.ko': No such file or directory
depmod: WARNING: could not open /lib/modules/3.4.6-2.10-default/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/3.4.6-2.10-default/modules.builtin: No such file or directory
update-alternatives: warning: alternative /usr/lib/nvidia/alternate-install-present-desktop (part of link group alternate-install-presen list of alternatives
update-alternatives: warning: /etc/alternatives/alternate-install-present is dangling; it will be updated with best choice
update-alternatives: using /usr/lib/nvidia/alternate-install-present-default to provide /usr/lib/nvidia/alternate-install-present (alterode

Modprobe blacklist files have been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting /etc/mod

*** Reboot your computer and verify that the NVIDIA graphics driver can be loaded. ***

depmod: ERROR: fstatat(5, nvidia.ko): No such file or directory

Problem: while installing Nvidia driver it will compile with OS kernel. SUSE 12 SP2 by default we have (linux-4.4.21-69) in this kernel it is not working.we are getting a lot of above error message. Solution: I have taken SLES 12SP3 kernel is 4.4.73-5-default, I have updated this kernel to the current running os and try to install Nvidia with dkms option it is installed successfully.
 Configured with dms – attach installer log.
Configured with dms – attach installer log.

# cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Nov 28 14:13:49 2017
installer version: 384.98

PATH: /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

nvidia-installer command line:
    ./nvidia-installer
    -dkms
    -no-x-check

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 4 CPUs online; setting concurrency level to 4.
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1224' of a runnning X server.
-> Continuing per the '--no-x-check' option.
-> License accepted.
-> Installing NVIDIA driver version 384.98.
-> There appears to already be a driver installed on your system (version: 384.98).  As part of installing this driver (version: 384.98), the existing driver will be uninstalled.  Are you sure you want to continue? (Answer: Continue installation)
-> The NVIDIA driver appears to have been installed previously using a different installer. To prevent potential conflicts, it is recommended either to update the existing installation using the same mechanism by which it was originally installed, or to uninstall the existing installation before installing this driver.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:

The package that is already installed is called nvidia-gfxG03-kmp.

You can upgrade the driver by running:
`zypper update nvidia-gfxG03-kmp`

You can remove nvidia-gfxG03-kmp by running:
`zypper remove nvidia-gfxG03-kmp`

This package is maintained by SUSE.


(Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: No)
-> Will install GLVND GLX client libraries.
-> Will install GLVND EGL client libraries.
-> Skipping GLX non-GLVND file: "libGL.so.384.98"
-> Skipping GLX non-GLVND file: "libGL.so.1"
-> Skipping GLX non-GLVND file: "libGL.so"
-> Skipping EGL non-GLVND file: "libEGL.so.384.98"
-> Skipping EGL non-GLVND file: "libEGL.so"
-> Skipping EGL non-GLVND file: "libEGL.so.1"
-> Uninstalling the previous installation with /usr/bin/nvidia-uninstall.
Looking for install checker script at ./libglvnd_install_checker/check-libglvnd-install.sh
   executing: '/bin/sh ./libglvnd_install_checker/check-libglvnd-install.sh'...
   Checking for libglvnd installation.
   Checking libGLdispatch...
   Can't load library libGLdispatch.so.0: libGLdispatch.so.0: cannot open shared object file: No such file or directory
Will install libglvnd libraries.
Will install libEGL vendor library config file to /usr/share/glvnd/egl_vendor.d
-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (384.98):
   executing: '/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X?  Any pre-existing X configuration file will be backed up. (Answer: Yes)
-> Your X configuration file has been successfully updated.  Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 384.98) is now complete.

0 comments: