Received: from eggs.gnu.org ([2001:4830:134:3::10]:35511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZzCW-00034V-Op for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:35:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZzCT-0004z6-Ik for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:35:32 -0400 Received: from e06smtp09.uk.ibm.com ([195.75.94.105]:33129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZzCT-0004yp-8N for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:35:29 -0400 Received: from /spool/local by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 10 Sep 2015 11:35:25 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 312991B08067 for ; Thu, 10 Sep 2015 11:35:23 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t8AAXibb38666406 for ; Thu, 10 Sep 2015 10:33:44 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t8AAXiLX015868 for ; Thu, 10 Sep 2015 04:33:44 -0600 Date: Thu, 10 Sep 2015 12:33:43 +0200 From: Cornelia Huck Message-ID: <20150910123343.01a8a280.cornelia.huck@de.ibm.com> In-Reply-To: <1441877978-31156-4-git-send-email-pbonzini@redhat.com> References: <1441877978-31156-1-git-send-email-pbonzini@redhat.com> <1441877978-31156-4-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 3/4] update-linux-headers: copy standard-headers files one by one List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, mst@redhat.com On Thu, 10 Sep 2015 11:39:37 +0200 Paolo Bonzini 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 > --- > scripts/update-linux-headers.sh | 69 +++++++++++++++++++++-------------------- > 1 file changed, 36 insertions(+), 33 deletions(-) Reviewed-by: Cornelia Huck