From: Julien Grall <julien.grall@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>,
Julien Grall <julien.grall@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
tim@xen.org, Julien Grall <julien.grall@linaro.org>,
Ian Jackson <ian.jackson@eu.citrix.com>,
stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org
Subject: Re: [PATCH v6 14/19] tools/libxl: Check if fdt_{first, next}_subnode are present in libfdt
Date: Fri, 8 May 2015 15:49:24 +0100 [thread overview]
Message-ID: <554CCCF4.10606@citrix.com> (raw)
In-Reply-To: <1431095241.2660.482.camel@citrix.com>
On 08/05/15 15:27, Ian Campbell wrote:
> On Tue, 2015-04-28 at 15:32 +0100, Julien Grall wrote:
>> From: Julien Grall <julien.grall@linaro.org>
>>
>> The functions fdt_{fisrt,next}_subnode may not be available because:
>> * It has been introduced in 2013 => Doesn't work on Wheezy
>> * The prototype exists but the functions are not exposed. Don't ask
>> why...
>>
>> The later has been fixed recently in the dtc repo [1]
>>
>> When the functions are not available, implement our own in order to use
>> them in a following patch.
>>
>> [1] git://git.kernel.org/pub/scm/utils/dtc/dtc.git
>> commit a4b093f7366fdb429ca1781144d3985fa50d0fbb
>>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
>> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>> Cc: Wei Liu <wei.liu2@citrix.com>
>>
>> ---
>> tools/configure needs to be regenerate as this patch is modifying
>> tools/configure.ac
>
> Even with that I get on both 32 and 64-bit:
>
> arm32:
>
> libxl_libfdt_compat.c:63:5: error: no previous declaration for ‘fdt_first_subnode’ [-Werror=missing-declarations]
> libxl_libfdt_compat.c:76:5: error: no previous declaration for ‘fdt_next_subnode’ [-Werror=missing-declarations]
> cc1: all warnings being treated as errors
>
> arm64:
>
> libxl_libfdt_compat.c:63:5: error: no previous declaration for 'fdt_first_subnode' [-Werror=missing-declarations]
> int fdt_first_subnode(const void *fdt, int offset)
> ^
> libxl_libfdt_compat.c:76:5: error: no previous declaration for 'fdt_next_subnode' [-Werror=missing-declarations]
> int fdt_next_subnode(const void *fdt, int offset)
> ^
> cc1: all warnings being treated as errors
>
> Is a file missing? I expected some compat in a .h file too.
I forgot to test it on a platform where the function is not present in
both the header and the library.
I will see if I can detect via the configure when the function is not
present in the headers.
Regards,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-05-08 14:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 14:32 [PATCH v6 00/19] xen/arm: Add support for non-PCI passthrough Julien Grall
2015-04-28 14:32 ` [PATCH v6 01/19] xen/arm: Let the toolstack configure the number of SPIs Julien Grall
2015-04-28 14:32 ` [PATCH v6 02/19] xen/arm: vgic: Add spi_to_pending Julien Grall
2015-04-28 14:32 ` [PATCH v6 03/19] xen/arm: Release IRQ routed to a domain when it's destroying Julien Grall
2015-04-28 14:32 ` [PATCH v6 04/19] xen/arm: Implement hypercall DOMCTL_{, un}bind_pt_pirq Julien Grall
2015-04-28 14:32 ` [PATCH v6 05/19] xen: guestcopy: Provide an helper to safely copy string from guest Julien Grall
2015-04-28 14:32 ` [PATCH v6 06/19] xen/dts: Provide an helper to get a DT node from a path provided by a guest Julien Grall
2015-04-28 14:32 ` [PATCH v6 07/19] xen/passthrough: Introduce iommu_construct Julien Grall
2015-04-29 0:07 ` Manish Jaggi
2015-04-28 14:32 ` [PATCH v6 08/19] xen/passthrough: arm: release the DT devices assigned to a guest earlier Julien Grall
2015-04-28 14:32 ` [PATCH v6 09/19] xen/passthrough: iommu_deassign_device_dt: By default reassign device to nobody Julien Grall
2015-04-28 14:32 ` [PATCH v6 10/19] xen/iommu: arm: Wire iommu DOMCTL for ARM Julien Grall
2015-04-28 14:32 ` [PATCH v6 11/19] xen/xsm: Add helpers to check permission for device tree passthrough Julien Grall
2015-04-28 14:32 ` [PATCH v6 12/19] xen/passthrough: Extend XEN_DOMCTL_*assign_device to support DT device Julien Grall
2015-04-28 14:32 ` [PATCH v6 13/19] tools/libxl: Create a per-arch function to map IRQ to a domain Julien Grall
2015-04-28 14:32 ` [PATCH v6 14/19] tools/libxl: Check if fdt_{first, next}_subnode are present in libfdt Julien Grall
2015-05-08 14:27 ` Ian Campbell
2015-05-08 14:49 ` Julien Grall [this message]
2015-04-28 14:32 ` [PATCH v6 15/19] tools/(lib)xl: Add partial device tree support for ARM Julien Grall
2015-04-28 14:32 ` [PATCH v6 16/19] tools/libxl: arm: Use an higher value for the GIC phandle Julien Grall
2015-04-28 14:32 ` [PATCH v6 17/19] libxl: Add support for Device Tree passthrough Julien Grall
2015-04-28 14:32 ` [PATCH v6 18/19] xl: Add new option dtdev Julien Grall
2015-04-28 14:32 ` [PATCH v6 19/19] docs/misc: arm: Add documentation about Device Tree passthrough Julien Grall
2015-05-08 13:48 ` [PATCH v6 00/19] xen/arm: Add support for non-PCI passthrough Ian Campbell
2015-05-08 13:59 ` Jan Beulich
2015-05-08 14:20 ` Ian Campbell
2015-05-08 15:01 ` Ian Campbell
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=554CCCF4.10606@citrix.com \
--to=julien.grall@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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.