From patchwork Thu Jun 1 05:03:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 101705 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp65358vqr; Wed, 31 May 2023 22:31:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nFuMog401EZBLmtY0cKG/cnLntX80UpyLArkIMj3itqHzX1gds6YILwaaBxPjG84xnhHE X-Received: by 2002:a05:6a00:a02:b0:647:157b:cb61 with SMTP id p2-20020a056a000a0200b00647157bcb61mr946188pfh.7.1685597474738; Wed, 31 May 2023 22:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685597474; cv=none; d=google.com; s=arc-20160816; b=e4lXOUYTMt3a7FUYbePZxHj5J4us57On6yKP1Za6+7d7RmdbBilbSZYTuuYAoLiKjo a7OoFj6NwitXjRBHtZEVF1sm7aoUXieyq31n7JFEF/T3cYiY9W2TtcCL8taIGQh0WFae NvrXwZyTkJE1bvodVgtoGch8zVHHsb2G5+W0E2dZss7aiZHHmW83d35UerMlZdtUtU6V kBNCZZSeQcm+4DWUteqsicwfw8Y1cTaEJmuesntDHX7lp06w9eudpQztunnJC3xgTfGc nVNoasJskyiguLt5LWcQtq04OnZAJdqMLN5b4ZG/fwYTAr/SJJ89yQm6Gc6lP+UpxV3k VvnA== 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=V8kaecF6y4TaR0T6wLxAFyrl6r7hQF77k4cBDuWtj4o=; b=YyKhVfcKRtSyt35Hz3awKBKY4zg9LlIF1aElxM5u6Oc5NRVFR7sHaUE/qxYSgc41ky IAIm09aMB1FcGHCInrKvGKoOiuEYrvBbKpLpJ/M0ExaQMQIOqy84Fj86MjBzF7afKTXC DqCGVaK8UzM3qpOfbWw8Cy64MDTVIqefMrny59xQt/HWIWAHhxV1rHZ+AqRifrzWtm7W EFHV0Jj65xFXjK1iVKBvyCa+IvGco8AqfhrFI4JC6BT2XgYKmdauIuNgU0fnDaa8o88R Kt8Uza72wVUmqv24MOlpPhpIlcdEvzsEWhJWnWEJsVJC/kC2S2hQv2ZPaZ5HIhv9nfKN MWDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=jLXR+1Kr; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a056a00004200b00643652c8879si214029pfk.326.2023.05.31.22.31.00; Wed, 31 May 2023 22:31:14 -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=@infradead.org header.s=bombadil.20210309 header.b=jLXR+1Kr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbjFAFDc (ORCPT + 99 others); Thu, 1 Jun 2023 01:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbjFAFD3 (ORCPT ); Thu, 1 Jun 2023 01:03:29 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B96912F; Wed, 31 May 2023 22:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=V8kaecF6y4TaR0T6wLxAFyrl6r7hQF77k4cBDuWtj4o=; b=jLXR+1KrPVb+JRj3t14srJCkdV L1y1gVn7wztz/VXvhcrAmleYxiP/JEfPUIK+fxWeUtgANBCByShUv5kMS9bGKpKkuzfYHdWTmNc2b vOd1yv18xRkjVWBe9nJICrL0xi4Chlk9YEU1H/clwZJHCDi5qWeqx2kmgj/8csS/B/Zx8xZve+iPY tc8Oig0TN722dkWGmpTiQmQ4Jimw2H9P2dJykFD1+2/yUcFCnvRKmnoq/PrfOeiAjQGJl2Sy5/bhq eP4Iz6WW8vgLBMbMw+pelRspHBsmnBvN7wvh1DzYfxJaPwj7lnAsD7Y24p+c+pVzrT+UWLdlmP65+ DHmLVIyA==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q4aT8-001z4C-2g; Thu, 01 Jun 2023 05:03:26 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [PATCH] usb: typec: mux: fix static inline syntax error Date: Wed, 31 May 2023 22:03:25 -0700 Message-Id: <20230601050325.26883-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767477057593980810?= X-GMAIL-MSGID: =?utf-8?q?1767477057593980810?= Fix build error when USB_SUPPORT is not set or TYPEC is not set by dropping an extraneous semi-colon: 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 77 | { | ^ ../include/linux/usb/typec_mux.h:76:33: warning: 'fwnode_typec_mux_get' used but never defined 76 | static inline struct typec_mux *fwnode_typec_mux_get(struct fwnode_handle *fwnode); | ^~~~~~~~~~~~~~~~~~~~ Fixes: 3524fe31538c ("usb: typec: mux: Remove alt mode parameters from the API") Signed-off-by: Randy Dunlap Cc: Heikki Krogerus Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org --- include/linux/usb/typec_mux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h --- 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 #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; }