From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Łukasz Sacha" <dragilla@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] kernel compilation error
Date: Thu, 03 Nov 2011 14:43:51 +0100 [thread overview]
Message-ID: <4EB29A97.4000009@domain.hid> (raw)
In-Reply-To: <CAAeYjMnjo8dsARF887bZT4sz9R5Ye6kz9uf2C9ydwkGLOcLKXg@domain.hid>
On 11/03/2011 12:31 AM, Łukasz Sacha wrote:
> On Thu, Nov 3, 2011 at 00:24, Łukasz Sacha <dragilla@domain.hid> wrote:
>> On Thu, Nov 3, 2011 at 00:15, Łukasz Sacha <dragilla@domain.hid> wrote:
>>> On Wed, Nov 2, 2011 at 16:37, Gilles Chanteperdrix
>>> <gilles.chanteperdrix@xenomai.org> wrote:
>>>> On 11/02/2011 04:31 PM, Gilles Chanteperdrix wrote:
>>>>> On 11/01/2011 01:42 PM, Łukasz Sacha wrote:
>>>>>> On Tue, Nov 1, 2011 at 12:34, Łukasz Sacha <dragilla@domain.hidm> wrote:
>>>>>>> Hello again:
>>>>>>>
>>>>>>> luke@domain.hid$ make ARCH=arm
>>>>>>> CROSS_COMPILE=arm-none-linux-gnueabi-
>>>>>>> ...
>>>>>>> CC arch/arm/kernel/fiq.o
>>>>>>> arch/arm/kernel/fiq.c: In function 'set_fiq_handler':
>>>>>>> arch/arm/kernel/fiq.c:87: error: dereferencing pointer to incomplete type
>>>>>>> arch/arm/kernel/fiq.c:87: error: dereferencing pointer to incomplete type
>>>>>>> arch/arm/kernel/fiq.c:89: error: dereferencing pointer to incomplete type
>>>>>>> arch/arm/kernel/fiq.c:89: error: dereferencing pointer to incomplete type
>>>>>>> make[1]: *** [arch/arm/kernel/fiq.o] Error 1
>>>>>>> make: *** [arch/arm/kernel] Error 2
>>>>>>> luke@domain.hid$
>>>>>>>
>>>>>>> This is how it looks like
>>>>>>> 80:void set_fiq_handler(void *start, unsigned int length)
>>>>>>> 81:{
>>>>>>> 82:#if defined(CONFIG_CPU_USE_DOMAINS)
>>>>>>> 83: memcpy((void *)0xffff001c, start, length);
>>>>>>> 84:#else
>>>>>>> 85: memcpy(vectors_page + 0x1c, start, length);
>>>>>>> 86:#endif
>>>>>>> 87: flush_icache_range(0xffff001c, 0xffff001c + length);
>>>>>>> 88: if (!vectors_high())
>>>>>>> 89: flush_icache_range(0x1c, 0x1c + length);
>>>>>>> 90:}
>>>>>>>
>>>>>>> Any ideas?
>>>>>>
>>>>>> Please take a look at this as this is piece of code the adeos i-pipe
>>>>>> patch (./ksrc/arch/arm/patches/adeos-ipipe-2.6.38.8-arm-1.18-03.patch)
>>>>>> modifies : in line 819.
>>>>>
>>>>> Indeed, we need the definition of struct task_struct in
>>>>> asm/cacheflush.h, the following patch should help:
>>>>> http://git.xenomai.org/?p=ipipe-gch.git;a=commitdiff;h=ca2793e18d538d07a648583c47d40fff405c4778;hp=e68e48bebdc551a534ecd6fdbd839eb9ee2637f7
>>>>>
>>>>> A new patch will be out soon.
>>
>> I get two section mismatches compiling the kernel.
>> --- cut here ---
>>
>> WARNING: arch/arm/mach-s3c2440/built-in.o(.text+0x8e0): Section
>> mismatch in reference from the function
>> mini2440_parse_features.clone.0() to the (unknown reference)
>> .init.data:(unknown)
>> The function mini2440_parse_features.clone.0() references
>> the (unknown reference) __initdata (unknown).
>> This is often because mini2440_parse_features.clone.0 lacks a __initdata
>> annotation or the annotation of (unknown) is wrong.
>>
>> WARNING: arch/arm/mach-s3c2440/built-in.o(.data+0x184): Section
>> mismatch in reference from the variable s3c2440_dma_driver to the
>> function .init.text:s3c2440_dma_add()
>> The variable s3c2440_dma_driver references
>> the function __init s3c2440_dma_add()
>> 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,
>> --- cut here ---
>>
>> Is this something to worry about?
> Actually there's more of this. Let me know if I should paste it here.
These issues have nothing to do with xenomai.
--
Gilles.
prev parent reply other threads:[~2011-11-03 13:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 11:34 [Xenomai-help] kernel compilation error Łukasz Sacha
2011-11-01 12:42 ` Łukasz Sacha
2011-11-01 17:19 ` Gilles Chanteperdrix
2011-11-01 17:29 ` Łukasz Sacha
2011-11-02 15:31 ` Gilles Chanteperdrix
2011-11-02 15:37 ` Gilles Chanteperdrix
2011-11-02 23:15 ` Łukasz Sacha
2011-11-02 23:24 ` Łukasz Sacha
2011-11-02 23:31 ` Łukasz Sacha
2011-11-03 13:43 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EB29A97.4000009@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=dragilla@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.