From patchwork Fri Mar 24 19:06:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 74699 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp856289vqo; Fri, 24 Mar 2023 12:13:53 -0700 (PDT) X-Google-Smtp-Source: AKy350YTRzKgkdLwSQ6VvlcUvYBSU76qFwvC8qzhjGTJqN1yHyJgdcUo+x4aUyTgseV2gSO44NRp X-Received: by 2002:aa7:cacd:0:b0:4fc:7201:6e4 with SMTP id l13-20020aa7cacd000000b004fc720106e4mr4011612edt.20.1679685232979; Fri, 24 Mar 2023 12:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679685232; cv=none; d=google.com; s=arc-20160816; b=BLunNg6jPyVhbvg8gGZcxt8goKY6dLXn2TDfPv6j6UiXga4H3N8WARPC30exG4iLpV P4NbelaLjx3uvXZSnf8sn7NzuVRT9Uzm4XZEHWU8dlDCVG6iqcuBLrl9islBUYTq/5hZ cbf/4K/CACJTgBNRKlP8NsfjoAy0AFdtsQdjMO9LahvRVpXiIj4BPxwVvrUIPJYhVnnI Eyas9Mng6EI5bxBIwOqKZ/I1riyNqsHd/EzLZ1pnF1ItmhLFYwTD6klqVWphYM48kDIl tRXKCj/e4WzdtfBqJiuJ5dHtvtQmn2qvEOdgOhvYEONhaKNhiUGnkkJXKb/ES/2XE+bH pJPw== 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=m1e+oH63s8EilReY/6J1/4GgJ3Yip783LTwv8q9nidY=; b=XTlG2elbfwVw8UMwl4NDtQ7Tavcqoh+RJjSO8bb8TrxyL6KprQ5UKiVAJxGWEVy0+E iIjVW7YKGgd4T2c/5fGJs423GoLx4apy1YjzsTLTpYLBvlDvbBRWL0ynuV8TtMWztG4M hndAWeHGj6G70B8yHMZ+BbuHpJLo2zpdn0Kjhf1aulR8H5a9IopPovraHhs0Cwajmegl pumqP/HwOjAa0p3f+NHtjCDiTSTLtqIPJVtRMYyYLxik5tvU+507imHvUI8C0ItZKelo FhTTBLHmWoWURjSgal6rUvPz0PxFO0khBDc3W/GpL3wkmh1gsl9wMOINH5CwX9miCwl9 1/AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X4GVWJrP; 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 x23-20020aa7d6d7000000b004af60cc2a8csi22922868edr.486.2023.03.24.12.13.25; Fri, 24 Mar 2023 12:13:52 -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=X4GVWJrP; 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 S231444AbjCXTHp (ORCPT + 99 others); Fri, 24 Mar 2023 15:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbjCXTHn (ORCPT ); Fri, 24 Mar 2023 15:07:43 -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 544E61A942 for ; Fri, 24 Mar 2023 12:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679684812; 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=m1e+oH63s8EilReY/6J1/4GgJ3Yip783LTwv8q9nidY=; b=X4GVWJrPUP7H58rDM/uvIswL6yH4xPikqC3Ti5T4DgQQNm57WvaB2eZpWgU+CjdGszDSWV Rnx6WcH8cFJfdrrqIEmLppYojo4r+6HhF14BrZ5D0eTjWRJDGwg0c61sFrom9DjxUHm4c9 pJisvTGzYMeoQUaN6VRB0W7tdPrZbOw= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-346-SqmrjD7WNfaxL3ywTfrlCA-1; Fri, 24 Mar 2023 15:06:51 -0400 X-MC-Unique: SqmrjD7WNfaxL3ywTfrlCA-1 Received: by mail-qt1-f199.google.com with SMTP id t15-20020a05622a180f00b003e37dd114e3so1584644qtc.10 for ; Fri, 24 Mar 2023 12:06:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679684810; 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=m1e+oH63s8EilReY/6J1/4GgJ3Yip783LTwv8q9nidY=; b=pIhMN8mrVPL8uLAAdPUX0lSC6Uw+3x6qHi1WAqB/t4I5wDVbUEIEzDbLRtlGtJ3956 mesZNCs9TZSFOXet8fw5iWd7jRUdTasZ4qTdU9XohIqkRbnlrhgEb+UX3VsJmRaoPRpn atmXj6j1/B0KceCBvZI0wmIE9K6HnTQJb4muI+0jTde2b64AixMB+UglBSynlElmh7XR pdTvxuF1Gy5jLR4a+VfyT07cXJXluSiziyVPxrAXN8EAFZkdDmR0zEkcPy5RtT6JtIyb 4KvD25sv0B6DFcDDEmSgYUePl9ohyXfglodqRlGcrJq9tpQNbNz6anrFKYXby5PqdXOS Kxsg== X-Gm-Message-State: AAQBX9c2ybygQi4/OVKeT2x51sLts1fTmPEk4ll5NXg6dnsO74DcbIJH X8vdOmkbhpHRId6X8kxSfolBDkvNkkIoNb/FuqVUJEMsg7c/FvtrjtaWWSPCV+SlYkghIwtWdl0 9ni2i9FBwoSJOlz+VVbSTECVE X-Received: by 2002:a05:6214:27e8:b0:5a9:2bc0:ea8b with SMTP id jt8-20020a05621427e800b005a92bc0ea8bmr5351758qvb.47.1679684810468; Fri, 24 Mar 2023 12:06:50 -0700 (PDT) X-Received: by 2002:a05:6214:27e8:b0:5a9:2bc0:ea8b with SMTP id jt8-20020a05621427e800b005a92bc0ea8bmr5351729qvb.47.1679684810228; Fri, 24 Mar 2023 12:06:50 -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 kr15-20020a0562142b8f00b005dd8b93456csm885828qvb.4.2023.03.24.12.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 12:06:49 -0700 (PDT) From: Tom Rix To: zajec5@gmail.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] bcma: remove unused mips_read32 function Date: Fri, 24 Mar 2023 15:06:47 -0400 Message-Id: <20230324190647.2654293-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761277622764683335?= X-GMAIL-MSGID: =?utf-8?q?1761277622764683335?= clang with W=1 reports drivers/bcma/driver_mips.c:49:19: error: unused function 'mips_read32' [-Werror,-Wunused-function] static inline u32 mips_read32(struct bcma_drv_mips *mcore, ^ This function is not used so remove it. Signed-off-by: Tom Rix Reviewed-by: Simon Horman --- drivers/bcma/driver_mips.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c index 4f01e6b17bb9..9be0806eb033 100644 --- a/drivers/bcma/driver_mips.c +++ b/drivers/bcma/driver_mips.c @@ -46,12 +46,6 @@ static inline bool bcma_core_mips_bcm5357b0_quirk(struct bcma_device *dev) dev->id.id == BCMA_CORE_USB20_HOST; } -static inline u32 mips_read32(struct bcma_drv_mips *mcore, - u16 offset) -{ - return bcma_read32(mcore->core, offset); -} - static u32 bcma_core_mips_irqflag(struct bcma_device *dev) { u32 flag;