Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758660AbaJ3JyL (ORCPT ); Thu, 30 Oct 2014 05:54:11 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:39891 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758591AbaJ3JyH (ORCPT ); Thu, 30 Oct 2014 05:54:07 -0400 Message-ID: <54520ABC.3040305@imgtec.com> Date: Thu, 30 Oct 2014 09:54:04 +0000 From: Markos Chandras User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: James Hogan , Leonid Yegoshin , , , , , , , , , Subject: Re: [PATCH] MIPS: DMA: fix coherent alloc in non-coherent systems References: <20141030014753.13189.48344.stgit@linux-yegoshin> <54520969.8030900@imgtec.com> <54520A2D.5080304@imgtec.com> In-Reply-To: <54520A2D.5080304@imgtec.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.154.149] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/30/2014 09:51 AM, James Hogan wrote: > Hi Markos, > > On 30/10/14 09:48, Markos Chandras wrote: >>> diff --git a/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h b/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >>> index f9f4486..fe0b465 100644 >>> --- a/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >>> +++ b/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >>> @@ -52,7 +52,7 @@ static inline int plat_dma_supported(struct device *dev, u64 mask) >>> return 0; >>> } >>> >>> -static inline int plat_device_is_coherent(struct device *dev) >>> +static inline int plat_device_is_coherent(const struct device *dev) >> >> Why adding const here? >> > > > >> Is it just a matter of consistence with the rest of the interfaces? Do >> you need to move these into a separate patch since they don't quite fit >> here. > > See the new new call to plat_device_is_coherent(), which passes dev, > which is const. > > Cheers > James > Ah yes you are right. Thanks! -- markos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/