Thread (9 messages) flat view 9 messages, 3 authors, 2016-10-24

[PATCH V7 4/4] dmaengine: qcom_hidma: add MSI support for interrupts

From: Sinan Kaya <hidden>
Date: 2016-10-24 02:55:36
Also in: linux-arm-msm, linux-devicetree, lkml

On 10/21/2016 12:11 PM, Andy Shevchenko wrote:
quoted
+static void hidma_free_msis(struct hidma_dev *dmadev)
quoted
+{
+#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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help