From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH] KVM: introduce __kvm_io_bus_sort_cmp Date: Wed, 31 Jul 2013 10:06:27 +0200 Message-ID: <20130731100627.61194fec@gondolin> References: <1375196737-2264-1-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, gnatapov@redhat.com, kvm@vger.kernel.org To: Paolo Bonzini Return-path: In-Reply-To: <1375196737-2264-1-git-send-email-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, 30 Jul 2013 17:05:37 +0200 Paolo Bonzini wrote: > kvm_io_bus_sort_cmp is used also directly, not just as a callback for > sort and bsearch. In these cases, it is handy to have a type-safe > variant. This patch introduces such a variant, __kvm_io_bus_sort_cmp, > and uses it throughout kvm_main.c. > > Signed-off-by: Paolo Bonzini > --- > virt/kvm/kvm_main.c | 21 ++++++++++++--------- > 1 file changed, 12 insertions(+), 9 deletions(-) > Acked-by: Cornelia Huck