Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4173652pxb; Tue, 2 Nov 2021 05:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpzMK4r6NANA6Qf67VhQTj5lxguSH63+OXpbsZf7RQoA5pRkXLGMEoqMEZR/wRGIxp6ADj X-Received: by 2002:a92:c26d:: with SMTP id h13mr12070360ild.229.1635856267256; Tue, 02 Nov 2021 05:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635856267; cv=none; d=google.com; s=arc-20160816; b=ZhjsFdFLb7UG8msLlQKB37yG0T1YMSoos3CRZJgO4fsF+ooXzYvUx2h2VUVfy1Y1z9 fLp5cspb3kInPyjWvqGlWKym/Zcx31vqDr819kWJIYkdqq6dhMY3pR/dbeoh3fma2RcF nOwQY6GoX2gkn/wyFkFSIcNvqGyZdSLbiYE9VSr1RiRECXzoUPUHbgjQ/cDa/CU+BcCM 6SVmoUfDMNkcXTYjscaZrdoGwEMbfejH71VM988iwKb17X7Q04hhuuA/swxlnLNFNtCe +9yUlNLeGa8Fg902nAtHAZvZD3JSyFxopjBZnkv9tXxJu6rTMIWeKj+KcaSGiHL0Q2bx qhWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=cOlB3SqbrvwOQNlyt+NUWTHe0zxF/8/HFOvQZzaohXM=; b=UE0eMzeBMY2gCeBHWDb2EHmluecoBLt4xYcwu92XvKzoXKtvTVQUMfC9G7BknU4dEC cNvvjiSYIkKpjIOoV3Sp672llS3fMGALuMSEylMUYpdS/Z/LDHf9CNIpEFLArnaaJhr1 XuRDcLUyKF/yI438OeiX2I9bPbX9L9dX/MNwm+b+MTcCIva/3NsZPKbDUWQMn9X2effW c78Osp4no1TTPDIldUG1oP96ovYgGvF21NjJyiPXxTrHdQPk3J3wEFfNdnuRYdaF40qW yPEcCWx+7RxLV/+4kiRx44kl+84gfJlp9lef7ldHKhfFa6NoJyT4Q6/hAQqd0GXdvd4t vzAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=IIaYn2RH; 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 r1si2532193ilb.134.2021.11.02.05.30.53; Tue, 02 Nov 2021 05:31:07 -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=IIaYn2RH; 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 S229720AbhKBMb2 (ORCPT + 99 others); Tue, 2 Nov 2021 08:31:28 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:39941 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbhKBMb1 (ORCPT ); Tue, 2 Nov 2021 08:31:27 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id DD78122246; Tue, 2 Nov 2021 13:28:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1635856131; 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=cOlB3SqbrvwOQNlyt+NUWTHe0zxF/8/HFOvQZzaohXM=; b=IIaYn2RHSUAHEhe5xnVfhKUDDOsPZ75Idj8t3/tcfjf5uFlySxh6TAWBWv/2tC5WctUwLZ E5CaB8w6pyA6bK9ErtpdiKTNxFG/X/S+DNcLQMGsYIi/ToE1untiAIxIddqxKXzrSMazC5 Tv/ekY92KLkfO1zEFcZJ3ZK9TLnRTjs= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 02 Nov 2021 13:28:51 +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 In-Reply-To: References: <20211102100420.112215-1-robert.marko@sartura.hr> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <8b2b9e6f61107b79f93dd191c3fc2918@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-11-02 12:17, schrieb Lee Jones: > 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? Mh? drivers/mfd/simple-mfd-i2c.c is using devm_mfd_add_devices which is provided by drivers/mfd/core.c. So select MFD_CORE is clearly missing here, no? I mean most of the MFD drivers do a "select MFD_CORE". -michael