Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1868856pxb; Mon, 8 Mar 2021 08:15:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd6uQFhhHoDwbZcfn26v8025ANaPcJhHIVE64vNVQGAW+ODGjM8Q4q3iS6556pUoEmsm+j X-Received: by 2002:a17:906:c9c2:: with SMTP id hk2mr15862978ejb.244.1615220151552; Mon, 08 Mar 2021 08:15:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615220151; cv=none; d=google.com; s=arc-20160816; b=0MsKrX/UmeApO77QG1VB2yh0LdiuFQ1phlHVlHoGdRf1LXeSwscRCuA0NOtHJEFzS2 /QV5MY5RtfYmKIfzvOdXPC0bsEKfN4woWW+Ba+GPe/4MV06C1cxPRK2xxkwIOcJQLhU5 xqZ5N6Io3TFmDDDFrVp5sX9SSWYAsGlTceCkqmQhnKDqzLJrVGREymqaApR0oJz5CC9n 8dL0lgJSzG6uHp++1qfAodggaAUew+cGJ8MCG8O7F6k8J6OJf6bzkV3rgU8LU+IzNGds wfa26rQaVDRaHmHGgYYtqBVHmT8eNhouGmEcQk2jTXxbRzYynUpqI4u5MEwzSNKGhsDo l+Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/858GobYL2zwDKrKcxMOa1p/j9+1S5GWNv0oToknYBg=; b=cW/IIrgAOag4hitbIa47KbmwmmV6HXjxSURjxkkkWCREjIXXNEkO/zPXfgFKa1u33j x15THdQsQsMBvBpD/vrUgc5mT4Pnp3sJhAF+PsxUHltYrh6XQqLTfMdHX5HRI9gaH0ho I/jZJLozfzX0zPLav70zgTfc5YOy6XHC/nKcGAXycQwq/Rqy8Cr1o8l3GiuNvJpSC6TU siD2bAyvSkfM7aiMWcuE83CLxdWxk2MoYBkwLPczWOmJMseSy37OiuOQHsqGUK6JEjJb F/opI+r91QdEGk6jMdUcarKGpCRkg2zduCEBOqLyskPL5wM2tsygYEwz6M3aym4zwVTB jjpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MP67Byoa; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si7158389eds.172.2021.03.08.08.15.26; Mon, 08 Mar 2021 08:15:51 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=MP67Byoa; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbhCHQMR (ORCPT + 99 others); Mon, 8 Mar 2021 11:12:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:42780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhCHQMD (ORCPT ); Mon, 8 Mar 2021 11:12:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4E3565235; Mon, 8 Mar 2021 16:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615219923; bh=PnOHJ4G+5EmJMFVlbGQ4fvuJX8KgofxN3t9LVJiywC0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MP67ByoaHs0VfXPbljCRVE/8AfOreQa1l+wjoKfoExMF3mRwTx21x7p+RhUqFdfYh WLZp0NH3qRM5dD6nz4eMgfP8Y/ty6uBZGOX1OCDFvALDF3r8ORQ7V2nUHWt5mq4KGF Y4iWXyyvHMeYz/ehc8FvMQTRZSEOQNtD8jnH4TVsIGSSh0k6rjz2CUi8PadfOtqj4t mVKBcpdiAdfkPraSqY3s1dkXVqyrZ4Bb/SxTF+uazNth7EFAowe4eNXT5DysNpLzce MYMGCMIlA/mp6fHOQziOPCglm5gso9UIY6NqxA22GAZR9XKPFmca+OWgAfoAhpKQdB 8wtK8OAJN+FGw== Received: by mail-ej1-f54.google.com with SMTP id jt13so21547745ejb.0; Mon, 08 Mar 2021 08:12:02 -0800 (PST) X-Gm-Message-State: AOAM531x688/09RdXa7vzJp7H6v0kJ2mLAyOETJMVbn88a3GOaO7WsTf WZXNOgXI9mKwRjRO4chA8cpl23cG8eFA6ArtNf4= X-Received: by 2002:a17:906:f1c8:: with SMTP id gx8mr16144598ejb.385.1615219921364; Mon, 08 Mar 2021 08:12:01 -0800 (PST) MIME-Version: 1.0 References: <20210308152935.2263935-1-arnd@kernel.org> <12c5050f-feb3-e07f-45d2-5e89b678841a@kernel.org> In-Reply-To: From: Krzysztof Kozlowski Date: Mon, 8 Mar 2021 17:11:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] power: supply: max8997_charger: make EXTCON dependency unconditional To: Arnd Bergmann , Chanwoo Choi Cc: Sebastian Reichel , Timon Baetz , Matti Vaittinen , Andy Shevchenko , Linux PM list , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 8 Mar 2021 at 17:02, Arnd Bergmann wrote: > > On Mon, Mar 8, 2021 at 4:33 PM Krzysztof Kozlowski wrote: > > > > On 08/03/2021 16:29, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > Some of the extcon interfaces have a fallback implementation that can > > > be used when EXTCON is disabled, but some others do not, causing a > > > build failure: > > > > > > drivers/power/supply/max8997_charger.c:261:9: error: implicit declaration of function 'devm_extcon_register_notifier_all' [-Werror,-Wimplicit-function-declaration] > > > ret = devm_extcon_register_notifier_all(&pdev->dev, charger->edev, > > > ^ > > > drivers/power/supply/max8997_charger.c:261:9: note: did you mean 'devm_extcon_register_notifier'? > > > include/linux/extcon.h:263:19: note: 'devm_extcon_register_notifier' declared here > > > static inline int devm_extcon_register_notifier(struct device *dev, > > > > > > I assume there is no reason to actually build this driver without extcon > > > support, so a hard dependency is the easiest fix. Alternatively the > > > header file could be extended to provide additional inline stubs. > > > > Hi Arnd, > > > > Thanks for the patch but I think I got it covered with: > > https://lore.kernel.org/lkml/20210215100610.19911-2-cw00.choi@samsung.com/ > > (sent via extcon tree). > > > > Did you experience a new/different issue? > > The patch should be fine and address the problem, I just didn't see it was > already fixed in linux-next as I'm still testing on mainline (rc2 at > the moment). > > I assume the fix will make it into a future -rc then. It's still only in linux-next via extcon tree, so it seems Greg did not take it yet. Chanwoo, You might need to follow up on this, so your pull request won't get lost. Best regards, Krzysztof