From mboxrd@z Thu Jan 1 00:00:00 1970 From: Saravana Kannan Subject: Re: [PATCH] of/platform: Add missing const qualifier in of_link_property Date: Wed, 31 Jul 2019 13:33:40 -0700 Message-ID: References: <20190729221101.228240-4-saravanak@google.com> <20190731181733.60422-1-natechancellor@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20190731181733.60422-1-natechancellor@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Nathan Chancellor Cc: David Collins , Jonathan Corbet , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Frank Rowand , Greg Kroah-Hartman , Android Kernel Team , Linux Doc Mailing List , LKML , Mark Rutland , "Rafael J. Wysocki" , Rob Herring , kbuild test robot List-Id: devicetree@vger.kernel.org On Wed, Jul 31, 2019 at 11:19 AM Nathan Chancellor 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 > Signed-off-by: Nathan Chancellor > --- > > 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