From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([212.27.42.2]:27114 "EHLO smtp2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbbLRM7y (ORCPT ); Fri, 18 Dec 2015 07:59:54 -0500 Subject: Re: Automatic device driver back-porting with media_build To: Mauro Carvalho Chehab Cc: linux-media , Hans Verkuil References: <5672A6F0.6070003@free.fr> <20151217105543.13599560@recife.lan> <5672BE15.9070006@free.fr> <20151217120830.0fc27f01@recife.lan> <5672C713.6090101@free.fr> <20151217125505.0abc4b40@recife.lan> <5672D5A6.8090505@free.fr> <20151217140943.7048811b@recife.lan> <5672EAD6.2000706@free.fr> <5673E393.8050309@free.fr> <20151218090345.623cef4c@recife.lan> <20151218092225.387cea22@recife.lan> <5673F7CF.9090605@free.fr> From: Mason Message-ID: <56740343.4000904@free.fr> Date: Fri, 18 Dec 2015 13:59:47 +0100 MIME-Version: 1.0 In-Reply-To: <5673F7CF.9090605@free.fr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: On 18/12/2015 13:10, Mason wrote: > On 18/12/2015 12:22, Mauro Carvalho Chehab wrote: > >> Patch applied. > > Great! Thanks. > > Using the latest media_build master + my writel_relaxed work-around, > compilation proceeds much further, then dies on device tree stuff: > (same error with vanilla and custom kernel) > > Will look into it. Any idea? :-( > > By the way, if I was not clear, I'm cross-compiling for an ARM platform. > > CC [M] /tmp/sandbox/media_build/v4l/v4l2-of.o > /tmp/sandbox/media_build/v4l/v4l2-of.c: In function 'v4l2_of_parse_csi_bus': > /tmp/sandbox/media_build/v4l/v4l2-of.c:38:4: error: implicit declaration of function 'of_prop_next_u32' [-Werror=implicit-function-declaration] > lane = of_prop_next_u32(prop, lane, &v); > ^ of_prop_next_u32() was introduced by commit c541adc637066 $ git describe --contains c541adc637066 v3.5-rc1~176^2~34 So it seems something needs to be done for kernels older than 3.5 I'll hack around it by adding static inline const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, u32 *pu) { return NULL; } What's the correct fix? > /tmp/sandbox/media_build/v4l/v4l2-of.c: In function 'v4l2_of_parse_link': > /tmp/sandbox/media_build/v4l/v4l2-of.c:287:24: warning: passing argument 1 of 'of_parse_phandle' discards 'const' qualifier from pointer target type > np = of_parse_phandle(node, "remote-endpoint", 0); > ^ Commit b8fbdc42c5c5d made the first parameter const. $ git describe --contains b8fbdc42c5c5d v3.8-rc1~105^2~13 I suppose I can live with the warning for now. Regards.