From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:35930 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbdJDUPq (ORCPT ); Wed, 4 Oct 2017 16:15:46 -0400 Date: Wed, 4 Oct 2017 22:15:09 +0200 From: Greg KH To: Stefano Stabellini Cc: Arnd Bergmann , stable@vger.kernel.org, Boris Ostrovsky , xen-devel@lists.xenproject.org, jgross@suse.com, krzk@kernel.org, Konrad Rzeszutek Wilk , David Vrabel , Stefano Stabellini , Andrii Anisov , Oleksandr Dmytryshyn , linux-kernel@vger.kernel.org Subject: Re: [PATCH] [STABLE-4.4, 3.18]: fix xen_swiotlb_dma_mmap prototype Message-ID: <20171004201509.GA3856@kroah.com> References: <20171004135140.3720000-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Wed, Oct 04, 2017 at 10:01:26AM -0700, Stefano Stabellini wrote: > On Wed, 4 Oct 2017, Arnd Bergmann wrote: > > xen_swiotlb_dma_mmap was backported from v4.10, but older > > kernels before commit 00085f1efa38 ("dma-mapping: use unsigned long > > for dma_attrs") use a different signature: > > > > arm/xen/mm.c:202:10: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] > > .mmap = xen_swiotlb_dma_mmap, > > ^~~~~~~~~~~~~~~~~~~~ > > arm/xen/mm.c:202:10: note: (near initialization for 'xen_swiotlb_dma_ops.mmap') > > > > This adapts the patch to the old calling conventions. > > > > Fixes: 2f0b82b1b830 ("swiotlb-xen: implement xen_swiotlb_dma_mmap callback") > > Signed-off-by: Arnd Bergmann > > Reviewed-by: Stefano Stabellini Thanks, I've added this tag to the patch. greg k-h