Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4108181pxb; Tue, 2 Nov 2021 04:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZzJcyoBGPgWcHp9dI2VjADAmKG7WMJhs+xo4wdSFWufTSooXwAFpMk+hEvK0AFhTEmVki X-Received: by 2002:a05:6638:1383:: with SMTP id w3mr27053536jad.102.1635852108694; Tue, 02 Nov 2021 04:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635852108; cv=none; d=google.com; s=arc-20160816; b=Zham8nQ+3kKfgad67N0kahrlXZ5jqMkQMMnX+T5cK1ST6l4PSwEMG+hvqnjkMR9ltf OP+kD+VknZgKAPwVD6z/i4zFeEMJ51KoUHdGJQooR+9goeVKFyyRP3gd9K0M2PHPnni7 8J+8lHIg2QaDsBoH9Fi7+jhq1/ibRVRJwLpDn6XAK8ucrhncGSbQgfmVJ7GdyZOt3FtT bfcQ4q9Ra83N+s34HNnYDW2b6a28SlxY/smH3yVMiX7xwy5bW9gKZvc0VbOvlKY73djd DoLPkQTJgTz2IMo8tIYkXWtI/8OjeboxHso/Wkt0xFqi1Eq9HsQqt8D2VU06NmOpklZh mc6A== 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=9FG5GWFuqdAEkefBuy5rnOkbDGeJchChVFws3/VGbU4=; b=g9G1vIp+XpmH1x6udMKx7bVdgm+m5aYEHAqac5W9LvohuqHW8PgalMzmMjMTVtEc1r 1LE4SqNHaMsOboEFzOg7GLLLzKtSyrn+nzK5u/i8BQUSNXJz0PQvJvGZcZEywqfXmcjI /g1wlQLvU/cJdQg6/lrl6wKZh+BW080fkMi5M9NFKa40ewcntaedSTR7HqOUA5BdL+I7 xUtQUlFeSe1F8whfC2pSZQpMvyyKPzo18hgOsab5TYIAWS9HfMY9A7UcRKIlhWCqb9Tr idPCt0onfUyFDnR8uXPARUpGDtjofZep8H5iRChUTSI94gJWscRh4rRr7MZ5dmk7l3Q9 do/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=0cAjnAMq; 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 15si20156221ilt.5.2021.11.02.04.21.35; Tue, 02 Nov 2021 04:21:48 -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=0cAjnAMq; 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 S229848AbhKBLXK (ORCPT + 99 others); Tue, 2 Nov 2021 07:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbhKBLXJ (ORCPT ); Tue, 2 Nov 2021 07:23:09 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ACF4C061714 for ; Tue, 2 Nov 2021 04:20:35 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id e144so25035940iof.3 for ; Tue, 02 Nov 2021 04:20:35 -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=9FG5GWFuqdAEkefBuy5rnOkbDGeJchChVFws3/VGbU4=; b=0cAjnAMqxcCzUfiqoeKDBZ95MzkmZsw2t7RZrJBYUGFNo3aDFJ8nnCXr4ENXzZvBfJ 8vbdq6bPqD/XXnkgXpQ0PxEDzaChaZN5S9qSho3XW0NZyWiyIpknHev+2rC41BDobqDK 9YotmUrbz/op6afHfA2R/hNzNCUrgYvjxZIrtqXlQPR36rOhdexOeCEA7esZM+xmHyjD +/TrRQI/6p0gjzetXt1huazRCR1UHHnfh139y+DVr0cqw/PlvwSflTchFJvoc3EzwL6A dkEvTn2QXbcRYGdHQUQBQz7IH00VXavOSv7ZXtrKu6yXn/BWSTTkZFE2oP/x6Ip3gKhx MZPw== 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=9FG5GWFuqdAEkefBuy5rnOkbDGeJchChVFws3/VGbU4=; b=Gb5qg3uwFr609z0gfVXH+4GneWu5HPh5KWs80B7E22TsTrpZTp0l3t/zVoAx6+8iAm wMgQO7zT2wxkcG5YnlpjpWczTBewGYr/C8p1jKQ553anXBIYaTZJKTDTHx9eZJkDWi+F GkMdbJZh/3BywCC6dvN/pA+qoUUHvX/MyviJGeC7BawHFpV16ybSHyvdQ/p2OjkoCyyE EKY1o7B9t0rtrclVVfTtzlASCA+yPV3fbZpHdzgWol7LSPMnwJMyfEI4cvV77N25W+G3 /1qBzg84wAMNDKfq3t3/oQvF+dnvrRe+0xngGG0kNeRdZlmL99QbwbxZFwzp+1y0mrAf KrLA== X-Gm-Message-State: AOAM532rKckkZ+LAHX7ELYYpRbJIt2R7ZvsYeD3P1vKEqHvkmhkep2Yn OzFmzGaG4YnFeqWtgnHD4S6gydsFwstMm9kChkOy107M9+d33A== X-Received: by 2002:a02:ab8d:: with SMTP id t13mr4498176jan.94.1635852034819; Tue, 02 Nov 2021 04:20:34 -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:20:24 +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: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 error: > > > > 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_add_d= evices' > > 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. 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 intention fo= r 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