mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: shawn.guo@freescale.com
Cc: shawn.guo@linaro.org, devicetree-discuss@lists.ozlabs.org,
	linux-kernel@vger.kernel.org, patches@linaro.org
Subject: Re: [PATCH] dt: add of_alias_scan and of_alias_get_id
Date: Sun, 14 Aug 2011 23:35:59 -0700 (PDT)	[thread overview]
Message-ID: <20110814.233559.1395275660949133114.davem@davemloft.net> (raw)
In-Reply-To: <20110815063643.GI7244@S2100-06.ap.freescale.net>

From: Shawn Guo <shawn.guo@freescale.com>
Date: Mon, 15 Aug 2011 14:36:44 +0800

> @@ -245,4 +245,11 @@ void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops)
>         nextp = &allnodes->allnext;
>         allnodes->child = of_pdt_build_tree(allnodes,
>                         of_pdt_prom_ops->getchild(allnodes->phandle), &nextp);
> +
> +       /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */
> +       of_chosen = of_find_node_by_path("/chosen");
> +       if (of_chosen == NULL)
> +               of_chosen = of_find_node_by_path("/chosen@0");
> +       of_aliases = of_find_node_by_path("/aliases");
> +       of_alias_scan(dt_alloc);
>  }

There is no dt_alloc variable visible in this function.

I didn't need to use a compiler to find this problem, and neither
do you.

  reply	other threads:[~2011-08-15  6:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15  1:30 Shawn Guo
2011-08-15  5:43 ` David Miller
2011-08-15  6:07   ` Shawn Guo
2011-08-15  6:05     ` David Miller
2011-08-15  6:36       ` Shawn Guo
2011-08-15  6:35         ` David Miller [this message]
2011-08-15  6:47           ` Shawn Guo
2011-08-15  6:45         ` Shawn Guo
2011-08-15  7:28 ` [PATCH v2] " Shawn Guo
2011-09-19 15:18   ` Shawn Guo
2011-09-21 20:35   ` Grant Likely
2011-09-21 20:46 [PATCH] " Grant Likely
2011-09-21 20:55 ` David Miller
2011-09-22  6:53 ` Shawn Guo
2011-09-22 17:06   ` Grant Likely

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=20110814.233559.1395275660949133114.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@linaro.org \
    --cc=shawn.guo@freescale.com \
    --cc=shawn.guo@linaro.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®