Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp110512pxb; Wed, 3 Nov 2021 00:39:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIYh3M9Zx1lFPME2QTh/jBGCijG8dLzcKwEyhR576wTMDlD4PkwfxDgfbu4vqFklb2OduO X-Received: by 2002:a05:6402:50ce:: with SMTP id h14mr20283434edb.228.1635925140099; Wed, 03 Nov 2021 00:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635925140; cv=none; d=google.com; s=arc-20160816; b=msWG8sevGhbS18CMgspHaN+uBIxP32x2TuSVMn0CGjikdHEXB7oRTf906GVHo95kbo P9FEgHaVoXUarwMmcE7EvlxOQ1rz3zF81j5OPlZE8CF8wkYsfR0e4ixPSbOFvYNUtgiZ ZLlGo30J0p/lnOgwfDo8I7D5K2sd8rrQ8NTbMCvjlALJtomTeakFQzRXu5nNj4pcyxaP L68A8KgLmd7IjYW4Y35JD9SvSS/U/Tim4jHS6ge54k7gfc7zuYF4UuU5v/Zg3fSqCUTe mr2c6XAH3aXMmJJZ5/n0zcr4nHvoEuBMEZhEEti6fgMtyd+ff5ISGprK9lOibGTO4szy 5Jyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=fQ51OSKQaHvREsm8LH+OBDuLYQSwZuSPMGPty/9xfnA=; b=hF5CwKMNKccsEKxmd5OugJc/e/b/wJj5H59a3k/odDeLJ2frDaYKPhYsXzlRoEl8ns HamKUa1Ob9/33V8fzm08A8gUZ41psWJd3R4lbmmnndBuTH8wKm8lnoPu/9m2dsT6dk9X aHaTVAdSURvuF5Ie63gWf3oNJIBkvubTVrdisdcsy59c2BN47LhuzMT3Q7lH/wj+EPI1 CIt+uIbjkZWDr66z8CYPFeHasjxvwV2iQXIMqWVLSWlrQskM4dIWuTCc84DQA2AYIsZZ cI+YTRV9YMyXTqWEA8ya9Ts+58q25Qzzglx0E40O2ZfkvWTsfnkLSvwR6oSvqhdxTcF8 3jJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=CZRcCqrL; 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 go39si2131078ejc.519.2021.11.03.00.38.34; Wed, 03 Nov 2021 00:39:00 -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=@walle.cc header.s=mail2016061301 header.b=CZRcCqrL; 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 S232055AbhKCHja (ORCPT + 99 others); Wed, 3 Nov 2021 03:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbhKCHj3 (ORCPT ); Wed, 3 Nov 2021 03:39:29 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14CC3C061714 for ; Wed, 3 Nov 2021 00:36:53 -0700 (PDT) Received: from [IPv6:::1] (unknown [IPv6:2a02:810c:c240:2017:dcb:590b:cf44:decf]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id DA377223ED; Wed, 3 Nov 2021 08:36:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1635925008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fQ51OSKQaHvREsm8LH+OBDuLYQSwZuSPMGPty/9xfnA=; b=CZRcCqrLKBnPt68/X8snzMr+mXYAT6zz8gxXMRiI6TeBpQFKwLeMWWHusw9L8Tkj/rXUQH 787PKt/P7Bj8g7WHwappA7RmqFDWqlmlWN39TvvAZeU+1XOUWoHmLaSNaesDTg0l6Ftw0I lrNeRS5EE7sBz//9w2lb0lio8/Itz9g= Date: Wed, 03 Nov 2021 08:36:42 +0100 From: Michael Walle To: Lee Jones CC: Robert Marko , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: simple-mfd-i2c: Select MFD_CORE to fix build error User-Agent: K-9 Mail for Android In-Reply-To: References: <20211102100420.112215-1-robert.marko@sartura.hr> <8b2b9e6f61107b79f93dd191c3fc2918@walle.cc> Message-ID: <1FD0767C-3BF3-46D3-8C7D-BA31F9D7AE0D@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 3=2E November 2021 08:32:28 MEZ schrieb Lee Jones : >On Tue, 02 Nov 2021, Michael Walle wrote: > >> Am 2021-11-02 12:17, schrieb Lee Jones: >> > On Tue, 02 Nov 2021, Robert Marko wrote: >> >=20 >> > > MFD_SIMPLE_MFD_I2C should select the MFD_CORE to a prevent build >> > > error: >> > >=20 >> > > aarch64-linux-ld: drivers/mfd/simple-mfd-i2c=2Eo: in function >> > > `simple_mfd_i2c_probe': >> > > drivers/mfd/simple-mfd-i2c=2Ec:55: undefined reference to >> > > `devm_mfd_add_devices' >> >=20 >> > What is your use-case? >> >=20 >> > How are you enabling this symbol? >>=20 >> Mh? drivers/mfd/simple-mfd-i2c=2Ec is using devm_mfd_add_devices which >> is provided by drivers/mfd/core=2Ec=2E So select MFD_CORE is clearly >> missing here, no? I mean most of the MFD drivers do a "select MFD_CORE"= =2E > >I'm not debating that=2E The patch is fine=2E > >I am however, interested in how MFD_CORE is enabled for MFD_SL28CPLD=2E Because I'm mostly using the arch defconfig (arm64) it must have missed it because it was probably already=20 enabled by another mfd driver=2E=20 -michael