+ -
当前位置:首页 → 问答吧 → 我卸载了kvm,可是编译内核产生的module还是有kvm

我卸载了kvm,可是编译内核产生的module还是有kvm

时间:2009-10-18

来源:互联网

我卸载了kvm,可是编译内核产生的module还是有kvm,而且给出了如下信息
代码:
 CHK include/linux/version.h
 CHK include/linux/utsrelease.h
 SYMLINK include/asm -> include/asm-x86
 CALL scripts/checksyscalls.sh
 CHK include/linux/compile.h
dnsdomainname: Host name lookup failure
 Building modules, stage 2.
Kernel: arch/x86/boot/bzImage is ready (#12)
 MODPOST 25 modules
 INSTALL arch/x86/kernel/test_nx.ko
 INSTALL drivers/bluetooth/bcm203x.ko
 INSTALL drivers/char/tpm/tpm.ko
 INSTALL drivers/char/tpm/tpm_bios.ko
 INSTALL drivers/char/tpm/tpm_tis.ko
 INSTALL drivers/gpu/drm/drm.ko
 INSTALL drivers/gpu/drm/i915/i915.ko
 INSTALL drivers/gpu/drm/radeon/radeon.ko
 INSTALL drivers/hwmon/coretemp.ko
 INSTALL drivers/i2c/algos/i2c-algo-bit.ko
 INSTALL drivers/input/misc/uinput.ko
 INSTALL drivers/memstick/core/memstick.ko
 INSTALL drivers/memstick/core/mspro_block.ko
 INSTALL drivers/mmc/card/mmc_block.ko
 INSTALL drivers/mmc/core/mmc_core.ko
 INSTALL drivers/mmc/host/sdhci-pci.ko
 INSTALL drivers/mmc/host/sdhci.ko
 INSTALL drivers/platform/x86/thinkpad_acpi.ko
 INSTALL drivers/scsi/scsi_wait_scan.ko
 INSTALL net/bluetooth/bluetooth.ko
 INSTALL net/bluetooth/bnep/bnep.ko
 INSTALL net/bluetooth/hidp/hidp.ko
 INSTALL net/bluetooth/l2cap.ko
 INSTALL net/bluetooth/rfcomm/rfcomm.ko
 INSTALL net/bluetooth/sco.ko
 DEPMOD 2.6.30-gentoo-r5
WARNING: /lib/modules/2.6.30-gentoo-r5/kvm/kvm.ko needs unknown symbol preempt_notifier_register
WARNING: /lib/modules/2.6.30-gentoo-r5/kvm/kvm.ko needs unknown symbol mmu_notifier_unregister
WARNING: /lib/modules/2.6.30-gentoo-r5/kvm/kvm.ko needs unknown symbol mmu_notifier_register
WARNING: /lib/modules/2.6.30-gentoo-r5/kvm/kvm.ko needs unknown symbol preempt_notifier_unregister
请问如何消除这些烦人的信息?谢谢

作者: waterloo2005   发布时间: 2009-10-18

应该先 rm -rf /lib/modules/2.6.30-gentoo-r5,然后 make modules_install

作者: ProgramFan   发布时间: 2009-10-19

这会有很多这样的信息
代码:
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:74: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1534: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1954: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
usr/gen_init_cpio.c: In function ‘cpio_mkfile’:
usr/gen_init_cpio.c:357: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
arch/x86/kernel/dumpstack.c: In function ‘print_trace_warning_symbol’:
arch/x86/kernel/dumpstack.c:117: warning: format not a string literal and no format arguments
arch/x86/kernel/dumpstack.c: In function ‘print_trace_address’:
arch/x86/kernel/dumpstack.c:139: warning: format not a string literal and no format arguments
arch/x86/kernel/e820.c: In function ‘early_panic’:
arch/x86/kernel/e820.c:1231: warning: format not a string literal and no format arguments
arch/x86/kernel/e820.c:1232: warning: format not a string literal and no format arguments
init/initramfs.c: In function ‘populate_rootfs’:
init/initramfs.c:573: warning: format not a string literal and no format arguments
arch/x86/kernel/cpu/mcheck/mce_64.c: In function ‘mce_panic’:
arch/x86/kernel/cpu/mcheck/mce_64.c:166: warning: format not a string literal and no format arguments

作者: waterloo2005   发布时间: 2009-10-19

那试试 make mrproper 先。记得要先保存 .config,之后再恢复。

作者: ProgramFan   发布时间: 2009-10-19

引用:
作者: ProgramFan
那试试 make mrproper 先。记得要先保存 .config,之后再恢复。
运行make mrproper 后,再运行make && make modules_install还是有很多类似输出

作者: waterloo2005   发布时间: 2009-10-19

把內核源碼刪了重裝下試試。

作者: coderoar   发布时间: 2009-10-19

module-rebuild或许可以帮到你

作者: yashen   发布时间: 2009-10-19

引用:
作者: coderoar
把內核源碼刪了重裝下試試。
试了,还是这样子。

作者: waterloo2005   发布时间: 2009-10-19

輸出僅僅是3樓那個樣子嗎?那樣已經沒事了,內核編譯過程中免不了有一些gcc的警告。

作者: coderoar   发布时间: 2009-10-19

引用:
作者: coderoar
輸出僅僅是3樓那個樣子嗎?那樣已經沒事了,內核編譯過程中免不了有一些gcc的警告。
xiexie

作者: waterloo2005   发布时间: 2009-10-19