Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp109563pxb; Wed, 3 Nov 2021 00:37:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycF7HUrpCXKnkwoJwKyvyFhCM0C2nW8BkJ9CLijP8gZy+/+AJhUVLaD3ndYyW3FOegMTdH X-Received: by 2002:a17:907:628f:: with SMTP id nd15mr52970449ejc.389.1635925048361; Wed, 03 Nov 2021 00:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635925048; cv=none; d=google.com; s=arc-20160816; b=tntDNH4wxzewrgNXVvqsNfeX4Ilq5MzPMPTlYAduCVaISUfFdmkEGoUlOXB6u4EwrP AuKZE7c9DLLiIq2VWAP31Dh1bVL+oDOGkV3K1pBwdAtfiyd3wSGf1UojthjPR6t889sF rBOFgoxIpgnqBr05/hzOSYWKnnF8/PhQPveracZ6jQUzZbJdumuhy6EExJMzORx8Dj0x a/bdfU6cBS+x3NrxWAacPb85NecL9evKQltBwv5P/mfNESE2N7lDrLfmu4ehXetCTErA oKKqXiK4K+OiJDytMkFFN7bY0pPRvmlV0tAyFZcfwoV4PTtc1pk7T+OGC9w05Psb7dyQ MhQg== 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=87t3cRjg7u1Zp2KhfytX73O1Q3ZMRkilirTsqAdAYSQ=; b=X820YchOgWUw13L7dZ9MrO7cLbdiXafniJ4PlvEthpc9ShT0LRFZSqmwB+P23j1K7J G9iK9zBHfw5ZClH1zzghD++akhYmwA5OJC3FomvSiNO3d34f/cTjDJXKxKnnC5Mh/7+1 k0ZGYNX4f6or37CQzYAyF1imshrprcqmpaGi1FU6rSqYungt7qvn1u4scrG7yRBF61Mu I+lKvUO2ApdRxUiZcV7W55Lio9r0nN0VF7YX5RNXCQIolJQEV39xQILG5kCWBqvS3L9T Vhtb6lsLulRNAmOT0jUUZi7qWBqux62xY896/sP565UHCLmCk+O3NDrQzJTr+QBPtdAs yWYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tGiiPklV; 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 v13si2908536edc.85.2021.11.03.00.37.05; Wed, 03 Nov 2021 00:37: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=@linaro.org header.s=google header.b=tGiiPklV; 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 S232103AbhKCHf6 (ORCPT + 99 others); Wed, 3 Nov 2021 03:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232033AbhKCHf5 (ORCPT ); Wed, 3 Nov 2021 03:35:57 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01FC5C061714 for ; Wed, 3 Nov 2021 00:33:20 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id s13so2122539wrb.3 for ; Wed, 03 Nov 2021 00:33:19 -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=87t3cRjg7u1Zp2KhfytX73O1Q3ZMRkilirTsqAdAYSQ=; b=tGiiPklVY9svjnIJbqS6ta7qyTgFdWoffpRcNS5l+h8oQ+LrlPVoyJbQilxwO3md2G /hYcvuPc/ICLhL5MVDhnb2JWIC0qHqBchoZEJtEvBNGEcyOd/+EnWTloGv/JI+31mK0U H46X7m1G0BcA4IqTK01QzS9ZlWoLPtpOAsA2XZN+L5QQLwTEs42NWaHiJm7nP5xustGE 6LDsRJRzLTZoTA2WNwu1iy+21WOo300zOmLlKKrC83LlXBUx2sn+Nlqeu+3tst9iPxHN tFs85dSe+Jc0gnCxrLVINObyAZ60yXVxJEof2DBT3EGSiwkfiStmw9xYe4wPjoFwlwb6 LjyQ== 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=87t3cRjg7u1Zp2KhfytX73O1Q3ZMRkilirTsqAdAYSQ=; b=l09REvDmVP30hmYDZLZymyJUCgbfuEnHq/nQKvDIgpsJc8+pE9mVi3/65mxXhMSeNd 5dVgOhbFD8I8CaufXlA5VIvFBTJZZ3CCxC3+syJKiuaSkd2gQ8SXoh0imjK+GWrs9xqE e0FHX4jC/nwD3mpk7p4pAVpCU8vOuYgaYzAyd2+hsovHZ4ART+Bdh1eItbhnmPCqn/zw ObBfgTz06RaoMPKkP8Uj4QqqiPuOWQymGZ9E2wuAAqBxP6HMUku+yUNBfFOh1ItLz0St oqjzbxax/vPUq8wRiy84/9n0mJz+8lXGJKpvlWUOS2OuSFX5mTmHjD6nAnzng0B+aCES dTzw== X-Gm-Message-State: AOAM532i7g+tYEUM3IznVCV9yd4DXX06pCzXX/JTWN3qb65ZFagFOgQ3 dwg/j7COjkHAOo1NQNiyuNB0VWton9D0xw== X-Received: by 2002:adf:eb4b:: with SMTP id u11mr39590829wrn.49.1635924798571; Wed, 03 Nov 2021 00:33:18 -0700 (PDT) Received: from google.com ([95.148.6.174]) by smtp.gmail.com with ESMTPSA id j19sm1165940wra.5.2021.11.03.00.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Nov 2021 00:33:18 -0700 (PDT) Date: Wed, 3 Nov 2021 07:33:16 +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: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 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? > > It doesn't, it just selects MFD_SIMPLE_MFD_I2C > > MFD_CORE is probably selected by something else masking this issue. Right. That's what I'm trying to get to the bottom of. Don't worry, the patch will be accepted. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog