From patchwork Mon Jul 6 13:33:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234860 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4780480ilg; Mon, 6 Jul 2020 06:35:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzglYF6fSusFsUZFi0n8B8avT03Ua245xJDNggprFNYhGQf4uufZOt0gWMNb6UaBl/oOaAa X-Received: by 2002:a50:f08c:: with SMTP id v12mr54917092edl.119.1594042514655; Mon, 06 Jul 2020 06:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042514; cv=none; d=google.com; s=arc-20160816; b=a0ZwEFHJfHH6PAaCZ0cR/jA2lYun5rOU+cWsloc+9S7iPdIUPY3L5xoWmWE1VGJr2Y I3ZQ1lJLKYTo0sMKzyFU0zJkese6X81LRODqd04kPpki4fG5tpYru8IwuTgNo+cAIfmu heUMyX7KejeI8tQfegSI7zghl0lSn5L6eIBdEXn2Vf4RpWGrbR5HKNGu1twZOoIwSPn+ K/0pV8GcHLXwrIiPa0ZVJHIghS+XOPydtYOwpSvO+oag5+odCkckoYGvORQMl3hmieDS kxprlfsNDwdoFi+kCHDrXibEIOU+sfUBGgxR04tqnuHpEiZiREHpv1oiphf4r2d8eNwD jXDA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wF0TEpLE3+8aSfCpSueulEs3qt7dUTbs4ZXmnn02trY=; b=IZ/A1uz905yFr0GxYjUZgkXyKQVALznEmiCW/QJxPX13CsMYa2P44pJvPpA3vwrATA J82MdPbysyrgIlCbngTuJCwO+qXcHgdSFWWAdOFdePu1BogOhg5ubzOVn8SZHj6Tw1vk KvzCmY5QP31E69YovZOg9HDNd1uQMMQsC/h4yHp7xE2NraVu71M5HPxlhnSFAKPrGoWt hrIszd1zBJooWQyrdTBmIsyY5F/WFGU88u5abYaZrQg4f6kjxdVF5jPz/jIW4W6eaUcD pRRjdp2hnjV78efvyNRAdpHYZNGjACE+o9MOEhvqJ8GTqGaXv7AoCGljf2sc9w3uYi1B NrVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fw8KkupQ; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si9551351edy.200.2020.07.06.06.35.14; Mon, 06 Jul 2020 06:35:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=Fw8KkupQ; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbgGFNfM (ORCPT + 5 others); Mon, 6 Jul 2020 09:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729162AbgGFNeO (ORCPT ); Mon, 6 Jul 2020 09:34:14 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B12C08C5E1 for ; Mon, 6 Jul 2020 06:34:14 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id g75so39364227wme.5 for ; Mon, 06 Jul 2020 06:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wF0TEpLE3+8aSfCpSueulEs3qt7dUTbs4ZXmnn02trY=; b=Fw8KkupQWP1sjuNARANgDth/I4E8Dw60dO13hOJ8P5eNzx1H61J9+oaoJEz4UW+eLB x1QdMZF9StP7c7hyy5JUC2MkPAqAt8qlfDb0usPVJ896zJWoOIBxIxiB9t3WJWOp41wc QWQfUyGB9r0pZlKQ/l7gJrP8c9Azan7WlFLNpgl++8vrM1xNTg4t8bQ7iLn1cUPL5RBW AG42p5PbmHJ8Frm71710QTtIrNhkU5qAvSTsYC97K1PrCm5ql9h7VGbzShVHn/cTrI73 fL7PPdPg+3dvqO2vSDnwUP0ahpRMP1oWeMlfwjY87k/1h79BGuI02uv9lh8MDmd3wbOb XMdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wF0TEpLE3+8aSfCpSueulEs3qt7dUTbs4ZXmnn02trY=; b=h9SPXPCJLZuHBDA02/zVYab4h9nD6+nrnskiGpOtTASFfFXUS9Y/bq1tFBtFA8bv6S 9atk3EYulhKgMrKN86Ztd19DyJ0MmRcTWi/g6wXqUXEEBMEcPMu3uvPCqioFkSZPk2HC Uj0WhD5HfvCafC63fAI2sxOckGAitNdSgdHMHxKSqfFzsfKyZXcE+MgATo5Pj5X2lN3t YlwtbHXs3VRnesffxicSpt4aw3c61720xtHtjWjRQhaWvk2Esokg+0DW/9un+bS6U2sD nQfVASSAJ3yx+d3CY0rTCW1DXW3uGnB9vNdGNYM1/babupFzNueEHRIC3sDS/vNFGF/s UcYw== X-Gm-Message-State: AOAM530VS9ur3BhqYOVZylzotsc7kPivfdp3rXFJ+bYDM1oRVOfrilAb JQrEEd06ruFRrAx7rV7OYcY2mQ== X-Received: by 2002:a1c:c3c5:: with SMTP id t188mr51930563wmf.53.1594042453242; Mon, 06 Jul 2020 06:34:13 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:34:12 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Heikki Krogerus Subject: [PATCH 24/32] usb: typec: ucsi: ucsi: Staticify and stop export of ucsi_init() Date: Mon, 6 Jul 2020 14:33:33 +0100 Message-Id: <20200706133341.476881-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706133341.476881-1-lee.jones@linaro.org> References: <20200706133341.476881-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org It isn't called from anywhere outside of ucsi.c. Fixes the following W=1 kernel build warning(s): drivers/usb/typec/ucsi/ucsi.c:1005:5: warning: no previous prototype for ‘ucsi_init’ [-Wmissing-prototypes] 1005 | int ucsi_init(struct ucsi *ucsi) | ^~~~~~~~~ Cc: Heikki Krogerus Signed-off-by: Lee Jones --- drivers/usb/typec/ucsi/ucsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/usb/typec/ucsi/ucsi.c b/drivers/usb/typec/ucsi/ucsi.c index d0c63afaf345d..affd024190c91 100644 --- a/drivers/usb/typec/ucsi/ucsi.c +++ b/drivers/usb/typec/ucsi/ucsi.c @@ -1002,7 +1002,7 @@ static int ucsi_register_port(struct ucsi *ucsi, int index) * * Registers all ports @ucsi has and enables all notification events. */ -int ucsi_init(struct ucsi *ucsi) +static int ucsi_init(struct ucsi *ucsi) { struct ucsi_connector *con; u64 command; @@ -1078,7 +1078,6 @@ int ucsi_init(struct ucsi *ucsi) return ret; } -EXPORT_SYMBOL_GPL(ucsi_init); static void ucsi_init_work(struct work_struct *work) {