Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0B38C7618A for ; Sun, 19 Mar 2023 16:00:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbjCSQAG (ORCPT ); Sun, 19 Mar 2023 12:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbjCSQAC (ORCPT ); Sun, 19 Mar 2023 12:00:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442E1166F8 for ; Sun, 19 Mar 2023 08:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679241555; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kCgICu0KJAkXhiDRi5y/cM8U5p1k5bVMfl4yuYsdSQw=; b=dWQOYXgaLhFs6Dlbldi67ursN/z1B0yYGUpb5hRGzfYxyGTkrMzcJEnAMfjnV0pe708MJ9 WEwQBXohlFTrHLqnuAMu1z9S1frnhjR5fATnSoCs2og++G0Fj5Mbq4rZrj03x7vbJJckNs teLgdq+s/7WrESXB8YLyPy0TAwaNUvY= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-353-vIL5qWYJNvi07Vo12XUynA-1; Sun, 19 Mar 2023 11:59:13 -0400 X-MC-Unique: vIL5qWYJNvi07Vo12XUynA-1 Received: by mail-qt1-f198.google.com with SMTP id j5-20020ac85c45000000b003d81e3fe559so5359950qtj.16 for ; Sun, 19 Mar 2023 08:59:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679241553; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kCgICu0KJAkXhiDRi5y/cM8U5p1k5bVMfl4yuYsdSQw=; b=F0nQs9YMN670dO2Dnz8/05GAiURxFsbtDAGrh90W8c9CGWHgjOJ8bLdObRrK7P0Jkz 8ETCZHxo2ovkQxeBv7whn2tHHd97IR0Xue01e5SmgZVJhsxeOu3CxueJ+ulIzU30TdI5 /eyM/uOBFvcLUxqPHHMhviAJrgw8ewdFOq+KNmW6L46SxeMpzauYPaZjZSHlvNpE/YjU VbTw7TxzD3c6vI1gJfZhpXqEGk/hsSAh3j5TEjKnqRYpVndUf1XwsVDbBXJh7g4tn6Q7 3mlvQ3YuF7/iAiYwaHfbLVz8PGNR6BW6FlBed/CzsVI83UqrwcIIqgdhz1NaoxziNCb5 jKGQ== X-Gm-Message-State: AO0yUKWhdzy9Gxm1ZW6Ib693DOGICMz/ZU2k/96WIs6XvPLc226O+NeG cLj1v806hqZ2Ahz+xBVZ5yAh9TMe2UX8tA4ihZfXOS0esxK0KjwyV2cxgYXWg0/c9nHH1C321lI QA71HOSe0XgAXEWGyiwF43Xf1 X-Received: by 2002:a05:622a:188c:b0:3bf:e2ff:4c2f with SMTP id v12-20020a05622a188c00b003bfe2ff4c2fmr21989746qtc.51.1679241553401; Sun, 19 Mar 2023 08:59:13 -0700 (PDT) X-Google-Smtp-Source: AK7set9RY95IxUSoePkpXXO3x85piRzikUJ7diUt5Iu32z8WZrgmDSs16y56U1ABCRU7Dph61q/nLw== X-Received: by 2002:a05:622a:188c:b0:3bf:e2ff:4c2f with SMTP id v12-20020a05622a188c00b003bfe2ff4c2fmr21989732qtc.51.1679241553187; Sun, 19 Mar 2023 08:59:13 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 139-20020a370591000000b00745a78b0b3asm1710434qkf.130.2023.03.19.08.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 08:59:12 -0700 (PDT) From: Tom Rix To: herve.codina@bootlin.com, gregkh@linuxfoundation.org, nathan@kernel.org, ndesaulniers@google.com Cc: linux-renesas-soc@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] usb: gadget: udc: remove unused usbf_ep_dma_reg_clrset function Date: Sun, 19 Mar 2023 11:59:10 -0400 Message-Id: <20230319155910.1706294-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang with W=1 reports drivers/usb/gadget/udc/renesas_usbf.c:548:20: error: unused function 'usbf_ep_dma_reg_clrset' [-Werror,-Wunused-function] static inline void usbf_ep_dma_reg_clrset(struct usbf_ep *ep, uint offset, ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/usb/gadget/udc/renesas_usbf.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/usb/gadget/udc/renesas_usbf.c b/drivers/usb/gadget/udc/renesas_usbf.c index cb23e62e8a87..84ac9fe4ce7f 100644 --- a/drivers/usb/gadget/udc/renesas_usbf.c +++ b/drivers/usb/gadget/udc/renesas_usbf.c @@ -545,17 +545,6 @@ static inline void usbf_ep_dma_reg_bitclr(struct usbf_ep *ep, uint offset, usbf_ep_dma_reg_writel(ep, offset, tmp); } -static inline void usbf_ep_dma_reg_clrset(struct usbf_ep *ep, uint offset, - u32 clr, u32 set) -{ - u32 tmp; - - tmp = usbf_ep_dma_reg_readl(ep, offset); - tmp &= ~clr; - tmp |= set; - usbf_ep_dma_reg_writel(ep, offset, tmp); -} - static void usbf_ep0_send_null(struct usbf_ep *ep0, bool is_data1) { u32 set; -- 2.27.0