public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: "Priebe,
	Sebastian"
	<Sebastian.Priebe-hnW+OuB6jW6zQB+pC5nmwQ@public.gmane.org>
Cc: "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: core command line parameters with dt
Date: Fri, 1 Aug 2014 15:12:22 +0100	[thread overview]
Message-ID: <20140801141222.GG22994@leverpostej> (raw)
In-Reply-To: <E70AF999396FDF4EAE40E195B84709611F8471EA-VHQhki0MIenpQFNhCJRnZ0Yy6alPw7Wn0MAMd6zgKLc@public.gmane.org>

On Fri, Aug 01, 2014 at 02:55:42PM +0100, Priebe, Sebastian wrote:
> Hello,
> 
> I want to use kernel command line parameters within my machine file.
> If I use the __setup macro I get the following build error:
> error: __setup_str_model_bt causes a section type conflict with myboard_dt_board_compat
> 
> static const char *myboard_dt_board_compat[] __initconst = {
>         "vendor,model",
>         NULL
> };

You have a section mismatch because your code evidently doesn't live in
an init section, but is trying to access data which does. The fact that
the data happens to be a list of compatible strings is irrelevant, and
this is in no way related to dt.

Figure out whether your function should live in an init section or if
the data should not. Make sure that you don't reference anything in init
section from anything else which does not itself live in an init
section. That will solve your build issue.

The name of the function sounds suspicious to begin with from a DT
perspective. You shouldn't need to override DT properties from the
command line.

Thanks,
Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-08-01 14:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 13:55 core command line parameters with dt Priebe, Sebastian
     [not found] ` <E70AF999396FDF4EAE40E195B84709611F8471EA-VHQhki0MIenpQFNhCJRnZ0Yy6alPw7Wn0MAMd6zgKLc@public.gmane.org>
2014-08-01 14:12   ` Mark Rutland [this message]
2014-08-01 14:39     ` AW: " Priebe, Sebastian

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=20140801141222.GG22994@leverpostej \
    --to=mark.rutland-5wv7dgnigg8@public.gmane.org \
    --cc=Sebastian.Priebe-hnW+OuB6jW6zQB+pC5nmwQ@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.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