Compile the warning message (original) for the Linux kernel 3.0 System)

Source: Internet
Author: User

Compile the warning message (original) for the Linux kernel 3.0 System)
Yu Chao yuchao86@gmail.com
[Yuchao @ yuchao-Latitude-E5410 linux-3.0] $ GCC -- version
GCC (GCC) 4.6.1
Copyright 2011 Free Software Foundation, Inc.
This program is free software. Please refer to the source code copyright statement. This software has no guarantee;
Includes non-marketable and applicable warranties for a specific purpose.

========================================================== ========================================================== ==========
Drivers/ATA/sata_sil.c: In the 'sil _ host_intr 'function:
Drivers/ATA/sata_sil.c: 453: 14: Warning: 'serror 'In this function may not be initialized before use [-wuninitialized]
========================================================== ========================================================== ==========
Drivers/block/drbd/drbd_main.c: In the 'drbd _ buildtag' function:
Drivers/block/drbd/drbd_main.c: 4187: 19: Warning: The comparison will always evaluate 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: In the function 'dac960 _ V2_ProcessCompletedCommand:
Drivers/block/DAC960.c: 5095: 30: Warning: Comparison between 'dac960 _ V2_IOCTL_Opcode_T 'and 'enum <anonymous>' [-Wenum-compare]
Drivers/block/DAC960.c: In the 'dac960 _ v1_enablememorymailboxinterface' function:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/io. h: 63: 1: Warning: 'commandmailbox. bytes [12] 'may not be initialized before use [-Wuninitialized]
Drivers/block/DAC960.c: 1175: 30: Note: 'commandmailbox. Bytes [12] 'declares
========================================================== ========================================================== ========================================================== ==========

In the 'Copy _ from_user 'function,
Inline from 'parse _ command. part.1 'in fs/binfmt_misc.c: 422: 20:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]

Arch/x86/kvm/emulate. c: In the 'virtuate _ sysexit 'function:
Arch/x86/kvm/emulate. c: 2054: 9: Warning: 'ss _ sel 'In this function may not be initialized before use [-Wuninitialized]
Arch/x86/kvm/emulate. c: 2053: 9: Warning: 'cs _ sel 'In this function may not be initialized before use [-Wuninitialized]

/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/bitops. h: In the 'can _ boost. part.7' function:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/bitops. h: 319: 2: Warning: it is not recommended to use memory input without the left value in the asm operand 1 [enabled by default]

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
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. 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: In the function 'nv50 _ display_unk10_handler:
Drivers/gpu/drm/nouveau/nv50_display.c: 628: 15: Warning: 'or' in this function may not be initialized before use [-Wuninitialized]
Drivers/GPU/DRM/nouveau/nv50_display.c: In the 'nv50 _ display_unk20_handler' function:
Drivers/GPU/DRM/nouveau/nv50_display.c: 751: 15: Warning: 'or' in this function may not be initialized before use [-wuninitialized]
CC [m] Drivers/GPU/DRM/nouveau/nv04_dac.o

Drivers/hwmon/applesmc. C: In the function 'applesmc _ get_entry_by_key:
Drivers/hwmon/applesmc. C: 390: 10: Warning: 'end' in this function may not be initialized before use [-wuninitialized]
CC [m] Drivers/hwmon/asc7621.o
Drivers/InfiniBand/HW/mlx4/QP. C: In the 'build _ mlx_header 'function:
Drivers/InfiniBand/HW/mlx4/QP. C: 1379: 30: Warning: The 'vlan 'In this function may not be initialized before use [-wuninitialized]
In File sorted ded from/home/yuchao/dev/linux-3.0/ARCH/x86/include/ASM/uaccess. h: 570: 0,
From include/NET/checksum. h: 25,
From include/Linux/skbuff. h: 28,
From drivers/isdn/hardware/avm/b1.c: 17:
In the 'Copy _ from_user 'function,
Inline from 'b1 _ load_t4file 'in drivers/isdn/hardware/avm/b1.c: 179: 22:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]
In the 'Copy _ from_user 'function,
Inline from 'b1 _ load_config 'in drivers/isdn/hardware/avm/b1.c: 227: 22:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]
CC [M] drivers/isdn/hardware/avm

Drivers/isdn/hardware/eicon/message. c: In the 'mixer _ policy_update 'function:
Drivers/isdn/hardware/eicon/message. c: 11308: 54: warning: the array subscript is greater than the array boundary [-Warray-bounds]

Drivers/isdn/hardware/mISDN/hfcpci. c: In the 'hfcpci _ softirq 'function:
Drivers/isdn/hardware/mISDN/hfcpci. c: 2318: 2: Warning: Ignore the returned value of 'driver _ for_each_device 'declared with the warn_unused_result attribute [-Wunused-result]
========================================================== ========================================================
CC [M] drivers/media/dvb-core/dvb_ca_en50221.o
In file sorted ded from/home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess. h: 570: 0,
From include/linux/poll. h: 14,
From drivers/media/dvb-core/dvbdev. h: 27,
From drivers/media/dvb-core/dvb_ca_en50221.h: 27,
From drivers/media/dvb-core/dvb_ca_en50221.c: 41:
In the 'Copy _ from_user 'function,
Inline from 'dvb _ ca_en50221_io_write 'to drivers/media/dvb-core/dvb_ca_en50221.c: 1314: 26:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]

========================================================== ======================================
Drivers/media/common/tuners/max2165.c: In the 'max2165 _ set_rf 'function:
Drivers/media/common/tuners/max2165.c: 203: 11: Warning: 'fraction' in this function may not be initialized before use [-Wuninitialized]
Drivers/media/common/tuners/max2165.c: 205: 19: Warning: 'quotient' in this function may not be initialized before use [-Wuninitialized]
========================================================== ========================================================== ======================================

========================================================== ========================================================== ========================================
Drivers/ISDN/SC/init. C: In the 'identify _ Board' function:
Drivers/ISDN/SC/init. C: 487: 2: Warning: an integer is assigned to the pointer when 'readl''s 1st parameters are passed. No type conversion is performed. [enabled by default]
/Home/yuchao/dev/linux-3.0/ARCH/x86/include/ASM/Io. h: 57: 1: Note: The 'const volatile void * 'type is required, but the real parameter type is 'long unsigned int'
Drivers/ISDN/SC/init. C: 497: 2: Warning: an integer is assigned to the pointer when 'readl''s 1st parameters are passed. No type conversion is performed. [enabled by default]
/Home/yuchao/dev/linux-3.0/ARCH/x86/include/ASM/Io. h: 57: 1: Note: The 'const volatile void * 'type is required, but the real parameter type is 'long unsigned int'
Drivers/ISDN/SC/init. C: 507: 2: Warning: an integer is assigned to the pointer when 'readl''s 1st parameters are passed. No type conversion is performed. [enabled by default]
/Home/yuchao/dev/linux-3.0/ARCH/x86/include/ASM/Io. h: 57: 1: Note: The 'const volatile void * 'type is required, but the real parameter type is 'long unsigned int'
========================================================== ========================================================== ========================================================== =====
Drivers/isdn/icn. c: In the 'icn _ sendbuf 'function:
Drivers/isdn/icn. c: 721: 4: warning: # warning TODO test headroom or use skb-> nb to flag ACK [-Wcpp]
In file sorted ded from/home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess. h: 570: 0,
From include/net/checksum. h: 25,
From include/linux/skbuff. h: 28,
From include/linux/isdnif. h: 57,
From drivers/isdn/icn. h: 51,
From drivers/isdn/icn. c: 12:
In the 'Copy _ from_user 'function,
Inline from 'icn _ writecmd 'in drivers/isdn/icn. c: 1048: 22:
/Home/yuchao/dev/linux-3.0/ARCH/x86/include/ASM/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]
========================================================== ========================================================== ========================================================== ========
Drivers/ISDN/hardware/misdn/hfcpci. C: In the 'hfcpci _ softirq 'function:
Drivers/ISDN/hardware/misdn/hfcpci. C: 2318: 2: Warning: Ignore the returned value of 'driver _ for_each_device 'declared with the warn_unused_result attribute [-wunused-result]
========================================================== ========================================================== ====================================
Drivers/ISDN/hardware/eicon/message. C: In the 'mixer _ policy_update 'function:
Drivers/ISDN/hardware/eicon/message. C: 11308: 54: warning: the array subscript is greater than the array boundary [-warray-bounds]
In File sorted ded from/home/yuchao/dev/linux-3.0/ARCH/x86/include/ASM/uaccess. h: 570: 0,
From include/net/checksum. h: 25,
From include/linux/skbuff. h: 28,
From drivers/isdn/hardware/avm/b1.c: 17:
In the 'Copy _ from_user 'function,
Inline from 'b1 _ load_t4file 'in drivers/isdn/hardware/avm/b1.c: 179: 22:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]
In the 'Copy _ from_user 'function,
Inline from 'b1 _ load_config 'in drivers/isdn/hardware/avm/b1.c: 227: 22:
/Home/yuchao/dev/linux-3.0/arch/x86/include/asm/uaccess_32.h: 211: 26: Warning: Call 'Copy _ from_user_overflow' and declare the warning property: copy_from_user () buffer size is not provably correct [enabled by default]
========================================================== ========================================================== ==============
Warning: Drivers/MFD/built-in.o (. Data + 0x24cc): Section mismatch in reference from the variable ab3550_driver to the function. init. Text: ab3550_probe ()
The variable ab3550_driver references
The function _ init ab3550_probe ()
If the reference is valid then annotate
Variable with _ init * or _ refdata (see Linux/init. h) or name the variable:
* _ Template, * _ timer, * _ sht, * _ ops, * _ probe, * _ probe_one, * _ Console

++
Warning: Drivers/NET/PHY/built-in.o (. init. Text + 0x4c2): Section mismatch in reference from the function mdio_gpio_init () to the function. Exit. Text: mdio_ofgpio_exit ()
The function _ init mdio_gpio_init () References
A function _ exit mdio_ofgpio_exit ().
This is often seen when error handling in the init function
Uses functionality in the exit path.
The fix is often to remove the _ exit annotation
Mdio_ofgpio_exit () so it may be used outside an exit section.

========================================================== ======================================
Drivers/misc/lkdtm. c: In the 'cursive _ loop. constprop.2 'function:
Drivers/misc/lkdtm. c: 276: 1: warning: the stack frame contains 1028 bytes, exceeding 1024 bytes [-Wframe-larger-than =]
========================================================== ======================================
In file encoded ded from drivers/net/tokenring/smctr. c: 43: 0:
Include/linux/mca-legacy.h: 12: 2: warning: # warning "MCA legacy-please move your driver to the new sysfs api" [-Wcpp]
Include/linux/mtd/map. h: 330: 11: Warning: 'R. x [0] 'In this function may not be initialized before use [-Wuninitialized]

========================================================== ====================================
Drivers/net/pcmcia/nmclan_cs.c: In the 'nmclan _ config' function:
Drivers/net/pcmcia/nmclan_cs.c: 628: 3: Warning: 'pcmcia _ request_exclusive_irq 'is not recommended (declared in include/pcmcia/ds. h: 201) [-Wdeprecated-declarations]
Drivers/net/pcmcia/ibmtr_cs.c: In the 'ibmtr _ config' function:
Drivers/net/pcmcia/ibmtr_cs.c: 195: 5: Warning: 'pcmcia _ request_exclusive_irq 'is not recommended (declared in include/pcmcia/ds. h: 201) [-Wdeprecated-declarations]
========================================================== ======================

Drivers/net/wan/cycx_x25.c: In the 'hex _ dump' function:
Drivers/net/wan/cycx_x25.c: 1030: 1: warning: the stack frame contains 1040 bytes, exceeding 1024 bytes [-Wframe-larger-than =]
Drivers/net/wireless/prism54/isl_ioctl.c: In the 'prism54 _ hostsp' function:
Drivers/net/wireless/prism54/isl_ioctl.c: 2733: 14: warning: the array subscript is greater than the array boundary [-Warray-bounds]
Drivers/net/wireless/airo. c: In the 'encapsulate' function:
Drivers/net/wireless/airo. c: 1421: 15: warning: the array subscript is greater than the array boundary [-Warray-bounds]
Drivers/net/wireless/ray_cs.c: In the 'rx _ authenticate. isra.13 'function:
Drivers/net/wireless/ray_cs.c: 2439: 15: warning: the array subscript is greater than the array boundary [-Warray-bounds]
Drivers/net/cnic. c: In the 'cnic _ cm_open 'function:
Drivers/net/cnic. c: 4047: 2: Warning: the comparison will always evaluate as 'true' for the address of 'cm _ ulp_ops 'will never be NULL [-Waddress]
Drivers/net/cnic. c: In the 'cnic _ start_bnx2_hw 'function:
Drivers/net/cnic. c: 4556: 1: warning: the stack frame contains 1168 bytes, exceeding 1024 bytes [-Wframe-larger-than =]
Drivers/scsi/aic94xx/aic94xx_sds.c: 597: 21: Warning: 'offs' in this function may not be initialized before use [-Wuninitialized]
Drivers/scsi/libsas/sas_ata.c: 80: 3: Warning: The case value '2' is not in the enumeration type 'enum exec_status '[-Wswitch]
Drivers/scsi/lpfc/lpfc_bsg.c: 1662: 5: Warning: 'mbxstatus' in this function may not be initialized before use [-Wuninitialized]
Drivers/staging/comedi/drivers/pcmmio. c: 498: 22: Warning: array subscript is greater than array boundary [-Warray-bounds]
Drivers/staging/comedi/drivers/pcmmio. c: 561: 37: Warning: 'irq [1] 'In this function may not be initialized before use [-Wuninitialized]
Drivers/staging/comedi/drivers/vmk80xx. c: In the 'vmk80xx _ cnt_rinsn 'function:
Drivers/staging/comedi/drivers/vmk80xx. c: 995: 37: Warning: 'reg [0] 'In this function may not be initialized before use [-Wuninitialized]
Drivers/staging/iio/industrialio-core.c: In the function 'iio _ device_add_event_sysfs.isra.3:
Drivers/staging/iio/industrialio-core.c: 925: 7: Warning: 'mask' in this function may not be initialized before use [-Wuninitialized]
Drivers/telephony/ixj. c: In the 'Add _ caps' function:
Drivers/telephony/ixj. c: 5930: 38: Warning: The operation result on 'J-> caps' may be undefined [-Wsequence-point]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.