From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wayne Call" Date: Fri, 10 Apr 2009 14:22:02 -0600 Message-ID: <000001c9ba1a$02e1ac70$08a50550$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C9B9E7.B8473C70" Content-Language: en-us Subject: [Xenomai-help] Section Mismatch Reply-To: wcall@domain.hid List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This is a multipart message in MIME format. ------=_NextPart_000_0001_01C9B9E7.B8473C70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I get the following "Section mismatch" warnings when attempting to build the lm73_rtdm.c and lpl_twi_uart_rtdm.c drivers. What causes a mismatch? WARNING: arch/blackfin/mach-bf537/boards/lm73_rtdm.o - Section mismatch: reference to .init.data:_device_tmpl from .text between '_rt_lm73_sensor_device_create' (at offset 0x108) and '_rt_lm73_sensor_ioctl' WARNING: arch/blackfin/mach-bf537/boards/lm73_rtdm.o - Section mismatch: reference to .init.data:_device_tmpl from .text between '_rt_lm73_sensor_device_create' (at offset 0x114) and '_rt_lm73_sensor_ioctl' WARNING: arch/blackfin/mach-bf537/boards/lpl_twi_uart_rtdm.o - Section mismatch: reference to .init.data:_device_tmpl from .text after '_rt_lpl_twi_uart_device_create' (at offset 0x298) WARNING: arch/blackfin/mach-bf537/boards/lpl_twi_uart_rtdm.o - Section mismatch: reference to .init.data:_device_tmpl from .text after '_rt_lpl_twi_uart_device_create' (at offset 0x2a4) The "Section mismatch" might be related to the following code? static const struct rtdm_device __initdata device_tmpl = { struct_version: RTDM_DEVICE_STRUCT_VER, device_flags: RTDM_NAMED_DEVICE | RTDM_EXCLUSIVE, device_name: "", open_rt: rt_lm73_sensor_open, ops: { close_rt: rt_lm73_sensor_close, ioctl_rt: rt_lm73_sensor_ioctl, }, device_class: RTDM_CLASS_LM73, driver_name: "lm73_sensor_rtd", driver_version: RTDM_DRIVER_VER(1, 0, 0), peripheral_name: "i2c_lm73", provider_name: "LonePeakLabs.Inc", }; Wayne ------=_NextPart_000_0001_01C9B9E7.B8473C70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I get the following = “Section mismatch” warnings when attempting to build the lm73_rtdm.c and lpl_twi_uart_rtdm.c drivers.  What causes a = mismatch?

 

 

WARNING: arch/blackfin/mach-bf537/boards/lm73_rtdm.o - Section mismatch: = reference to .init.data:_device_tmpl from .text between = '_rt_lm73_sensor_device_create' (at offset 0x108) and '_rt_lm73_sensor_ioctl'

WARNING: arch/blackfin/mach-bf537/boards/lm73_rtdm.o - Section mismatch: = reference to .init.data:_device_tmpl from .text between = '_rt_lm73_sensor_device_create' (at offset 0x114) and '_rt_lm73_sensor_ioctl'

WARNING: arch/blackfin/mach-bf537/boards/lpl_twi_uart_rtdm.o - Section mismatch: reference to .init.data:_device_tmpl from .text after '_rt_lpl_twi_uart_device_create' (at offset 0x298)

WARNING: arch/blackfin/mach-bf537/boards/lpl_twi_uart_rtdm.o - Section mismatch: reference to .init.data:_device_tmpl from .text after '_rt_lpl_twi_uart_device_create' (at offset 0x2a4)

 

 

The “Section = mismatch” might be related to the following code?

 

 
static const struct rtdm_device __initdata device_tmpl =3D =
{
    =
struct_version:     =
RTDM_DEVICE_STRUCT_VER,
 
    =
device_flags:       RTDM_NAMED_DEVICE | =
RTDM_EXCLUSIVE,
    =
device_name:        "",
    =
open_rt:           =
; rt_lm73_sensor_open,
    ops: {
        =
close_rt:       =
rt_lm73_sensor_close,
        =
ioctl_rt:       =
rt_lm73_sensor_ioctl,
    },
    =
device_class:       =
RTDM_CLASS_LM73,
    =
driver_name:        "lm73_sensor_rtd",
    =
driver_version:     =
RTDM_DRIVER_VER(1, 0, 0),
    =
peripheral_name:    "i2c_lm73",
    =
provider_name:      "LonePeakLabs.Inc",
};

 

 

Wayne

 

------=_NextPart_000_0001_01C9B9E7.B8473C70--