Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4126615pxb; Tue, 2 Nov 2021 04:42:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWOlYblvaVskPT2X5wFkCegKaFB/S3BN3GaRvm9aFP19TxCqNJYipnILYxrpKJ/la4Q28S X-Received: by 2002:a05:6402:b04:: with SMTP id bm4mr37280291edb.173.1635853348759; Tue, 02 Nov 2021 04:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635853348; cv=none; d=google.com; s=arc-20160816; b=o2/HBRyuIj0xj6b45IWNU2gB5nQTkjo7+BYpU8Xt/M5u08UpzCs/cA+vGLatvyzRPT EzJcdZtMq7EGgNPko0CQEZsLdPHsuCMe8X+uY0ca4yywBrh2qtuZtS5GGqM3eNgTq/YT hA4vjO7xi13C1Xwtup4OqboxgSI4BVuYRTILKDx3tcBQjWiopmGk8+6YnWcV/Iy9M4Kc Mtyf0k1kF+BnfxU1tLBkeCS75lfVztBD4kZt6WhtrWwp6+OeHe6rYmh5WOCcOsLy+Rkr wWRO5Ky9LDY/3kUgFpYesJQgGTQDQrep7JOgvyvVjKrkpJlz1s+XsHOQkwZozsVUsGcW 7ItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2R+yXj293966xAWPKmIcAFTeSjlx41a47gGv/u4xHXI=; b=vSnl3sumEigyaC3Ie48V33POUM1kaU8t1w6bNzkpVmy5ypjqWqmpM34LvPcPpXKyjM lYr94Fp1rPqnblsuii6yanTf8gVqsnAslbfIXwOKfDt9X/5RLaw/NA0wbQG4F63keBYz QP9c/aiKzHgr/SxjMzrV1KR+mx9z6DSHDXXcE/hhW2T/qFPBAY5H/Slt2ihQ9n67bRKm Psq0J2S+5IE0F40a4siXHGVIVTYE1tfFYNNONwQTDME4L8rz2hpTYDq7DdjNJmgY4yaz rVRN8cNKTPZIXfz0eMTjevcmipXgOJvrtGFQZH2H2m0twDmby5g+VrDVpuYTaD6Yx3OR S1UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=lwQpy5Yx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gm1si34593791ejc.106.2021.11.02.04.42.04; Tue, 02 Nov 2021 04:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=lwQpy5Yx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbhKBLkm (ORCPT + 99 others); Tue, 2 Nov 2021 07:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbhKBLkl (ORCPT ); Tue, 2 Nov 2021 07:40:41 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01687C061714 for ; Tue, 2 Nov 2021 04:38:07 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id p204so13461538iod.8 for ; Tue, 02 Nov 2021 04:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=2R+yXj293966xAWPKmIcAFTeSjlx41a47gGv/u4xHXI=; b=lwQpy5YxbAyQ3Zur1kQw9Xod0FrG6ggiBvmHmDdOzlSvZMhVfuhlNKWegUaSMQHm/E HVPmuxHjSm4ZZaFp7WrEaOL74CkXmdwkOf39mW5PetdddzDeIe5SPL5sOrOXl9UyNBLZ Fn5xtSo8mkTH0O4Jar7UWHCVuhrgM0svbuvPxHFbSSpWcTTpzI4RdO+ekYSjs0/ztxsr JsID5YTyb3/ctUsjK27+hZGvcqRY94kvW4JRSc54v8fAszSyo6sMRRw+xcIROnEpQn6F qYmpLOUaaNTsahRxsCDGqCrIQOtLQll6UrNyl6kqwPfeX5e2N+XVB2nwHMKuBZuHuP+0 /F4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=2R+yXj293966xAWPKmIcAFTeSjlx41a47gGv/u4xHXI=; b=NnLRNAHAYB4WjW57fKDbKBqFW6UosSlRJrm1poVmIWDwVm/bp5uIK2XNXTBQN8l5/E nZKCx3NDY9H2Me/EoU9OlZgoYMDGNVysBGnp4kHcEX9LA4vqLBeHygXNhl0ywTcXXDnq T8wN/W76k+RKuObl3WDWxUn29SyEm7lvoE/YWTCXl4n/p8N6fNSkk8ObhgQewuKFk4Hc dszXGOheqXzt55/2CIOoTEvhxUPjZCkwFAM1ZJRvETesTSFzWjRuIxiXe5dmzUVi5M6f VD95pGPjUoO4uWjwfcBVMcuejAh3c18L/7XhQm6P9t5UQISNGbeiyJv8FJu/T6r+EY7v zcyg== X-Gm-Message-State: AOAM530Z2KpKAX7M6ibsRMJQDuPQXW6DVfP+TjgUV5zwj4I0oiUVBLR+ d5yqRTmSE4mO5uG1M+cS6Y6DsXy71BpC+7koFkbnYff9vpZSOA== X-Received: by 2002:a5d:994f:: with SMTP id v15mr26631778ios.88.1635853086482; Tue, 02 Nov 2021 04:38:06 -0700 (PDT) MIME-Version: 1.0 References: <20211102100420.112215-1-robert.marko@sartura.hr> In-Reply-To: From: Robert Marko Date: Tue, 2 Nov 2021 12:37:55 +0100 Message-ID: Subject: Re: [PATCH] mfd: simple-mfd-i2c: Select MFD_CORE to fix build error To: Lee Jones Cc: Michael Walle , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 2, 2021 at 12:35 PM Lee Jones wrote: > > On Tue, 02 Nov 2021, Robert Marko wrote: > > > On Tue, Nov 2, 2021 at 12:17 PM Lee Jones wrote: > > > > > > On Tue, 02 Nov 2021, Robert Marko wrote: > > > > > > > MFD_SIMPLE_MFD_I2C should select the MFD_CORE to a prevent build er= ror: > > > > > > > > aarch64-linux-ld: drivers/mfd/simple-mfd-i2c.o: in function `simple= _mfd_i2c_probe': > > > > drivers/mfd/simple-mfd-i2c.c:55: undefined reference to `devm_mfd_a= dd_devices' > > > > > > What is your use-case? > > > > > > How are you enabling this symbol? > > > > Hi Lee, > > I am adding a symbol like MFD_SL28CPLD does that you can depend on and > > that simply > > selects the MFD_SIMPLE_MFD_I2C and I have hit this issue since the > > MFD_CORE is not selected. > > That's interesting. > > I wonder how MFD_SL28CPLD selects it? It doesn't, it just selects MFD_SIMPLE_MFD_I2C MFD_CORE is probably selected by something else masking this issue. Regards, Robert > > > > > Fixes: 3abee4579484 ("mfd: Add simple regmap based I2C driver") > > > > Signed-off-by: Robert Marko > > > > --- > > > > drivers/mfd/Kconfig | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > > > > index 61992edf6a4d..2de69892b631 100644 > > > > --- a/drivers/mfd/Kconfig > > > > +++ b/drivers/mfd/Kconfig > > > > @@ -1204,6 +1204,7 @@ config MFD_SI476X_CORE > > > > config MFD_SIMPLE_MFD_I2C > > > > tristate > > > > depends on I2C > > > > + select MFD_CORE > > > > select REGMAP_I2C > > > > help > > > > This driver creates a single register map with the intentio= n for it > > > > > > > > > > > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Senior Technical Lead - Developer Services > Linaro.org =E2=94=82 Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog --=20 Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: robert.marko@sartura.hr Web: www.sartura.hr