Message ID | 20230322125803.2570968-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2334031wrt; Wed, 22 Mar 2023 06:13:09 -0700 (PDT) X-Google-Smtp-Source: AK7set/xO2hM0ycaWs4F9PSdViZtNhqZzvRN7iWzhaZpRsEfhDZ6fybMZX3Yo8jvvivDPG43HZHj X-Received: by 2002:a17:906:da81:b0:93b:a133:f7e6 with SMTP id xh1-20020a170906da8100b0093ba133f7e6mr1747020ejb.46.1679490788876; Wed, 22 Mar 2023 06:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679490788; cv=none; d=google.com; s=arc-20160816; b=sj0NXRm3F4zOJprZjjlKT6Qxr6HW66VDZy1ppisKK/kkzIDSauAFziHwGf7ecSxRg7 xoOHwKx4SnfqfVsV7zENDtQRNwBpP7LK9d6Z02IZcVMcTX8v0PSw/o0sYNKOZEUeGK4e /0Dm8Dk2dZjtQeyNKnNv3elDDDTQGG0fVp1huZI1x9gJgJ5mTztGnIoMqjy1tOeeK2Gr IeOz5zUhQo6n2F0hr6EByIGaDpjlN0PUNGX8bS7T7lVAIaVwLYHvCMriTbFjVK973TYk 7JVW/AqiqxMulPYHFyj4wqoKcYCZZW4nlbpHkxdWQQmjG/VepNTTUpGaDtze4h6cx1md 2teg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=TIlkqLegAeBC+m6CULqCYBtfGXGiuVBtfnZhQsPJi1c=; b=b5ubWGRjTIC8GT1C1vza4F9kevIQ7xTxh4vLU3TUGxv0IvNXNsd8oOwZUlLhI/nQHB 7cLRDrdrjLRx/nrWL6rk66tE2Q0qEWq8HZkKPmUamuDM+0kDrgUt0mRw7bykqmmPd/DH IRXTquD406RarcwC/RARO4m6AOJAYSiCjl3x0RxwubFKbo+21sikpfQClBYqaOTIenf5 lQzFvfnozVjowNCDDWo9qoKzknCC0xogpBWvDijVIybg55WZhyo713gm7CzWzy+Mh6D6 Gts/jAB+8fsESh10V0wowJScYbqwN2RunPZvu+TL3/kFZBWACgB0oyDF7f9AUK7nszel SllQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZKzsUA8j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vg4-20020a170907d30400b009377c5b6b0asi6904662ejc.275.2023.03.22.06.12.45; Wed, 22 Mar 2023 06:13:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZKzsUA8j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbjCVM7E (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 22 Mar 2023 08:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjCVM7C (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 08:59:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99624574C7 for <linux-kernel@vger.kernel.org>; Wed, 22 Mar 2023 05:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679489890; 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=TIlkqLegAeBC+m6CULqCYBtfGXGiuVBtfnZhQsPJi1c=; b=ZKzsUA8jMRHwX/NMBN+26e4vRJ/VwRKod+T7P7wGpJOzz1gnxi+LW/DLYyLfRyRlyJ9AaM T69tdm9FNSaHNTZzQkqMo0B9ZXV/+ql0ODjPnmUwDE44s8hp6XqLbmKxoMthVY7xBnB3gA AVWcUg+7l9JmRZysTPBhse7YksxUL0s= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-262-UOvmLwiQP5a3Hwv5jTHBtQ-1; Wed, 22 Mar 2023 08:58:09 -0400 X-MC-Unique: UOvmLwiQP5a3Hwv5jTHBtQ-1 Received: by mail-qv1-f70.google.com with SMTP id a10-20020a0ccdca000000b005d70160fbb0so1080336qvn.21 for <linux-kernel@vger.kernel.org>; Wed, 22 Mar 2023 05:58:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679489888; 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=TIlkqLegAeBC+m6CULqCYBtfGXGiuVBtfnZhQsPJi1c=; b=AwJqkVueMdf1G8FuZZwSfGGcbHYxhq1YpS0cBvsh0lUtcoPZygr+i7Ex1uJa+uGOGV hsfJVMP+9LPW6kkXOgvmzfiEDNi1OQB9aqx9y16KxUoOP3KPeDwEBlcM66ZWikstlqIN 2Ri8fCmPzsfCol80IJxYT7zlcW3tw3qW31U6QNlbbG7zl3qoL6Nci604+TgPXcr6VhdK 5gbZh99ZznzKzS4/krpIoqGb+f6Kb0il8J0nm+VnIw+91gnCEKPHu0fXESGF8BjAXSFK YyH2px/RnviJzVZFIkqTFX6bnYjoQQLNc2MhRt9XS29WyVx/mYQtVE1nhJjDjCRKn7wW ix+g== X-Gm-Message-State: AO0yUKUyeQ1OquUCnptbIuhMftdgoGFNlbRl20HyVSpPKTaWvHlm0fGZ TyQu2ExVA5CDJODSteWL+trAGA5J/0A1xF7sBjPba+ehnwi6gM6DvNiIguVCCjTAMRokh3fmvdM AJC0QSaAO9JCHj6JEYAYjMsM1 X-Received: by 2002:ac8:4e8f:0:b0:3e0:61d0:f7f7 with SMTP id 15-20020ac84e8f000000b003e061d0f7f7mr3644649qtp.14.1679489888598; Wed, 22 Mar 2023 05:58:08 -0700 (PDT) X-Received: by 2002:ac8:4e8f:0:b0:3e0:61d0:f7f7 with SMTP id 15-20020ac84e8f000000b003e061d0f7f7mr3644621qtp.14.1679489888366; Wed, 22 Mar 2023 05:58:08 -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 j9-20020ac874c9000000b003dffd3d3df5sm6394388qtr.2.2023.03.22.05.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 05:58:08 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: tony@atomide.com, lee@kernel.org, nathan@kernel.org, ndesaulniers@google.com Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] mfd: omap-usb-tll: remove unused usbtll_readb function Date: Wed, 22 Mar 2023 08:58:03 -0400 Message-Id: <20230322125803.2570968-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761073733009611395?= X-GMAIL-MSGID: =?utf-8?q?1761073733009611395?= |
Series |
mfd: omap-usb-tll: remove unused usbtll_readb function
|
|
Commit Message
Tom Rix
March 22, 2023, 12:58 p.m. UTC
clang with W=1 reports
drivers/mfd/omap-usb-tll.c:128:18: error: unused function
'usbtll_readb' [-Werror,-Wunused-function]
static inline u8 usbtll_readb(void __iomem *base, u32 reg)
^
This function is not used so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/mfd/omap-usb-tll.c | 5 -----
1 file changed, 5 deletions(-)
Comments
On Wed, 22 Mar 2023, Tom Rix wrote: > clang with W=1 reports > drivers/mfd/omap-usb-tll.c:128:18: error: unused function > 'usbtll_readb' [-Werror,-Wunused-function] > static inline u8 usbtll_readb(void __iomem *base, u32 reg) > ^ > This function is not used so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> > --- > drivers/mfd/omap-usb-tll.c | 5 ----- > 1 file changed, 5 deletions(-) Applied, thanks -- Lee Jones [李琼斯]
diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c index 8ca4067da6cd..69cbc2097911 100644 --- a/drivers/mfd/omap-usb-tll.c +++ b/drivers/mfd/omap-usb-tll.c @@ -125,11 +125,6 @@ static inline void usbtll_writeb(void __iomem *base, u32 reg, u8 val) writeb_relaxed(val, base + reg); } -static inline u8 usbtll_readb(void __iomem *base, u32 reg) -{ - return readb_relaxed(base + reg); -} - /*-------------------------------------------------------------------------*/ static bool is_ohci_port(enum usbhs_omap_port_mode pmode)