Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1860494pxb; Mon, 8 Mar 2021 08:05:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwULFtFSsUpp4+H6B5YlxriMDI8MM3V1QX1iYel2JRaks8o9x94o05rLBeG5PKepSvzJjQn X-Received: by 2002:a17:906:801:: with SMTP id e1mr15140479ejd.465.1615219536626; Mon, 08 Mar 2021 08:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615219536; cv=none; d=google.com; s=arc-20160816; b=SlS9aaVQ/t8e/NqBlueKGhlx9DC9jKIETJSbx7A0cDAYUVlFG7mlBktOjQOtLpL5bj fnIajU3WW6zWYB7fE6RQLeDbFHstSMXKK5GZ9dkiNk9S8WOCHIxzsESnhLbgyrptzfeb w9fwnJSKZ/G8tZaqR4ZAsd8idiGxev2VJO0RKULeyulaU5KHX/IW21XtpGdI6/S2P0Ke KNNCcPkWnO/iYp8HctWEJQed/X+xbIXawa9QUjQCZnbotMGnQZP+LkxDm3h43E6ttXUK tCuGf5p3x+2bg96LZpH1h1yZN7FzWOBm4xL8MbPqNG8ZmUsE1CZbF2Vd7m8HnHA2Rohl UeWw== 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=Mziv/NgY1cx7E+O9vXy9Wu9C0PfZ8m0Jc58NW5DIJaw=; b=kK/TbVK3zU4mboS3NVMprC4PfecEZCK6Inwb0/oPeKRettfqDtKcYfqxbZGjFItdWB czOEbQJelcPQS9dKimKhx3rEXN5Lyol4vrmkKckTRYD86UUn5HdQ0ghy7BAXvMlBkR2z vwieyd154LGznRlY1pvo+orPumK2qZ0t+9iWpxms4cYvBbiAP9lCZ8YZSDqkbgMBwvV9 TdoRMUZuQ64iT0i1cxAztE9auosqQ5yLLyGrWFE9NqXMqP5mU1ra8zovhEFZOLduNdWS B3iHxZkDXEqiA3t8P71kH67UehS77urFDbmuZYUd27eWy6/T2E5jWjw2hsZROjc8m140 0jbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qu6ApKeY; 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 m13si7387007edd.35.2021.03.08.08.04.51; Mon, 08 Mar 2021 08:05:36 -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=Qu6ApKeY; 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 S229893AbhCHQDH (ORCPT + 99 others); Mon, 8 Mar 2021 11:03:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:38752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbhCHQC4 (ORCPT ); Mon, 8 Mar 2021 11:02:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F74D65228; Mon, 8 Mar 2021 16:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615219375; bh=81L55Ql71/PIDoeyenGJ6E24UkFDnhGsiFqB2FUgnnk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Qu6ApKeYNNZJfwMnHd8RoTXahkePw8+QB0qK26OmfXR7IaZruke3YY5kMz6nVarf9 bLQGEdu+k8QV3ujpY0Pa6G69E/rbJaz6y2+atBrAvrMttF/d3JrBNx+1zah0QLd3bN j4YxN1iKuEGudCWxmktHIDl/QkSrgnIAVs40LAA74aZGLPKl0mczlw7zQmbrwQ5Rk0 ufEFBVBgUrUnwOxzsxdHvPuZM/pkxxS0vneF2ZSgA+ZaNGMdwpDKOPhXVKoS1FBeeT mz/NcyBQZDv+fJio+zHgK3TPxWQoWt4tbCwVlQVH3ugHXFSX/UUlmoMJkqDMBX91bL ozSLstqZDxNkQ== Received: by mail-ot1-f41.google.com with SMTP id f33so9618200otf.11; Mon, 08 Mar 2021 08:02:55 -0800 (PST) X-Gm-Message-State: AOAM532xGSTQcgmMk1vY8/lpRWB7yn0QyuNmQZ021Zcbr30QCG3kXQkp JNI9PIkvj1g2ZpksveCx8wmGEHEE8m9g1kviReU= X-Received: by 2002:a05:6830:14c1:: with SMTP id t1mr831083otq.305.1615219375009; Mon, 08 Mar 2021 08:02:55 -0800 (PST) MIME-Version: 1.0 References: <20210308152935.2263935-1-arnd@kernel.org> <12c5050f-feb3-e07f-45d2-5e89b678841a@kernel.org> In-Reply-To: <12c5050f-feb3-e07f-45d2-5e89b678841a@kernel.org> From: Arnd Bergmann Date: Mon, 8 Mar 2021 17:02:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] power: supply: max8997_charger: make EXTCON dependency unconditional To: Krzysztof Kozlowski Cc: Sebastian Reichel , Timon Baetz , Matti Vaittinen , Andy Shevchenko , Linux PM list , "linux-kernel@vger.kernel.org" , Chanwoo Choi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd