From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756977AbcJXCzg (ORCPT ); Sun, 23 Oct 2016 22:55:36 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35210 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756116AbcJXCzf (ORCPT ); Sun, 23 Oct 2016 22:55:35 -0400 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org D514E61B0D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH V7 4/4] dmaengine: qcom_hidma: add MSI support for interrupts To: Andy Shevchenko References: <1477067879-23750-1-git-send-email-okaya@codeaurora.org> <1477067879-23750-5-git-send-email-okaya@codeaurora.org> Cc: dmaengine , Timur Tabi , devicetree , Christopher Covington , Vinod Koul , Jon Masters , Andy Gross , Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-arm Mailing List , Dan Williams , Dave Jiang , Lars-Peter Clausen , "linux-kernel@vger.kernel.org" From: Sinan Kaya Message-ID: <36163853-ac4a-e146-0c1b-eaf42e8b234d@codeaurora.org> Date: Sun, 23 Oct 2016 19:55:29 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/21/2016 12:11 PM, Andy Shevchenko wrote: >> +static void hidma_free_msis(struct hidma_dev *dmadev) >> > +{ >> > +#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN > Perhaps one #ifdef and two definitions of functions? I don't think it will make a difference. I'll have to move #ifdef around the caller of hidma_free_msis instead which I think is uglier. The hidma_write_msi_msg function gets called only when CONFIG_GENERIC_MSI_IRQ_DOMAIN is defined. If I don't put this around the function definition, I get unused function warning from the compiler. This is the reason why preprocessor definition is outside of the function definition. -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.