Alsanie
Contributor
Contributor

Kernel module update fail

I am running on:

  Operating System: Fedora 30 (Workstation Edition)

  Kernel: Linux 5.2.11-200.fc30.x86_64

VMWare Workstation 14

vm

After runnig the command:

# vmware-modconfig --console --install-all

I get this:

```

[AppLoader] GLib does not have GSettings support.

Stopping vmware (via systemctl):                           [  OK  ]

make: Entering directory '/tmp/modconfig-buwa38/vmmon-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.11-200.fc30.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/kernels/5.2.11-200.fc30.x86_64'

Makefile:213: ================= WARNING ================

Makefile:214: 'SUBDIRS' will be removed after Linux 5.3

Makefile:215: Please use 'M=' or 'KBUILD_EXTMOD' instead

Makefile:216: ==========================================

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/linux/driverLog.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/linux/driver.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/linux/hostif.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/memtrack.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/apic.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/hashFunc.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/vmx86.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/cpuid.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/task.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/comport.o

In file included from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.c:43:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:129: warning: "MSR_MISC_FEATURES_ENABLES" redefined

  129 | #define MSR_MISC_FEATURES_ENABLES            0x140

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/irqflags.h:9,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.c:31:

./arch/x86/include/asm/msr-index.h:670: note: this is the location of the previous definition

  670 | #define MSR_MISC_FEATURES_ENABLES 0x00000140

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.c:43:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:453: warning: "MSR_K7_HWCR_SMMLOCK" redefined

  453 | #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/irqflags.h:9,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.c:31:

./arch/x86/include/asm/msr-index.h:479: note: this is the location of the previous definition

  479 | #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

      |

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/common/phystrack.o

In file included from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.c:46:

/tmp/modconfig-buwa38/vmmon-only/./include/x86_basic_defs.h:78: warning: "CR3_PCID_MASK" redefined

   78 | #define CR3_PCID_MASK  0xFFF

      |

In file included from ./arch/x86/include/asm/irqflags.h:5,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.c:31:

./arch/x86/include/asm/processor-flags.h:39: note: this is the location of the previous definition

   39 | #define CR3_PCID_MASK 0xFFFull

      |

In file included from ./arch/x86/include/asm/processor.h:5,

                 from ./arch/x86/include/asm/cpufeature.h:5,

                 from ./arch/x86/include/asm/thread_info.h:53,

                 from ./include/linux/thread_info.h:38,

                 from ./arch/x86/include/asm/preempt.h:7,

                 from ./include/linux/preempt.h:78,

                 from ./include/linux/spinlock.h:51,

                 from ./arch/x86/include/asm/mmu.h:5,

                 from ./arch/x86/include/asm/desc.h:7,

                 from /tmp/modconfig-buwa38/vmmon-only/common/task.c:70:

./arch/x86/include/asm/processor-flags.h:39: warning: "CR3_PCID_MASK" redefined

   39 | #define CR3_PCID_MASK 0xFFFull

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-buwa38/vmmon-only/common/task.c:53:

/tmp/modconfig-buwa38/vmmon-only/./include/x86_basic_defs.h:78: note: this is the location of the previous definition

   78 | #define CR3_PCID_MASK  0xFFF

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/paravirt_types.h:46,

                 from ./arch/x86/include/asm/ptrace.h:94,

                 from ./arch/x86/include/asm/math_emu.h:5,

                 from ./arch/x86/include/asm/processor.h:12,

                 from ./arch/x86/include/asm/cpufeature.h:5,

                 from ./arch/x86/include/asm/thread_info.h:53,

                 from ./include/linux/thread_info.h:38,

                 from ./arch/x86/include/asm/preempt.h:7,

                 from ./include/linux/preempt.h:78,

                 from ./include/linux/spinlock.h:51,

                 from ./arch/x86/include/asm/mmu.h:5,

                 from ./arch/x86/include/asm/desc.h:7,

                 from /tmp/modconfig-buwa38/vmmon-only/common/task.c:70:

./arch/x86/include/asm/msr-index.h:479: warning: "MSR_K7_HWCR_SMMLOCK" redefined

  479 | #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/common/task.c:51:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:453: note: this is the location of the previous definition

  453 | #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/paravirt_types.h:46,

                 from ./arch/x86/include/asm/ptrace.h:94,

                 from ./arch/x86/include/asm/math_emu.h:5,

                 from ./arch/x86/include/asm/processor.h:12,

                 from ./arch/x86/include/asm/cpufeature.h:5,

                 from ./arch/x86/include/asm/thread_info.h:53,

                 from ./include/linux/thread_info.h:38,

                 from ./arch/x86/include/asm/preempt.h:7,

                 from ./include/linux/preempt.h:78,

                 from ./include/linux/spinlock.h:51,

                 from ./arch/x86/include/asm/mmu.h:5,

                 from ./arch/x86/include/asm/desc.h:7,

                 from /tmp/modconfig-buwa38/vmmon-only/common/task.c:70:

./arch/x86/include/asm/msr-index.h:670: warning: "MSR_MISC_FEATURES_ENABLES" redefined

  670 | #define MSR_MISC_FEATURES_ENABLES 0x00000140

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/common/task.c:51:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:129: note: this is the location of the previous definition

  129 | #define MSR_MISC_FEATURES_ENABLES            0x140

      |

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/vmcore/moduleloop.o

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoaderVmmon.o

In file included from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm.h:43,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:60:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:129: warning: "MSR_MISC_FEATURES_ENABLES" redefined

  129 | #define MSR_MISC_FEATURES_ENABLES            0x140

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/irqflags.h:9,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from ./include/linux/binfmts.h:5,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:32:

./arch/x86/include/asm/msr-index.h:670: note: this is the location of the previous definition

  670 | #define MSR_MISC_FEATURES_ENABLES 0x00000140

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm.h:43,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:60:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:453: warning: "MSR_K7_HWCR_SMMLOCK" redefined

  453 | #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/irqflags.h:9,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from ./include/linux/binfmts.h:5,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:32:

./arch/x86/include/asm/msr-index.h:479: note: this is the location of the previous definition

  479 | #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:60:

/tmp/modconfig-buwa38/vmmon-only/./include/x86_basic_defs.h:78: warning: "CR3_PCID_MASK" redefined

   78 | #define CR3_PCID_MASK  0xFFF

      |

In file included from ./arch/x86/include/asm/irqflags.h:5,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from ./include/linux/binfmts.h:5,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:32:

./arch/x86/include/asm/processor-flags.h:39: note: this is the location of the previous definition

   39 | #define CR3_PCID_MASK 0xFFFull

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.c:47:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:129: warning: "MSR_MISC_FEATURES_ENABLES" redefined

  129 | #define MSR_MISC_FEATURES_ENABLES            0x140

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/paravirt_types.h:46,

                 from ./arch/x86/include/asm/ptrace.h:94,

                 from ./arch/x86/include/asm/math_emu.h:5,

                 from ./arch/x86/include/asm/processor.h:12,

                 from ./arch/x86/include/asm/cpufeature.h:5,

                 from ./arch/x86/include/asm/thread_info.h:53,

                 from ./include/linux/thread_info.h:38,

                 from ./arch/x86/include/asm/preempt.h:7,

                 from ./include/linux/preempt.h:78,

                 from ./include/linux/spinlock.h:51,

                 from ./include/linux/wait.h:9,

                 from ./include/linux/wait_bit.h:8,

                 from ./include/linux/fs.h:6,

                 from ./include/linux/highmem.h:5,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.c:25:

./arch/x86/include/asm/msr-index.h:670: note: this is the location of the previous definition

  670 | #define MSR_MISC_FEATURES_ENABLES 0x00000140

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.c:47:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:453: warning: "MSR_K7_HWCR_SMMLOCK" redefined

  453 | #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/paravirt_types.h:46,

                 from ./arch/x86/include/asm/ptrace.h:94,

                 from ./arch/x86/include/asm/math_emu.h:5,

                 from ./arch/x86/include/asm/processor.h:12,

                 from ./arch/x86/include/asm/cpufeature.h:5,

                 from ./arch/x86/include/asm/thread_info.h:53,

                 from ./include/linux/thread_info.h:38,

                 from ./arch/x86/include/asm/preempt.h:7,

                 from ./include/linux/preempt.h:78,

                 from ./include/linux/spinlock.h:51,

                 from ./include/linux/wait.h:9,

                 from ./include/linux/wait_bit.h:8,

                 from ./include/linux/fs.h:6,

                 from ./include/linux/highmem.h:5,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.c:25:

./arch/x86/include/asm/msr-index.h:479: note: this is the location of the previous definition

  479 | #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-buwa38/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.c:49:

/tmp/modconfig-buwa38/vmmon-only/./include/x86_basic_defs.h:78: warning: "CR3_PCID_MASK" redefined

   78 | #define CR3_PCID_MASK  0xFFF

      |

In file included from ./arch/x86/include/asm/processor.h:5,

                 from ./arch/x86/include/asm/cpufeature.h:5,

                 from ./arch/x86/include/asm/thread_info.h:53,

                 from ./include/linux/thread_info.h:38,

                 from ./arch/x86/include/asm/preempt.h:7,

                 from ./include/linux/preempt.h:78,

                 from ./include/linux/spinlock.h:51,

                 from ./include/linux/wait.h:9,

                 from ./include/linux/wait_bit.h:8,

                 from ./include/linux/fs.h:6,

                 from ./include/linux/highmem.h:5,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/driver.c:25:

./arch/x86/include/asm/processor-flags.h:39: note: this is the location of the previous definition

   39 | #define CR3_PCID_MASK 0xFFFull

      |

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoader.o

/tmp/modconfig-buwa38/vmmon-only/linux/driver.c:109:19: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘unsigned int (*)(struct vm_fault *)’} from incompatible pointer type ‘int (*)(struct vm_fault *)’ [-Werror=incompatible-pointer-types]

  109 |         .fault  = LinuxDriverFault

      |                   ^~~~~~~~~~~~~~~~

/tmp/modconfig-buwa38/vmmon-only/linux/driver.c:109:19: note: (near initialization for ‘vmuser_mops.fault’)

/tmp/modconfig-buwa38/vmmon-only/linux/driver.c:985:1: warning: always_inline function might not be inlinable [-Wattributes]

  985 | LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

      | ^~~~~~~~~~~~~~~~~~~~~~~

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c: In function ‘HostIF_EstimateLockedPageLimit’:

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:1502:25: error: ‘totalram_pages’ redeclared as different kind of symbol

1502 |    extern unsigned long totalram_pages;

      |                         ^~~~~~~~~~~~~~

In file included from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:42:

./include/linux/mm.h:53:29: note: previous definition of ‘totalram_pages’ was here

   53 | static inline unsigned long totalram_pages(void)

      |                             ^~~~~~~~~~~~~~

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c: In function ‘HostIFReadUptimeWork’:

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:1648:4: error: implicit declaration of function ‘do_gettimeofday’; did you mean ‘do_settimeofday64’? [-Werror=implicit-function-declaration]

1648 |    do_gettimeofday(&tv);

      |    ^~~~~~~~~~~~~~~

      |    do_settimeofday64

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c: In function ‘isVAReadable’:

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:2167:11: error: implicit declaration of function ‘get_ds’; did you mean ‘get_fs’? [-Werror=implicit-function-declaration]

2167 |    set_fs(get_ds());

      |           ^~~~~~

      |           get_fs

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:2167:11: error: incompatible type for argument 1 of ‘set_fs’

2167 |    set_fs(get_ds());

      |           ^~~~~~~~

      |           |

      |           int

In file included from ./include/linux/uaccess.h:11,

                 from ./include/linux/poll.h:12,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:41:

./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’

   29 | static inline void set_fs(mm_segment_t fs)

      |                           ~~~~~~~~~~~~~^~

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c: In function ‘HostIF_SemaphoreWait’:

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:2368:11: error: incompatible type for argument 1 of ‘set_fs’

2368 |    set_fs(get_ds());

      |           ^~~~~~~~

      |           |

      |           int

In file included from ./include/linux/uaccess.h:11,

                 from ./include/linux/poll.h:12,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:41:

./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’

   29 | static inline void set_fs(mm_segment_t fs)

      |                           ~~~~~~~~~~~~~^~

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c: In function ‘HostIF_SemaphoreSignal’:

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:2497:11: error: incompatible type for argument 1 of ‘set_fs’

2497 |    set_fs(get_ds());

      |           ^~~~~~~~

      |           |

      |           int

In file included from ./include/linux/uaccess.h:11,

                 from ./include/linux/poll.h:12,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:41:

./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’

   29 | static inline void set_fs(mm_segment_t fs)

      |                           ~~~~~~~~~~~~~^~

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c: In function ‘HostIF_MapUserMem’:

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:3203:40: error: macro "access_ok" passed 3 arguments, but takes just 2

3203 |    if (!access_ok(VERIFY_WRITE, p, size)) {

      |                                        ^

In file included from ./include/linux/uaccess.h:11,

                 from ./include/linux/poll.h:12,

                 from /tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:41:

./arch/x86/include/asm/uaccess.h:91: note: macro "access_ok" defined here

   91 | #define access_ok(addr, size)     \

      |

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:3203:9: error: ‘access_ok’ undeclared (first use in this function)

3203 |    if (!access_ok(VERIFY_WRITE, p, size)) {

      |         ^~~~~~~~~

/tmp/modconfig-buwa38/vmmon-only/linux/hostif.c:3203:9: note: each undeclared identifier is reported only once for each function it appears in

/tmp/modconfig-buwa38/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()

/tmp/modconfig-buwa38/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()

/tmp/modconfig-buwa38/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()

cc1: some warnings being treated as errors

  CC [M]  /tmp/modconfig-buwa38/vmmon-only/bootstrap/bootstrap.o

make[2]: *** [scripts/Makefile.build:279: /tmp/modconfig-buwa38/vmmon-only/linux/hostif.o] Error 1

make[2]: *** Waiting for unfinished jobs....

/tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_AllocMPN() falls through to next function MonLoaderCallout_MapMPNInPTE()

/tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_FillPage() falls through to next function MonLoaderCallout_CopyFromBlob()

/tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_CopyFromBlob() falls through to next function MonLoaderCallout_GetSharedUserPage()

/tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: MonLoaderCallout_GetSharedHostPage() falls through to next function MonLoaderCallout_IsPrivileged()

/tmp/modconfig-buwa38/vmmon-only/bootstrap/monLoaderVmmon.o: warning: objtool: .text: unexpected end of section

In file included from /tmp/modconfig-buwa38/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/vmcore/moduleloop.c:35:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:129: warning: "MSR_MISC_FEATURES_ENABLES" redefined

  129 | #define MSR_MISC_FEATURES_ENABLES            0x140

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/irqflags.h:9,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from /tmp/modconfig-buwa38/vmmon-only/vmcore/moduleloop.c:31:

./arch/x86/include/asm/msr-index.h:670: note: this is the location of the previous definition

  670 | #define MSR_MISC_FEATURES_ENABLES 0x00000140

      |

In file included from /tmp/modconfig-buwa38/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-buwa38/vmmon-only/vmcore/moduleloop.c:35:

/tmp/modconfig-buwa38/vmmon-only/./include/x86msr.h:453: warning: "MSR_K7_HWCR_SMMLOCK" redefined

  453 | #define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

      |

In file included from ./arch/x86/include/asm/nospec-branch.h:11,

                 from ./arch/x86/include/asm/irqflags.h:9,

                 from ./include/linux/irqflags.h:16,

                 from ./include/linux/rcupdate.h:26,

                 from ./include/linux/rculist.h:11,

                 from ./include/linux/pid.h:5,

                 from ./include/linux/sched.h:14,

                 from /tmp/modconfig-buwa38/vmmon-only/vmcore/moduleloop.c:31:

./arch/x86/include/asm/msr-index.h:479: note: this is the location of the previous definition

  479 | #define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

      |

cc1: some warnings being treated as errors

make[2]: *** [scripts/Makefile.build:278: /tmp/modconfig-buwa38/vmmon-only/linux/driver.o] Error 1

/tmp/modconfig-buwa38/vmmon-only/common/vmx86.o: warning: objtool: Vmx86EnableHVOnCPU() falls through to next function Vmx86GetMSR()

/tmp/modconfig-buwa38/vmmon-only/common/task.o: warning: objtool: Task_Switch()+0x4ab: indirect call found in RETPOLINE build

/tmp/modconfig-buwa38/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section

make[1]: *** [Makefile:1601: _module_/tmp/modconfig-buwa38/vmmon-only] Error 2

make[1]: Leaving directory '/usr/src/kernels/5.2.11-200.fc30.x86_64'

make: *** [Makefile:110: vmmon.ko] Error 2

make: Leaving directory '/tmp/modconfig-buwa38/vmmon-only'

make: Entering directory '/tmp/modconfig-buwa38/vmnet-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.11-200.fc30.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/kernels/5.2.11-200.fc30.x86_64'

Makefile:213: ================= WARNING ================

Makefile:214: 'SUBDIRS' will be removed after Linux 5.3

Makefile:215: Please use 'M=' or 'KBUILD_EXTMOD' instead

Makefile:216: ==========================================

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/driver.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/hub.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/userif.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/netif.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/bridge.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/procfs.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/smac_compat.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/smac.o

In file included from ./include/linux/pci.h:37,

                 from /tmp/modconfig-buwa38/vmnet-only/compat_netdevice.h:27,

                 from /tmp/modconfig-buwa38/vmnet-only/netif.c:43:

./include/linux/pci_ids.h:2280: warning: "PCI_VENDOR_ID_VMWARE" redefined

2280 | #define PCI_VENDOR_ID_VMWARE  0x15ad

      |

In file included from /tmp/modconfig-buwa38/vmnet-only/net.h:38,

                 from /tmp/modconfig-buwa38/vmnet-only/vnetInt.h:26,

                 from /tmp/modconfig-buwa38/vmnet-only/netif.c:42:

/tmp/modconfig-buwa38/vmnet-only/vm_device_version.h:56: note: this is the location of the previous definition

   56 | #define PCI_VENDOR_ID_VMWARE                    0x15AD

      |

In file included from ./include/linux/pci.h:37,

                 from /tmp/modconfig-buwa38/vmnet-only/compat_netdevice.h:27,

                 from /tmp/modconfig-buwa38/vmnet-only/netif.c:43:

./include/linux/pci_ids.h:2281: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined

2281 | #define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

      |

In file included from /tmp/modconfig-buwa38/vmnet-only/net.h:38,

                 from /tmp/modconfig-buwa38/vmnet-only/vnetInt.h:26,

                 from /tmp/modconfig-buwa38/vmnet-only/netif.c:42:

/tmp/modconfig-buwa38/vmnet-only/vm_device_version.h:73: note: this is the location of the previous definition

   73 | #define PCI_DEVICE_ID_VMWARE_VMXNET3            0x07B0

      |

In file included from /tmp/modconfig-buwa38/vmnet-only/net.h:38,

                 from /tmp/modconfig-buwa38/vmnet-only/vnetInt.h:26,

                 from /tmp/modconfig-buwa38/vmnet-only/bridge.c:53:

/tmp/modconfig-buwa38/vmnet-only/vm_device_version.h:56: warning: "PCI_VENDOR_ID_VMWARE" redefined

   56 | #define PCI_VENDOR_ID_VMWARE                    0x15AD

      |

In file included from ./include/linux/pci.h:37,

                 from /tmp/modconfig-buwa38/vmnet-only/compat_netdevice.h:27,

                 from /tmp/modconfig-buwa38/vmnet-only/bridge.c:52:

./include/linux/pci_ids.h:2280: note: this is the location of the previous definition

2280 | #define PCI_VENDOR_ID_VMWARE  0x15ad

      |

In file included from /tmp/modconfig-buwa38/vmnet-only/net.h:38,

                 from /tmp/modconfig-buwa38/vmnet-only/vnetInt.h:26,

                 from /tmp/modconfig-buwa38/vmnet-only/bridge.c:53:

/tmp/modconfig-buwa38/vmnet-only/vm_device_version.h:73: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined

   73 | #define PCI_DEVICE_ID_VMWARE_VMXNET3            0x07B0

      |

In file included from ./include/linux/pci.h:37,

                 from /tmp/modconfig-buwa38/vmnet-only/compat_netdevice.h:27,

                 from /tmp/modconfig-buwa38/vmnet-only/bridge.c:52:

./include/linux/pci_ids.h:2281: note: this is the location of the previous definition

2281 | #define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0

      |

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/vnetEvent.o

  CC [M]  /tmp/modconfig-buwa38/vmnet-only/vnetUserListener.o

/tmp/modconfig-buwa38/vmnet-only/userif.c: In function ‘VNetUserIfMapPtr’:

/tmp/modconfig-buwa38/vmnet-only/userif.c:145:52: error: macro "access_ok" passed 3 arguments, but takes just 2

  145 |    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||

      |                                                    ^

In file included from ./include/linux/uaccess.h:11,

                 from ./arch/x86/include/asm/fpu/xstate.h:5,

                 from ./arch/x86/include/asm/pgtable.h:26,

                 from ./include/linux/mm.h:99,

                 from ./include/linux/highmem.h:8,

                 from /tmp/modconfig-buwa38/vmnet-only/userif.c:26:

./arch/x86/include/asm/uaccess.h:91: note: macro "access_ok" defined here

   91 | #define access_ok(addr, size)     \

      |

/tmp/modconfig-buwa38/vmnet-only/userif.c:145:9: error: ‘access_ok’ undeclared (first use in this function)

  145 |    if (!access_ok(VERIFY_WRITE, (void *)uAddr, size) ||

      |         ^~~~~~~~~

/tmp/modconfig-buwa38/vmnet-only/userif.c:145:9: note: each undeclared identifier is reported only once for each function it appears in

make[2]: *** [scripts/Makefile.build:279: /tmp/modconfig-buwa38/vmnet-only/userif.o] Error 1

make[2]: *** Waiting for unfinished jobs....

make[1]: *** [Makefile:1601: _module_/tmp/modconfig-buwa38/vmnet-only] Error 2

make[1]: Leaving directory '/usr/src/kernels/5.2.11-200.fc30.x86_64'

make: *** [Makefile:110: vmnet.ko] Error 2

make: Leaving directory '/tmp/modconfig-buwa38/vmnet-only'

Unable to install all modules.  See log for details.

```

0 Kudos
0 Replies