On Thu, 10 Sep 2015 11:39:37 +0200 Paolo Bonzini <[email protected]> wrote:
> cp_virtio is called for both the asm-s390/ and linux/ directories, > so it looks for pci_regs.h and input.h files in asm-s390/ too. This > makes little sense. In the next patch we will have the opposite > problem; we want to add asm-x86/hyperv.h, and there's also a > linux/hyperv.h file with unwanted dependencies on additional Linux > uapi headers. We do not want to copy linux/hyperv.h. > > The solution is to make cp_virtio (now renamed to cp_portable) copy > one file only, instead of using the "find" command, and call it multiple > times. The new function is really just a reindentation of the old one. > > Signed-off-by: Paolo Bonzini <[email protected]> > --- > scripts/update-linux-headers.sh | 69 > +++++++++++++++++++++-------------------- > 1 file changed, 36 insertions(+), 33 deletions(-) Reviewed-by: Cornelia Huck <[email protected]>
