Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4122902pxb; Tue, 2 Nov 2021 04:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5Cklx4mKKjLIfioHYt8W4285riB3PfYYJ45phUwvimjeFfTkF6FQzidAOV00q2MdR6yb/ X-Received: by 2002:a05:6402:2207:: with SMTP id cq7mr47163544edb.7.1635853095824; Tue, 02 Nov 2021 04:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635853095; cv=none; d=google.com; s=arc-20160816; b=GDkdevBjgZcjwoPDyQMTaV3L4mYHdkmBpgkoLBvfa9pe3sfAz9ghqqOQQVNzmLg5lH vzLO5l5DnuLHnUBhPOVE89PRnG1IyTncN25rFtYa7YeCLI+y0S7N5sTiZTF3Dj1vyeKB iLpi5CwpBSsR1UEea4CiOAztIsGPL9NkZv75XKGylh4nHGuMfzu04MoEZr/v2dMK4eYM BO5SSOHHyLWdc1SYvA1l8ozH0UPaf3aepqc0BrClikHb73gpXvt124WshG5VnmRVzEo1 difZ0lU8UmRSdXaPoi1Xy3W/8upvpqkdns1jGnEjJYpBLM1k9ItsOARwMN410wxNqHLQ uIhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iXMDpVo/VqxPDA0RVpwteprivF25APv9kHY1xfQB2HA=; b=hNHoqxxF5DR5ALfYZgFuC1639jmGeZP8cEE6V2qpV38V4ER7e6MzE2fX9qin9DJgxL q9NBYotYqdfWg/WrczyqrbhHH1lUEB0UeiLPzHIE+xZIMSl5JSliQEXOLQxuNeL/FFMe nqEscyhvuNHPUUCau8UbkPeuph63pnKf/ukpouHOjLQqEh+HdKG1k2jL2EqHgNJhtcdR r1gocPV2KhB0MPXIyH6+QpjsZkjHk6pBr+SSLTf50hPlzJ31c1B8HrwAfraRJr2Y3tzu C41/Sqm+dJ3g57hHATB5Bo3mXar5xmgEW4yxj3xVJssbVZU2DGAR4bh2d5pbOfovdb+e Ywig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bEeYjwGr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs5si31397354ejc.359.2021.11.02.04.37.50; Tue, 02 Nov 2021 04:38:15 -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=@linaro.org header.s=google header.b=bEeYjwGr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbhKBLiU (ORCPT + 99 others); Tue, 2 Nov 2021 07:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbhKBLiS (ORCPT ); Tue, 2 Nov 2021 07:38:18 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F38ADC061714 for ; Tue, 2 Nov 2021 04:35:43 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id d27so14813967wrb.6 for ; Tue, 02 Nov 2021 04:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=iXMDpVo/VqxPDA0RVpwteprivF25APv9kHY1xfQB2HA=; b=bEeYjwGrd/B4EBJr1surlk88VeoJAauC5hKU/jOczSmaHNzxzzowdcFV0S9vr154WT lYy9Fc5idEH2PEt/8arvfEAabjUCZmS+rR+0zjhkxz4M305qOOfwL/AGFMdy7nJ+cJqy 660GKg/D4PD5FHPKBUB8w/Td5UJsL306jON0HGcpUC4/I1I0W7biCA3bO741qak+dTy5 jiyFixF8I5GVUOVxymFXZjFoxGBGM6NN9rNVrO66kc/GhogfUHPDJPlhQtvkZdv0nNIX 5Q8iw/egCrHgrYJiaBFjUE+CrhLC+tGGvNmz1iuOaIMs3yFC3s0Leucf2Gsk7m45BK1l elhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=iXMDpVo/VqxPDA0RVpwteprivF25APv9kHY1xfQB2HA=; b=S/PO9IY1KTgwcLDgX0wLhmF0EKQ7XyIO21LcdkOrQqQbWut4Zvn4BB2/9Q+CodANwR +4FDWu66kU8CnP3chqNmOqxWsEzzch4/0M/MaX8NuG2dsORQvj8DWPaklEZOhcXDfoly Yja/+JSBb3ojbFTI+noUxy4htbTGTgiNsY8+xFsUI84HDfsPp2UUED9OPIxKY5gRKBuH Yv3onLrfg9Fs0gDoX/5CLQaYqNm3egfv0GJpJB8mr8P23ci3AjNd5iv1ZpgsQB5xM/SW aC5llXbPjgzzy2A0UC0eCXHGEGTJXYjHqkt7QpLbzz1H/2Stp/fcC3TiHC8SCM+dBJy5 wfUg== X-Gm-Message-State: AOAM531ygdh0PDnbAtTvxY5G27nZjRPZj02TyjKOtEZyEp14ROIHS6Hx HeY1DZv71cRJoPWaZoXQohU7G4syL9p/mA== X-Received: by 2002:adf:e984:: with SMTP id h4mr42420684wrm.149.1635852940353; Tue, 02 Nov 2021 04:35:40 -0700 (PDT) Received: from google.com ([95.148.6.174]) by smtp.gmail.com with ESMTPSA id u13sm17763294wri.50.2021.11.02.04.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 04:35:39 -0700 (PDT) Date: Tue, 2 Nov 2021 11:35:38 +0000 From: Lee Jones To: Robert Marko Cc: Michael Walle , Linux Kernel Mailing List Subject: Re: [PATCH] mfd: simple-mfd-i2c: Select MFD_CORE to fix build error Message-ID: References: <20211102100420.112215-1-robert.marko@sartura.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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_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? > > > 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 for it > > > > > -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog