All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Section Mismatch
@ 2009-04-10 20:22 Wayne Call
  2009-04-11 20:18 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Wayne Call @ 2009-04-10 20:22 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1605 bytes --]

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

 


[-- Attachment #2: Type: text/html, Size: 8169 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-13 22:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-10 20:22 [Xenomai-help] Section Mismatch Wayne Call
2009-04-11 20:18 ` Gilles Chanteperdrix
2009-04-13 21:24   ` Wayne Call
2009-04-13 22:09     ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.