Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1384811ybt; Thu, 25 Jun 2020 04:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydejszAF7bZWvLC4AlfIj0S+C0BUXGj2pVWPhkfg4bte8dlNdb3gQRdKSPr3i6S11qX3hO X-Received: by 2002:a17:906:f2c4:: with SMTP id gz4mr14533849ejb.484.1593086292330; Thu, 25 Jun 2020 04:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593086292; cv=none; d=google.com; s=arc-20160816; b=xMqW04G6cOGvGtgEmhRP8X+Y24tZ3Ejq8e3qv23NMwevs/J+cFhH1C63dg40rWOhzE YZBJAtgbGaiQ3ZINkOgci94x1cB0FwFsXOG5DZLu3dU5juwsbMsPGWFZ+uRm2/gEoY+G eh548QCcErfUR7TqVKjks0ThNDZfNvCT4GNDEtLfbOeaqLce2m1FN1H/EgUFE7rJNM64 PAAqXz9OJ0jTgdfYTSfYod2F8I6pqA2xX7vCBdcCinyu7iIfg2/ndqLs+UQlQJQTq/M3 0DyQ813cr8JMHlqm2FnnMG+6gEG2vXJgpsw2r+x7eZUsPm+onRnz40WZzUh3OIlku3eT Lwwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=yffmCkVYtp1HHn+CwsUV9+Nh0t4xATqjQZkrw1RgbsE=; b=mCsZrBAudx06xjcDVnd3EVej5cwXLo3vSMxbAFiSkGyQyE0Z6oItoOuGmP/g9BCRPm X8TONyQdxsR62v5mcGNCp4HkLd0pEGwYnMZfN9mpZtFIFMRyxg2y3udCY3aQDz6Ay7MW XTXSw3wEBVA6RXnj2znh0GVhs0PEfw637qrlI7FMG9PnM4n8KbIzSaMvhtZNLHsvDTMx WgAMJst3l4fq05JCKjKkD39zgcWCBCITYcE3uFnZ9GDB4RwuHuCf6/aF7KMZH6DEZBCS bPYKnMGpk6VQD52EY7dMkWUkh3JxeJW0Fu8emUFt4K5cYgNk3lTTlzduAu3FI27ZC4UT 8dvg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si10916401ejw.135.2020.06.25.04.57.49; Thu, 25 Jun 2020 04:58:12 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404443AbgFYL5N (ORCPT + 99 others); Thu, 25 Jun 2020 07:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404285AbgFYL5L (ORCPT ); Thu, 25 Jun 2020 07:57:11 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31580C061573 for ; Thu, 25 Jun 2020 04:57:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 59AC12A50EC Subject: Re: [PATCH] platform/chrome: cros_ec_typec: Make configure_mux static To: Prashant Malani , linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, kernel test robot , Benson Leung , Guenter Roeck References: <20200620020038.230887-1-pmalani@chromium.org> From: Enric Balletbo i Serra Message-ID: <1a05b712-0617-dc57-6099-dd4a072af9f9@collabora.com> Date: Thu, 25 Jun 2020 13:57:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200620020038.230887-1-pmalani@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prashant, On 20/6/20 4:00, Prashant Malani wrote: > Since cros_typec_configure_mux() is only used in cros-ec-typec, > it should be marked static. > > Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") > Reported-by: kernel test robot > Signed-off-by: Prashant Malani Applied for 5.9 > --- > drivers/platform/chrome/cros_ec_typec.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c > index 509fc761906b..1df1386f32e4 100644 > --- a/drivers/platform/chrome/cros_ec_typec.c > +++ b/drivers/platform/chrome/cros_ec_typec.c > @@ -428,9 +428,9 @@ static int cros_typec_enable_dp(struct cros_typec_data *typec, > return typec_mux_set(port->mux, &port->state); > } > > -int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num, > - uint8_t mux_flags, > - struct ec_response_usb_pd_control_v2 *pd_ctrl) > +static int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num, > + uint8_t mux_flags, > + struct ec_response_usb_pd_control_v2 *pd_ctrl) > { > struct cros_typec_port *port = typec->ports[port_num]; > enum typec_orientation orientation; >