Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp867543pxb; Tue, 1 Feb 2022 12:04:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxS0JFhtVoz27SxfNgLzVWJjuoEvtltEDqg5WaUr6RYPfEbcnWa33t8JuZlbue33EyALnN/ X-Received: by 2002:a17:902:c10a:: with SMTP id 10mr25988079pli.82.1643745882889; Tue, 01 Feb 2022 12:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643745882; cv=none; d=google.com; s=arc-20160816; b=OkDWsRMDk7wUkUkRmsn+CdseY6aBegRVfljgMI5P4gm7qaOZbiwUPW5ErbhZ4PjnAs uvCcwiM79VYCdp9v4vypgusnZPX8cHHJ9n7cPpNkZ5guBMREWQUwBPakgSmZck9ghdt0 8QJN2hJ/y2BNIFOoqvfvqFYcoWXacdACLlXoz/FLSv0DmGk+3jVTE75UN3l5D6BMD8mv cjILT/A8sF8UCKT8OS/Hvhb7khCa5ppqdjMhYWUwjABeGff/Una1TW/2JQIehKX7xOPx iaHoUHMBo5P9E5hpyI93Y8ub8+8jDXEvkDyj9yWkqLqpWFzP65ZbYRPhGGLA7/4zwe8K S7qA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8gUo1S/ixrRNJEuuG+ZcNt9CSyWC6uF3mqZ4pg/iP7U=; b=0Ekpq/+4ZSMbFo5YmCulKuylhu+3InEYtaGyAyVPm/ar61lD4ClFhJdxCy20H8Fg+z haL/e76QMyAjt7xzs3/WGWmkRXR12saMRjyrHFm1qKQXRliTRKH2pizooztHrISO3Dkq CsvF82ycUVZdBt+KBp+vqfu5Ak8puRNCs8DHvsHVUuxxgQ5EDmqEB3Y3UOm7yfL/12+f BhW/oHpk21CljP9kD5qlHflagbQ7ADwQn0aQ5Q5+E5nHufMSqw7J400U8QlPJ9pWVMiT pk3ITnI9Y4sHLIsaBM45tPSiW7K711CnmJr9/dGl9eDvKNGxxk14JyLyC51t0fzFF0AK BNiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HBkloCJ2; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q22si10527536pll.7.2022.02.01.12.04.29; Tue, 01 Feb 2022 12:04:42 -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=@linuxfoundation.org header.s=korg header.b=HBkloCJ2; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377700AbiAaLSs (ORCPT + 99 others); Mon, 31 Jan 2022 06:18:48 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:57936 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377823AbiAaLKa (ORCPT ); Mon, 31 Jan 2022 06:10:30 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 2C65BB82A4E; Mon, 31 Jan 2022 11:10:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4866AC340E8; Mon, 31 Jan 2022 11:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643627428; bh=spdpjo4qMbBRvJtQh7H28I1jbdknu9a8xKiGy/yHeJA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBkloCJ2TAOo5K6auD+V86zOHr9skp5Kdi2IBide/p2tGH+ZK6UxRMaQsJSZnq+yZ Mf2zFJE3FMW/CCD9mjp6vDKQlinqLWrn4JHEOnFLtOa7T1VuZ3+sEqDACsQe53Wcl9 z3ndwf57THPJKeE9b0bwa6SOZBpKWRkvO+SQ9CT4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linyu Yuan Subject: [PATCH 5.15 080/171] usb: roles: fix include/linux/usb/role.h compile issue Date: Mon, 31 Jan 2022 11:55:45 +0100 Message-Id: <20220131105232.741088302@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131105229.959216821@linuxfoundation.org> References: <20220131105229.959216821@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linyu Yuan commit 945c37ed564770c78dfe6b9f08bed57a1b4e60ef upstream. when CONFIG_USB_ROLE_SWITCH is not defined, add usb_role_switch_find_by_fwnode() definition which return NULL. Fixes: c6919d5e0cd1 ("usb: roles: Add usb_role_switch_find_by_fwnode()") Signed-off-by: Linyu Yuan Link: https://lore.kernel.org/r/1641818608-25039-1-git-send-email-quic_linyyuan@quicinc.com Signed-off-by: Greg Kroah-Hartman --- include/linux/usb/role.h | 6 ++++++ 1 file changed, 6 insertions(+) --- a/include/linux/usb/role.h +++ b/include/linux/usb/role.h @@ -92,6 +92,12 @@ fwnode_usb_role_switch_get(struct fwnode static inline void usb_role_switch_put(struct usb_role_switch *sw) { } static inline struct usb_role_switch * +usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode) +{ + return NULL; +} + +static inline struct usb_role_switch * usb_role_switch_register(struct device *parent, const struct usb_role_switch_desc *desc) {