From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965289AbdIZGKY (ORCPT ); Tue, 26 Sep 2017 02:10:24 -0400 Received: from verein.lst.de ([213.95.11.211]:55737 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935258AbdIZGKV (ORCPT ); Tue, 26 Sep 2017 02:10:21 -0400 Date: Tue, 26 Sep 2017 08:10:19 +0200 From: Christoph Hellwig To: =?utf-8?B?6ZmI5Y2O5omN?= Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Andrew Morton , Fuxin Zhang , linux-kernel , Ralf Baechle , James Hogan , linux-mips , "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi , Roland Dreier , Pawel Osciak , Kyungmin Park , Michael Chan , Benjamin Herrenschmidt , Ivan Mikhaylov , Tariq Toukan , Andy Gross , "Mark A . Greer" , Robert Baldyga , stable Subject: Re: [PATCH V7 1/2] dma-mapping: Rework dma_get_cache_alignment() Message-ID: <20170926061019.GA6416@lst.de> References: <1506332766-23966-1-git-send-email-chenhc@lemote.com> <20170925125107.GC8130@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 26, 2017 at 09:48:01AM +0800, 陈华才 wrote: > Hi, Christoph, > > Can I put the declaration in asm/dma-coherence.h? Generally something not expose to the rest of the kernel (that is not in arch/mips/include/) would be preferred, but in the end the architecture maintainer will have to decide. > And, last time you said it is OK to pass a NULL to dma_get_cache_alignment() and cc all driver maintainers. I have do so. No, I asked you to converted everything to pass the struct device and cc the driver maintainers.