Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756188Ab3IJAMx (ORCPT ); Mon, 9 Sep 2013 20:12:53 -0400 Received: from mail-qa0-f49.google.com ([209.85.216.49]:48398 "EHLO mail-qa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755850Ab3IJAMw (ORCPT ); Mon, 9 Sep 2013 20:12:52 -0400 MIME-Version: 1.0 In-Reply-To: <1378770719-24070-1-git-send-email-jon.mason@intel.com> References: <1378770719-24070-1-git-send-email-jon.mason@intel.com> Date: Mon, 9 Sep 2013 17:12:51 -0700 X-Google-Sender-Auth: 07qQQDdtIAqIPFdwLjtaNOJ92LE Message-ID: Subject: Re: [PATCH] dmadevices: dma_sync_wait and dma_find_channel undefined From: Dan Williams To: Jon Mason Cc: Dave Jiang , Vinod Koul , Linux Kernel Mailing List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 758 Lines: 19 On Mon, Sep 9, 2013 at 4:51 PM, Jon Mason wrote: > dma_sync_wait and dma_find_channel are declared regardless of whether > CONFIG_DMA_ENGINE is enabled, but calling the function without > CONFIG_DMA_ENGINE enabled results "undefined reference" errors. > > To get around this, declare dma_sync_wait and dma_find_channel as inline > functions if CONFIG_DMA_ENGINE is undefined. > > Signed-off-by: Jon Mason Applied with a s/dmadevices/dmaengine/ on the subject. -- Dan -- 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/