From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [Linux-kernel] [PATCH] mmc: mmci: add missing include of mmci_qcom_dml.h Date: Thu, 16 Jun 2016 16:52:08 +0100 Message-ID: <1466092328.26723.13.camel@codethink.co.uk> References: <201606100156.EWHSQe2w%fengguang.wu@intel.com> <49d030df-f0b5-6bed-7f4c-a101b6e15752@codethink.co.uk> <1465911873.26723.3.camel@codethink.co.uk> <05d6c5c7-830c-7f00-7ab7-96ed5aa7a44d@codethink.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]:49816 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753919AbcFPPwN (ORCPT ); Thu, 16 Jun 2016 11:52:13 -0400 In-Reply-To: <05d6c5c7-830c-7f00-7ab7-96ed5aa7a44d@codethink.co.uk> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ben Dooks Cc: kbuild test robot , linux-kernel@lists.codethink.co.uk, linux-arm-kernel@lists.infadead.org, Ulf Hansson , linux-mmc@vger.kernel.org, kbuild-all@01.org On Thu, 2016-06-16 at 16:17 +0100, Ben Dooks wrote: > On 14/06/16 14:44, Ben Hutchings wrote: > > On Thu, 2016-06-09 at 18:45 +0100, Ben Dooks wrote: > > [...] > >> After looking at the build, it looks like this is broken > >> for the case of building mmci as a module. I think this is > >> the right fix. > >> > >> commit be3bf8f3b56d9cfb2fcba88e638ec853d0484cbb > >> Author: Ben Dooks > >> Date: Thu Jun 9 18:42:53 2016 +0100 > >> > >> mmci: fixup module build with new mmci_qcom_dml > >> > >> Fix the module build for the mmci code if it is built as > >> a module and the MMC_QCOM_DML option is also set. If so > >> then we need to build a composite module of the two files > >> to ensure they link properly. > >> > >> Signed-off-by: Ben Dooks > >> > >> diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile > >> index af918d2..b57db76 100644 > >> --- a/drivers/mmc/host/Makefile > >> +++ b/drivers/mmc/host/Makefile > >> @@ -3,7 +3,8 @@ > >> # > >> > >> obj-$(CONFIG_MMC_ARMMMCI) += mmci.o > >> -obj-$(CONFIG_MMC_QCOM_DML) += mmci_qcom_dml.o > >> +mmci-y += mmci_core.o > >> +mmci-$(subst m,y,$(CONFIG_MMC_QCOM_DML)) += mmci_qcom_dml.o > > [...] > > > > If mmci_core.o and mmci_qcom_dml.o will always be linked together then > > MMC_QCOM_DML should be a boolean and you don't need any substitution > > here. > > I'll try and check later, I somehow thought mmci-y and mmci-m wouldn't > build together. They won't; that's why you make MMC_QCOM_DML a boolean. Ben. -- Ben Hutchings Software Developer, Codethink Ltd.