All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saravana Kannan <saravanak@google.com>
To: Nathan Chancellor <natechancellor@gmail.com>
Cc: David Collins <collinsd@codeaurora.org>,
	Jonathan Corbet <corbet@lwn.net>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 
	<devicetree@vger.kernel.org>,
	Frank Rowand <frowand.list@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Android Kernel Team <kernel-team@android.com>,
	Linux Doc Mailing List <linux-doc@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	kbuild test robot <lkp@intel.com>
Subject: Re: [PATCH] of/platform: Add missing const qualifier in of_link_property
Date: Wed, 31 Jul 2019 13:33:40 -0700	[thread overview]
Message-ID: <CAGETcx9LXP9b_W_1XQFmjODPJVrbnU+vH1RKer2i=jU7Q7EADg@mail.gmail.com> (raw)
In-Reply-To: <20190731181733.60422-1-natechancellor@gmail.com>

On Wed, Jul 31, 2019 at 11:19 AM Nathan Chancellor
<natechancellor@gmail.com> wrote:
>
> Clang errors:
>
> drivers/of/platform.c:632:28: error: initializing 'struct
> supplier_bindings *' with an expression of type 'const struct
> supplier_bindings [4]' discards qualifiers
> [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>         struct supplier_bindings *s = bindings;
>                                   ^   ~~~~~~~~
> 1 error generated.
>
> Fixes: 05f812549f53 ("of/platform: Add functional dependency link from DT bindings")
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
> ---
>
> Given this is still in the driver-core-testing branch, I am fine with
> this being squashed in if desired.
>
>  drivers/of/platform.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/of/platform.c b/drivers/of/platform.c
> index e2da90e53edb..21838226d68a 100644
> --- a/drivers/of/platform.c
> +++ b/drivers/of/platform.c
> @@ -629,7 +629,7 @@ static bool of_link_property(struct device *dev, struct device_node *con_np,
>                              const char *prop)
>  {
>         struct device_node *phandle;
> -       struct supplier_bindings *s = bindings;
> +       const struct supplier_bindings *s = bindings;
>         unsigned int i = 0;
>         bool done = true, matched = false;

Odd. I never got that email. Thanks for fixing this. I'll squash it
into my patch series since I have a bunch of other kbuild errors about
documentation.

-Saravana

  reply	other threads:[~2019-07-31 20:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-29 22:10 [PATCH v8 0/7] Solve postboot supplier cleanup and optimize probe ordering Saravana Kannan
2019-07-29 22:10 ` [PATCH v8 1/7] driver core: Add support for linking devices during device addition Saravana Kannan
2019-07-29 22:10 ` [PATCH v8 2/7] driver core: Add edit_links() callback for drivers Saravana Kannan
2019-07-29 22:10 ` [PATCH v8 3/7] of/platform: Add functional dependency link from DT bindings Saravana Kannan
2019-07-31 18:17   ` [PATCH] of/platform: Add missing const qualifier in of_link_property Nathan Chancellor
2019-07-31 20:33     ` Saravana Kannan [this message]
2019-07-31 20:33       ` Saravana Kannan
2019-07-31 20:37       ` Nathan Chancellor
2019-07-31 20:37         ` Nathan Chancellor
2019-07-29 22:10 ` [PATCH v8 4/7] driver core: Add sync_state driver/bus callback Saravana Kannan
2019-07-29 22:10 ` [PATCH v8 5/7] of/platform: Pause/resume sync state during init and of_platform_populate() Saravana Kannan
2019-07-29 22:11 ` [PATCH v8 6/7] of/platform: Create device links for all child-supplier depencencies Saravana Kannan
2019-07-29 22:11 ` [PATCH v8 7/7] of/platform: Don't create device links for default busses Saravana Kannan
2019-07-30  1:20 ` [PATCH v8 0/7] Solve postboot supplier cleanup and optimize probe ordering Rob Herring

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='CAGETcx9LXP9b_W_1XQFmjODPJVrbnU+vH1RKer2i=jU7Q7EADg@mail.gmail.com' \
    --to=saravanak@google.com \
    --cc=collinsd@codeaurora.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel-team@android.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mark.rutland@arm.com \
    --cc=natechancellor@gmail.com \
    --cc=rafael@kernel.org \
    --cc=robh+dt@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 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.