Message ID | 20230601213342.3334659-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp627581vqr; Thu, 1 Jun 2023 14:38:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52rK0CMo/frYuF//RLe6AiniUDIWLLjfRO+hnNWBWxu/LgOrvFl9c7lAQugMS4IFmz3/61 X-Received: by 2002:a05:6358:7f1a:b0:123:26fe:3348 with SMTP id p26-20020a0563587f1a00b0012326fe3348mr4519700rwn.2.1685655491574; Thu, 01 Jun 2023 14:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685655491; cv=none; d=google.com; s=arc-20160816; b=WWOO3Xi8Dci160G5QNpeX238aVTLbxsRXyf0kui57P+cIg0hsCN2vQF2JGlkeZcoMv GjPe2RW0DHLfCa+l5VIqNqkjP4+1WGghM20tFY7qct5gWz3bnhyZcU04TUt9Uv082TT8 KKSATiBy0G676ZZI51lhEBqKcjcgliKNH/W0Ohetbm6c6UWcCcCv3J7EbofoeKPexOcQ ubEb81zXCWw+65+9amH+HJsprRMrmw6Cu11EuuNLY0eA40223oZvNWY+etbIVWEK6C7G dHS87shze6tk+Cpl4z7ElIwH4/dTNPrZY+xd/1rl9lL2K2G3tvClUpLoBccdnUsqi5Ld Pzxw== 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:date:subject:cc:to:from:dkim-signature; bh=H9S9mlaf3TlALQ9jZUtSiziHggXmuyq9cb6GWJe6/Uc=; b=zXTcyah8qt95yTM/PUGk71DjCQk5hS1HXzIW0YRB8q7vZ5NL9WdCJI83BarJTAZq2v 16BUbuTG/yxIwBrAstZwXtIJ/P8o9qF3UqRh/YrRt6ugIWnn+bcfxrAhZiZtKdoEI2T6 hAMcOtBuKh4IqawaJNyKBVvuHJfcODpRpGS3mYW0P1jps0H7ahR7Lx00+z9R83eCbfRu M2Q/80nqXgBn62Dgn/I+/laJNbtWPlLHa54rvllI6j1nypzZ1MRxX0jvCLqKK715SENI t0riFKW4IRPQAxRs1v5gUF8oEgqD/460Lh8zLzwHtOcVCRazPAJa7P7GD51LetSWH2ie r85w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UhgKZQcu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a186-20020a6390c3000000b005429626e279si115039pge.87.2023.06.01.14.37.59; Thu, 01 Jun 2023 14:38:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UhgKZQcu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232656AbjFAVdv (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Thu, 1 Jun 2023 17:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232625AbjFAVdt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Jun 2023 17:33:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3320719D; Thu, 1 Jun 2023 14:33:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 97F6B649FE; Thu, 1 Jun 2023 21:33:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F10BC433D2; Thu, 1 Jun 2023 21:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685655227; bh=2PZNDZhyudgBBw1UYaIHU6reQUknQRHhSFn37DBiuGs=; h=From:To:Cc:Subject:Date:From; b=UhgKZQcuZKTR+h0KqnTOLA+v8IgT2UiQamqAETovgT4iRVZCIJDCwmRUfDjLA+NlQ vpUACaZ65gBPYLGw+Nc41zhaHhdwEjr/FWIi8+8hZORXgjXixld/zf6zdnOgoX/aRG HnJtRmrubSNC0lEya//iOimyD0/U9cFhL0eHFMx7lEeJvCqL0ZYTYdhaeRxlTcibvq kp4JDVAqFLIlu5V91IxP4cT2glLh7ZKy/qzu3oFYU9jswh2OHtuERaof0IX4W77EzL 3qnGBa0L2LhAJqCM/H1XDhoCUgYwNI/rjtKDLcSBcOQEc0XnxF1IW8oTVewgempVJT cYurWSe8wW+5Q== From: Arnd Bergmann <arnd@kernel.org> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Prashant Malani <pmalani@chromium.org>, Bjorn Andersson <andersson@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: typec: mux: Fix extraneous semicolon Date: Thu, 1 Jun 2023 23:33:37 +0200 Message-Id: <20230601213342.3334659-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767537892257929898?= X-GMAIL-MSGID: =?utf-8?q?1767537892257929898?= |
Series |
usb: typec: mux: Fix extraneous semicolon
|
|
Commit Message
Arnd Bergmann
June 1, 2023, 9:33 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> A recent patch introduced a typo in the fwnode_typec_mux_get() stub function that causes a build failure in some configurations: In file included from drivers/phy/qualcomm/phy-qcom-qmp-combo.c:23: include/linux/usb/typec_mux.h:77:1: error: expected identifier or '(' before '{' token include/linux/usb/typec_mux.h:76:33: error: 'fwnode_typec_mux_get' used but never defined [-Werror] Fixes: 3524fe31538c1 ("usb: typec: mux: Remove alt mode parameters from the API") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- include/linux/usb/typec_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Jun 01, 2023 at 11:33:37PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > A recent patch introduced a typo in the fwnode_typec_mux_get() > stub function that causes a build failure in some configurations: > > In file included from drivers/phy/qualcomm/phy-qcom-qmp-combo.c:23: > include/linux/usb/typec_mux.h:77:1: error: expected identifier or '(' before '{' token > include/linux/usb/typec_mux.h:76:33: error: 'fwnode_typec_mux_get' used but never defined [-Werror] > > Fixes: 3524fe31538c1 ("usb: typec: mux: Remove alt mode parameters from the API") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > include/linux/usb/typec_mux.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h > index 11bfa314529fd..2489a7857d8e1 100644 > --- a/include/linux/usb/typec_mux.h > +++ b/include/linux/usb/typec_mux.h > @@ -73,7 +73,7 @@ void *typec_mux_get_drvdata(struct typec_mux_dev *mux); > > #else > > -static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode); > +static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode) > { > return NULL; > } > -- > 2.39.2 > Should already be fixed in my tree, and in the next linux-next, sorry. greg k-h
diff --git a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h index 11bfa314529fd..2489a7857d8e1 100644 --- a/include/linux/usb/typec_mux.h +++ b/include/linux/usb/typec_mux.h @@ -73,7 +73,7 @@ void *typec_mux_get_drvdata(struct typec_mux_dev *mux); #else -static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode); +static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode) { return NULL; }