|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v5 1/5] vPCI: introduce private header
On 03.03.2026 17:44, Roger Pau Monné wrote: > On Wed, Feb 25, 2026 at 12:43:01PM +0100, Jan Beulich wrote: >> Before adding more private stuff to xen/vpci.h, split it up. In order to >> be able to include the private header first in a CU, the per-arch struct >> decls also need to move (to new asm/vpci.h files). >> >> While adjusting the test harness'es Makefile, also switch the pre-existing >> header symlink-ing rule to a pattern one. >> >> Apart from in the test harness code, things only move; no functional >> change intended. >> >> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> > > Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Thanks. >> --- a/tools/tests/vpci/Makefile >> +++ b/tools/tests/vpci/Makefile >> @@ -14,12 +14,12 @@ else >> $(warning HOSTCC != CC, will not run test) >> endif >> >> -$(TARGET): vpci.c vpci.h list.h main.c emul.h >> - $(CC) $(CFLAGS_xeninclude) -g -o $@ vpci.c main.c >> +$(TARGET): vpci.c vpci.h list.h private.h main.c emul.h >> + $(CC) $(CFLAGS_xeninclude) -include emul.h -g -o $@ vpci.c main.c >> >> .PHONY: clean >> clean: >> - rm -rf $(TARGET) *.o *~ vpci.h vpci.c list.h >> + rm -rf $(TARGET) *.o *~ vpci.h vpci.c list.h private.h >> >> .PHONY: distclean >> distclean: clean >> @@ -34,10 +34,10 @@ uninstall: >> $(RM) -- $(DESTDIR)$(LIBEXEC)/tests/$(TARGET) >> >> vpci.c: $(XEN_ROOT)/xen/drivers/vpci/vpci.c >> - # Remove includes and add the test harness header >> - sed -e '/#include/d' -e '1s/^/#include "emul.h"/' <$< >$@ >> + sed -e '/#include/d' <$< >$@ >> + >> +private.h: %.h: $(XEN_ROOT)/xen/drivers/vpci/%.h >> + sed -e '/#include/d' <$< >$@ > > Nit: if you are changing/adding those we might as well do > /^#[[:space:]]*include/d, as sometimes we add spaces if the header > inclusion is conditional. Editing these two like you say would leave an inconsistency with what's further down (and what isn't being touched). I think I'd hence prefer that to be a separate change. Nevertheless, I agree with the intention. Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |