From patchwork Mon Jul 6 13:33:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 234871 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp4781214ilg; Mon, 6 Jul 2020 06:36:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHCpHfuaHZZgq60jM3xiZyDsgiCKC0P7nIqJZUI0WGm5AYTM6Sc7CILfUIxvjfj3iLpe0W X-Received: by 2002:aa7:da06:: with SMTP id r6mr45312882eds.189.1594042566112; Mon, 06 Jul 2020 06:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042566; cv=none; d=google.com; s=arc-20160816; b=eCcmSmonfOWrMyuv44/owY+G32lT5bBRcQplpnO3CH9m/iw4FyQfSJpM5dhm/ztVRO GbqEInH2ATuiXAbuTQp5xxJ1zDx0hU8+Yr682LBKkJjW2BukxanFg5g+hlEifc2lSpwu eS6gtw76wRHak71jqSseDH8CwojJwkjHU++qjmiUTCbVp2ANFh5XE9jvrwzGUBrNEsaq bmOWL5YEqETUUXhNsjcGf6pMeG2FL09kxsO5pqLz49I4tsTi+D2LFhAGoAPUzCPgdIYN qgQ6N4wkQqlKBv3PvHbkoEVrR++AtTXSUnwldJcwucRcPimkYnys023VFcU6f2a6S8oK mDzg== 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=FTimBbBqnMIcQ4eF+VH5m9hye6WMpkC2MlXIy//Z9tM=; b=K/0bKe6WfNpxK4twtdoxoCbUatWbruds3Uxd+LKaBbGybhvhg7M6eaioZiwLWDs5mO 1ifje36m0foHP+JS53z6FGCwwqpnEp81Zu3dQgYgCPmG6EGWFCUSZz7naHBWQ1reCc0i P5uC7wT7BL/HqdIMKDZiy9uQNdgo7VD4isA8+LViJXzGpUrsi3BRNHvWX3iNd4siZ6+h rR2YrWjougO2AdTzdoSTnFTZTzbzfm1V2Pdc8hFLJrbGQSMpYbZfiXrYWrFSSP++CPsh p2NrYTtij1mkP6nVDnbEGaZElxB1jZBcB8hStKCkWKsksqVaBsCyaurnYUiHBchrMP+Y Fqmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bn951av1; 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 ef10si11913429ejb.519.2020.07.06.06.36.05; Mon, 06 Jul 2020 06:36:06 -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=bn951av1; 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 S1729561AbgGFNgB (ORCPT + 5 others); Mon, 6 Jul 2020 09:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729297AbgGFNeA (ORCPT ); Mon, 6 Jul 2020 09:34:00 -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 69239C061755 for ; Mon, 6 Jul 2020 06:34:00 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o2so42118614wmh.2 for ; Mon, 06 Jul 2020 06:34:00 -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=FTimBbBqnMIcQ4eF+VH5m9hye6WMpkC2MlXIy//Z9tM=; b=bn951av1tIBYht5lk9qvY08u0Jgt22BUCKc6vohyqII3OtrGaVeusFgOTPFhqV+i2k p06vfQqGi7JFF4w8LRU6xPFLkIdxuI9J0W8p4lHaQpIytn8kmIblmkWpEIO17UKu+gPf FXeWg/QFad9y2n/5Q8UzWgI3E11IBWoAiWlUX7yiymCFcvPQex79oxP8yohjP6Wsdjol SVkyuBtzjZ/SHYPWMfIDXcXPdKkuaWT6aAmYFvyBne/hm6iaMSsqC427PTvk+2Dq8+ki W7eZeeuLkAhkX4IudL6VGhPcZ6DO+hSxad4t9YaHQaSXU7OGASjpxkSL2XDydREO5DXp giBw== 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=FTimBbBqnMIcQ4eF+VH5m9hye6WMpkC2MlXIy//Z9tM=; b=KZ20z7Ug58gyTfqJDvbYXxQ6mQ+oMRDLvG5cVuYdIcCImktLRQICVie4GQHOZYdz9g j5Lwc0m8Opg0bAs0X829N33ZYGdRHpZa24OpY6fdmuBOVGbQX4+8BN7SnvfZhrHNaflV H8j/wJ6gRSRhze3FCzGWljWZc9Ji1YIdKmodh+IcfaSqLFNoZC/3pfodPj6DQnQfbY91 y3FSD74CMxshCZcNDbs3d7Q1C+jQfvI9B10y9m9F15B7wDk8fMbN1G6Aan4D9X0e/ooG vKvIZj5QP9w7bwaNLKjJ0r/2FA4SxCCs7Kxn89bl34cwGuIicHlYFz/mQAz3Y7EH53LY 3eIw== X-Gm-Message-State: AOAM53062RyxNkcKxkHjw+nBQ5S3IKcuEqmWDXVqDpO0d7rL1rmCwCJt xuhmi4rDmzXEc3CAc0Rf6jXUwg== X-Received: by 2002:a1c:dfd6:: with SMTP id w205mr52128827wmg.118.1594042439124; Mon, 06 Jul 2020 06:33:59 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id v18sm25416082wrv.49.2020.07.06.06.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 06:33:58 -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 , Felipe Balbi , Vladimir Zapolskiy , Sylvain Lemieux , Kevin Wells , Roland Stigge Subject: [PATCH 12/32] usb: gadget: udc: lpc32xx_udc: Staticify 2 local functions Date: Mon, 6 Jul 2020 14:33:21 +0100 Message-Id: <20200706133341.476881-13-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 These are not used outside of this sourcefile, so make them static. Fixes the following W=1 kernel build warning(s): drivers/usb/gadget/udc/lpc32xx_udc.c:1929:6: warning: no previous prototype for ‘udc_send_in_zlp’ [-Wmissing-prototypes] 1929 | void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) | ^~~~~~~~~~~~~~~ drivers/usb/gadget/udc/lpc32xx_udc.c:1943:6: warning: no previous prototype for ‘udc_handle_eps’ [-Wmissing-prototypes] 1943 | void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) | ^~~~~~~~~~~~~~ Cc: Felipe Balbi Cc: Vladimir Zapolskiy Cc: Sylvain Lemieux Cc: Kevin Wells Cc: Roland Stigge Signed-off-by: Lee Jones --- drivers/usb/gadget/udc/lpc32xx_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Acked-by: Vladimir Zapolskiy diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c index 465d0b7c6522a..4a112670cc6c4 100644 --- a/drivers/usb/gadget/udc/lpc32xx_udc.c +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c @@ -1926,7 +1926,7 @@ static const struct usb_ep_ops lpc32xx_ep_ops = { }; /* Send a ZLP on a non-0 IN EP */ -void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) +static void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) { /* Clear EP status */ udc_clearep_getsts(udc, ep->hwep_num); @@ -1940,7 +1940,7 @@ void udc_send_in_zlp(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) * This function will only be called when a delayed ZLP needs to be sent out * after a DMA transfer has filled both buffers. */ -void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) +static void udc_handle_eps(struct lpc32xx_udc *udc, struct lpc32xx_ep *ep) { u32 epstatus; struct lpc32xx_request *req;