编译Linux内核3.0系统出现的警告信息(一)

2014-11-24 10:12:18 · 作者: · 浏览: 5

========================================================================================
drivers/ata/sata_sil.c: 在函数‘sil_host_intr’中:
drivers/ata/sata_sil.c:453:14: 警告:此函数中的‘serror’在使用前可能未初始化 [-Wuninitialized]
=========================================================================================
drivers/block/drbd/drbd_main.c: 在函数‘drbd_buildtag’中:
drivers/block/drbd/drbd_main.c:4187:19: 警告:the comparison will always eva luate as ‘true’ for the address of ‘__this_module’ will never be NULL [-Waddress]
CC [M] drivers/block/drbd/drbd_strings.o
=========================================================================================
CC [M] drivers/block/DAC960.o
drivers/block/DAC960.c: 在函数‘DAC960_V2_ProcessCompletedCommand’中:
drivers/block/DAC960.c:5095:30: 警告:在‘DAC960_V2_IOCTL_Opcode_T’和‘enum <匿名>’间比较 [-Wenum-compare]
drivers/block/DAC960.c: 在函数‘DAC960_V1_EnableMemoryMailboxInterface’中:
/home/yuchao/dev/linux-3.0/arch/x86/include/asm/io.h:63:1: 警告:此函数中的‘CommandMailbox.Bytes[12]’在使用前可能未初始化 [-Wuninitialized]
drivers/block/DAC960.c:1175:30: 附注:‘CommandMailbox.Bytes[12]’在此声明
================================================================================================================================


在函数‘copy_from_user’中,
内联自‘parse_command.part.1’于 fs/binfmt_misc.c:422:20:
/home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h:211:26: 警告:调用‘copy_from_user_overflow’,声明有警告属性:copy_from_user() buffer size is not provably correct [默认启用]


arch/x86/kvm/emulate.c: 在函数‘emulate_sysexit’中:
arch/x86/kvm/emulate.c:2054:9: 警告:此函数中的‘ss_sel’在使用前可能未初始化 [-Wuninitialized]
arch/x86/kvm/emulate.c:2053:9: 警告:此函数中的‘cs_sel’在使用前可能未初始化 [-Wuninitialized]


/home/yuchao/dev/linux-3.0/arch/x86/include/asm/bitops.h: 在函数‘can_boost.part.7’中:
/home/yuchao/dev/linux-3.0/arch/x86/include/asm/bitops.h:319:2: 警告:不建议在 asm 操作数 1 中不带左值地使用内存输入 [默认启用]


WARNING: drivers/eisa/built-in.o(.data+0xd0): Section mismatch in reference from the variable pci_eisa_driver to the function .init.text:pci_eisa_init()
The variable pci_eisa_driver references
the function __init pci_eisa_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console


WARNING: drivers/gpu/drm/radeon/radeon.o(.text+0x4435b): Section mismatch in reference from the function radeon_get_clock_info() to the function .devinit.text:radeon_read_clocks_OF()
The function radeon_get_clock_info() references
the function __devinit radeon_read_clocks_OF().
This is often because radeon_get_clock_info lacks a __devinit
annotation or the annotation of radeon_read_clocks_OF is wrong.


CC [M] drivers/gpu/drm/nouveau/nv50_display.o
drivers/gpu/drm/nouveau/nv50_display.c: 在函数‘nv50_display_unk10_handler’中:
drivers/gpu/drm/nouveau/nv50_display.c:628:15: 警告:此函数中的‘or’在使用前可能未初始化 [-Wuninitialized]
drivers/gpu/drm/nouveau/nv50_display.c: 在函数‘nv50_display_unk20_handler’中:
drivers/gpu/drm/nouveau/nv50_display.c:751:15: 警告:此函数中的‘or’在使用前可能未初始化 [-Wuninitialized]
CC [M] drivers/gpu/drm/nouveau/nv04_dac.o


drivers/hwmon/applesmc.c: 在函数‘applesmc_get_entry_by_key’中:
drivers/hwmon/applesmc.c:390:10: 警告:此函数中的‘e