public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Mark Salter <msalter@redhat.com>
To: jskov@redhat.com
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] forwarded message from Simpkins, Andy
Date: Fri, 17 Aug 2001 06:55:00 -0000	[thread overview]
Message-ID: <200108171355.f7HDtUZ20961@deneb.localdomain> (raw)
In-Reply-To: <15229.8135.199960.457973@zoftcorp.adsl.dk>

>>>>> Jesper Skov writes:

>> void flash_query(void* data) __attribute__ ((section 
>> (".2ram.flash_query")));
>> 

> this always gives a compiler error : 

>  parse error before `{'

> when I have the following function

> void flash_query(void* data) __attribute__ ((section (".2ram.flash_query")))
> {
> 	// do something
> }

The attribute has to come before the function name, right. This 
should work:

void __attribute__ ((section (".2ram.flash_query"))) flash_query(void* data) 
{
	// do something
}

--Mark

  reply	other threads:[~2001-08-17  6:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-17  6:44 Jesper Skov
2001-08-17  6:55 ` Mark Salter [this message]
2001-08-17  7:05 Simpkins, Andy
2001-08-17  7:18 ` Mark Salter
2001-08-17  7:31 Simpkins, Andy
2001-08-17  7:36 ` Mark Salter
2001-08-17  7:42 Simpkins, Andy
2001-08-17  7:46 ` David Airlie
2001-08-17  7:46 ` Mark Salter
2001-08-17  8:24 Simpkins, Andy
2001-08-17  9:10 ` Jonathan Larmour
2001-08-17  9:24 Simpkins, Andy
2001-08-17  9:31 ` Jonathan Larmour
2001-08-17 10:13 ` Mark Salter
2001-08-17  9:33 Simpkins, Andy
2001-08-20  1:12 Simpkins, Andy
2001-08-20  6:25 ` Jonathan Larmour
2001-08-20  8:47 Simpkins, Andy

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=200108171355.f7HDtUZ20961@deneb.localdomain \
    --to=msalter@redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jskov@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).