mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Confused about section type conflicts and __initdata
Date: Tue, 30 May 2006 14:37:20 -0400	[thread overview]
Message-ID: <d120d5000605301137h883eebi3c4ede13ab7ff3e1@mail.gmail.com> (raw)

Hi,

I am trying to declare dmi_ids in drivers/input/misc/wistron_btns.c as
__initdata but gcc keeps bitching about
"drivers/input/misc/wistron_btns.c:326: error: dmi_ids causes a
section type conflict" unless I also declare that variable as "const".
I checked GCC's assembler output and using "static const struct
dmi_system_id __initdata dmi_ids[] = {..." does indeed get it into
".init.data" section but comments in include/linux/init.h specifically
mention that the data can't be const... This is with GCC 3.4.4.

Anyone have any ideas, pretty please?

-- 
Dmitry

                 reply	other threads:[~2006-05-30 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=d120d5000605301137h883eebi3c4ede13ab7ff3e1@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®