* [PATCH v2] xen/arm: fix build with HAS_PCI
@ 2025-06-10 14:22 Stewart Hildebrand
2025-06-10 14:29 ` Orzel, Michal
2025-06-10 15:51 ` Roger Pau Monné
0 siblings, 2 replies; 7+ messages in thread
From: Stewart Hildebrand @ 2025-06-10 14:22 UTC (permalink / raw)
To: xen-devel
Cc: Stewart Hildebrand, Stefano Stabellini, Julien Grall,
Bertrand Marquis, Michal Orzel, Volodymyr Babchuk,
Roger Pau Monné
In file included from ./include/xen/pci.h:72,
from drivers/pci/pci.c:8:
./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
131 | static inline int pci_sanitize_bar_memory(struct rangeset *r)
| ^~~~~~~~
cc1: all warnings being treated as errors
Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions")
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com>
---
v1->v2:
* forward declare instead of #include
---
xen/arch/arm/include/asm/pci.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/arm/include/asm/pci.h b/xen/arch/arm/include/asm/pci.h
index 1605ec660d0b..64f0e6ce7e3b 100644
--- a/xen/arch/arm/include/asm/pci.h
+++ b/xen/arch/arm/include/asm/pci.h
@@ -23,6 +23,8 @@
extern bool pci_passthrough_enabled;
+struct rangeset;
+
/* Arch pci dev struct */
struct arch_pci_dev {
struct device dev;
base-commit: 86a12671c5d33063b6f958bdcca7c9d14cd5aac8
--
2.49.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v2] xen/arm: fix build with HAS_PCI 2025-06-10 14:22 [PATCH v2] xen/arm: fix build with HAS_PCI Stewart Hildebrand @ 2025-06-10 14:29 ` Orzel, Michal 2025-06-10 15:51 ` Roger Pau Monné 1 sibling, 0 replies; 7+ messages in thread From: Orzel, Michal @ 2025-06-10 14:29 UTC (permalink / raw) To: Stewart Hildebrand, xen-devel Cc: Stefano Stabellini, Julien Grall, Bertrand Marquis, Volodymyr Babchuk, Roger Pau Monné On 10/06/2025 16:22, Stewart Hildebrand wrote: > In file included from ./include/xen/pci.h:72, > from drivers/pci/pci.c:8: > ./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > 131 | static inline int pci_sanitize_bar_memory(struct rangeset *r) > | ^~~~~~~~ > cc1: all warnings being treated as errors > > Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions") > Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Reviewed-by: Michal Orzel <michal.orzel@amd.com> ~Michal ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] xen/arm: fix build with HAS_PCI 2025-06-10 14:22 [PATCH v2] xen/arm: fix build with HAS_PCI Stewart Hildebrand 2025-06-10 14:29 ` Orzel, Michal @ 2025-06-10 15:51 ` Roger Pau Monné 2025-06-10 16:16 ` Stewart Hildebrand 1 sibling, 1 reply; 7+ messages in thread From: Roger Pau Monné @ 2025-06-10 15:51 UTC (permalink / raw) To: Stewart Hildebrand Cc: xen-devel, Stefano Stabellini, Julien Grall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk On Tue, Jun 10, 2025 at 10:22:57AM -0400, Stewart Hildebrand wrote: > In file included from ./include/xen/pci.h:72, > from drivers/pci/pci.c:8: > ./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > 131 | static inline int pci_sanitize_bar_memory(struct rangeset *r) > | ^~~~~~~~ > cc1: all warnings being treated as errors > > Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions") > Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Sorry, it was my fault. Would it make sense to introduce a Gitlab build that has HAS_PCI enabled? Or it won't build either without extra patches? Thanks, Roger. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] xen/arm: fix build with HAS_PCI 2025-06-10 15:51 ` Roger Pau Monné @ 2025-06-10 16:16 ` Stewart Hildebrand 2025-06-10 16:32 ` Roger Pau Monné 0 siblings, 1 reply; 7+ messages in thread From: Stewart Hildebrand @ 2025-06-10 16:16 UTC (permalink / raw) To: Roger Pau Monné Cc: xen-devel, Stefano Stabellini, Julien Grall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk On 6/10/25 11:51, Roger Pau Monné wrote: > On Tue, Jun 10, 2025 at 10:22:57AM -0400, Stewart Hildebrand wrote: >> In file included from ./include/xen/pci.h:72, >> from drivers/pci/pci.c:8: >> ./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] >> 131 | static inline int pci_sanitize_bar_memory(struct rangeset *r) >> | ^~~~~~~~ >> cc1: all warnings being treated as errors >> >> Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions") >> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> > > Sorry, it was my fault. No worries, it's pretty hard to catch when it can't be built without extra patches. > Would it make sense to introduce a Gitlab build that has HAS_PCI > enabled? Or it won't build either without extra patches? It requires one extra patch ("xen/arm: pci: introduce PCI_PASSTHROUGH Kconfig option"): https://lore.kernel.org/xen-devel/20231113222118.825758-1-stewart.hildebrand@amd.com/T/#t It has an ack, although it needs a rebase and we would probably want to add HAS_VPCI_GUEST_SUPPORT now that upstream has that config too. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] xen/arm: fix build with HAS_PCI 2025-06-10 16:16 ` Stewart Hildebrand @ 2025-06-10 16:32 ` Roger Pau Monné 2025-06-10 16:37 ` Andrew Cooper 0 siblings, 1 reply; 7+ messages in thread From: Roger Pau Monné @ 2025-06-10 16:32 UTC (permalink / raw) To: Stewart Hildebrand Cc: xen-devel, Stefano Stabellini, Julien Grall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk On Tue, Jun 10, 2025 at 12:16:42PM -0400, Stewart Hildebrand wrote: > On 6/10/25 11:51, Roger Pau Monné wrote: > > On Tue, Jun 10, 2025 at 10:22:57AM -0400, Stewart Hildebrand wrote: > >> In file included from ./include/xen/pci.h:72, > >> from drivers/pci/pci.c:8: > >> ./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > >> 131 | static inline int pci_sanitize_bar_memory(struct rangeset *r) > >> | ^~~~~~~~ > >> cc1: all warnings being treated as errors > >> > >> Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions") > >> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> > > > > Sorry, it was my fault. > > No worries, it's pretty hard to catch when it can't be built without > extra patches. > > > Would it make sense to introduce a Gitlab build that has HAS_PCI > > enabled? Or it won't build either without extra patches? > > It requires one extra patch ("xen/arm: pci: introduce PCI_PASSTHROUGH > Kconfig option"): > > https://lore.kernel.org/xen-devel/20231113222118.825758-1-stewart.hildebrand@amd.com/T/#t > > It has an ack, although it needs a rebase and we would probably want to > add HAS_VPCI_GUEST_SUPPORT now that upstream has that config too. I think it would be helpful to be able to do a Gitlab build with HAS_PCI enabled on ARM, otherwise it's inevitable for build issues to creep in sadly. Thanks, Roger. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] xen/arm: fix build with HAS_PCI 2025-06-10 16:32 ` Roger Pau Monné @ 2025-06-10 16:37 ` Andrew Cooper 2025-06-10 17:15 ` Roger Pau Monné 0 siblings, 1 reply; 7+ messages in thread From: Andrew Cooper @ 2025-06-10 16:37 UTC (permalink / raw) To: Roger Pau Monné, Stewart Hildebrand Cc: xen-devel, Stefano Stabellini, Julien Grall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk On 10/06/2025 5:32 pm, Roger Pau Monné wrote: > On Tue, Jun 10, 2025 at 12:16:42PM -0400, Stewart Hildebrand wrote: >> On 6/10/25 11:51, Roger Pau Monné wrote: >>> On Tue, Jun 10, 2025 at 10:22:57AM -0400, Stewart Hildebrand wrote: >>>> In file included from ./include/xen/pci.h:72, >>>> from drivers/pci/pci.c:8: >>>> ./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] >>>> 131 | static inline int pci_sanitize_bar_memory(struct rangeset *r) >>>> | ^~~~~~~~ >>>> cc1: all warnings being treated as errors >>>> >>>> Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions") >>>> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> >>> Sorry, it was my fault. >> No worries, it's pretty hard to catch when it can't be built without >> extra patches. >> >>> Would it make sense to introduce a Gitlab build that has HAS_PCI >>> enabled? Or it won't build either without extra patches? >> It requires one extra patch ("xen/arm: pci: introduce PCI_PASSTHROUGH >> Kconfig option"): >> >> https://lore.kernel.org/xen-devel/20231113222118.825758-1-stewart.hildebrand@amd.com/T/#t >> >> It has an ack, although it needs a rebase and we would probably want to >> add HAS_VPCI_GUEST_SUPPORT now that upstream has that config too. > I think it would be helpful to be able to do a Gitlab build with > HAS_PCI enabled on ARM, otherwise it's inevitable for build issues to > creep in sadly. This is what randconfig is for, and randconfig is active for arm64. If something is preventing this configuration from being picked, that ought to be fixed. But, ARM already has a lot (too many) unconditional builds of specific feature combinations, and I don't think we want more. ~Andrew ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] xen/arm: fix build with HAS_PCI 2025-06-10 16:37 ` Andrew Cooper @ 2025-06-10 17:15 ` Roger Pau Monné 0 siblings, 0 replies; 7+ messages in thread From: Roger Pau Monné @ 2025-06-10 17:15 UTC (permalink / raw) To: Andrew Cooper Cc: Stewart Hildebrand, xen-devel, Stefano Stabellini, Julien Grall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk On Tue, Jun 10, 2025 at 05:37:41PM +0100, Andrew Cooper wrote: > On 10/06/2025 5:32 pm, Roger Pau Monné wrote: > > On Tue, Jun 10, 2025 at 12:16:42PM -0400, Stewart Hildebrand wrote: > >> On 6/10/25 11:51, Roger Pau Monné wrote: > >>> On Tue, Jun 10, 2025 at 10:22:57AM -0400, Stewart Hildebrand wrote: > >>>> In file included from ./include/xen/pci.h:72, > >>>> from drivers/pci/pci.c:8: > >>>> ./arch/arm/include/asm/pci.h:131:50: error: ‘struct rangeset’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror] > >>>> 131 | static inline int pci_sanitize_bar_memory(struct rangeset *r) > >>>> | ^~~~~~~~ > >>>> cc1: all warnings being treated as errors > >>>> > >>>> Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole regions") > >>>> Signed-off-by: Stewart Hildebrand <stewart.hildebrand@amd.com> > >>> Sorry, it was my fault. > >> No worries, it's pretty hard to catch when it can't be built without > >> extra patches. > >> > >>> Would it make sense to introduce a Gitlab build that has HAS_PCI > >>> enabled? Or it won't build either without extra patches? > >> It requires one extra patch ("xen/arm: pci: introduce PCI_PASSTHROUGH > >> Kconfig option"): > >> > >> https://lore.kernel.org/xen-devel/20231113222118.825758-1-stewart.hildebrand@amd.com/T/#t > >> > >> It has an ack, although it needs a rebase and we would probably want to > >> add HAS_VPCI_GUEST_SUPPORT now that upstream has that config too. > > I think it would be helpful to be able to do a Gitlab build with > > HAS_PCI enabled on ARM, otherwise it's inevitable for build issues to > > creep in sadly. > > This is what randconfig is for, and randconfig is active for arm64. > > If something is preventing this configuration from being picked, that > ought to be fixed. But CONFIG_HAS_PCI is not user-selectable, it's one of those options that (usually?) gets selected as part of the per-arch Kconfig. > But, ARM already has a lot (too many) unconditional builds of specific > feature combinations, and I don't think we want more. Either it gets added to the default selection of ARM Kconfig options, or exposed there using a user-selectable option that would then be picked up by randconfig. Thanks, Roger. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-06-10 17:16 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-06-10 14:22 [PATCH v2] xen/arm: fix build with HAS_PCI Stewart Hildebrand 2025-06-10 14:29 ` Orzel, Michal 2025-06-10 15:51 ` Roger Pau Monné 2025-06-10 16:16 ` Stewart Hildebrand 2025-06-10 16:32 ` Roger Pau Monné 2025-06-10 16:37 ` Andrew Cooper 2025-06-10 17:15 ` Roger Pau Monné
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.