Message ID | 20221017092141.9789-1-jiapeng.chong@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1349341wrs; Mon, 17 Oct 2022 02:23:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FOwxt+skIjAM3gACscBsBw9MVyQjfuu0iJf5ERV+dheQHqD22BCdDH6NyjTEab4m/kL4X X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:630e with SMTP id b12-20020a056a00114c00b005282c7a630emr11561871pfm.86.1665998628057; Mon, 17 Oct 2022 02:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665998627; cv=none; d=google.com; s=arc-20160816; b=RWIkilrmkQmzXcr7zbyGPJYJQa92FEPwrEKCPQJgbNi0QYxhPgu36Dh9wMwSqfkW5n 9QAKy8TnSmMxhIIoLgh49V6AelH+0jfK+5TYVHRuJlctHVjGBWHLrLvL9geo3qI+gP+K PC9e5tWYANcNRLZhlYkcx2mFw58v6dWyd62+PVKGEjLlSHVlkj03wuDjYFUrlPrxrcbx 9Aemp3knehL95nIVWJLdXrgNbvZ3iiu+kQBqj4g1PWVVQRCc1pyLkf858+xQoBzAq9xf bUPbUN1RbBxaZw5gJ0FQLKRwkHUiybM9oyIU7cVlPVODa7Y6LimhBxy/0xVY7hDb07H7 j/HA== 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; bh=O7YT/sHO7oT13KerXHKUPOmv3vrJ9ExoyGQMULt8EFk=; b=KeLgHCspSfDMXTNvSFy6FGl+OsP2azaH+8mAaeZfRimQi1oMJ2MAb4CBsmHkD5rS5g bCtVy+rrQiqYCkCMtxNOitIro6UzZve2V9B+MzlO/MeFib2zumaxjbOJ5YVSifale4zw 3kNoncB4WjFHGynBl1YZJD++TH2/RLuunGiBi6gooPMK5IPY5PTWkwi7S1s6mlIdsoUW jF4R91skpsUeANFonbxen0wHfZAzzfXAkFshuMLYWA8ncsXQ5OQekrx9YUPwfpCayl/d +kHMOls8355L27bIM1pAJk/1Ueb1fVlkwkAujQHkrmpNtazcc/sd9Ur6rV5o/xlMU07r SPQw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l190-20020a6388c7000000b0046b2ea057e6si8486904pgd.608.2022.10.17.02.23.33; Mon, 17 Oct 2022 02:23:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231172AbiJQJWn (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Mon, 17 Oct 2022 05:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231248AbiJQJWS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Oct 2022 05:22:18 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC96F20BFD; Mon, 17 Oct 2022 02:22:11 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VSLPPPc_1665998521; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VSLPPPc_1665998521) by smtp.aliyun-inc.com; Mon, 17 Oct 2022 17:22:09 +0800 From: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> To: conor.dooley@microchip.com Cc: daire.mcnamara@microchip.com, broonie@kernel.org, linux-riscv@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH] spi: microchip-core: Remove the unused function mchp_corespi_enable() Date: Mon, 17 Oct 2022 17:21:41 +0800 Message-Id: <20221017092141.9789-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham 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?1746926177375663937?= X-GMAIL-MSGID: =?utf-8?q?1746926177375663937?= |
Series |
spi: microchip-core: Remove the unused function mchp_corespi_enable()
|
|
Commit Message
Jiapeng Chong
Oct. 17, 2022, 9:21 a.m. UTC
The function mchp_corespi_enable() is defined in the spi-microchip-core.c
file, but not called elsewhere, so delete this unused function.
drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2418
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/spi/spi-microchip-core.c | 9 ---------
1 file changed, 9 deletions(-)
Comments
On Mon, Oct 17, 2022 at 05:21:41PM +0800, Jiapeng Chong wrote: > The function mchp_corespi_enable() is defined in the spi-microchip-core.c > file, but not called elsewhere, so delete this unused function. > > drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2418 > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> > --- > drivers/spi/spi-microchip-core.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c > index d352844c798c..aeaa1da88f39 100644 > --- a/drivers/spi/spi-microchip-core.c > +++ b/drivers/spi/spi-microchip-core.c > @@ -119,15 +119,6 @@ static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int reg > writel(val, spi->regs + reg); > } > > -static inline void mchp_corespi_enable(struct mchp_corespi *spi) > -{ > - u32 control = mchp_corespi_read(spi, REG_CONTROL); > - > - control |= CONTROL_ENABLE; > - > - mchp_corespi_write(spi, REG_CONTROL, control); > -} That's a bit silly... Thanks Jiapeng. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> > - > static inline void mchp_corespi_disable(struct mchp_corespi *spi) > { > u32 control = mchp_corespi_read(spi, REG_CONTROL); > -- > 2.20.1.7.g153144c >
On Mon, 17 Oct 2022 17:21:41 +0800, Jiapeng Chong wrote: > The function mchp_corespi_enable() is defined in the spi-microchip-core.c > file, but not called elsewhere, so delete this unused function. > > drivers/spi/spi-microchip-core.c:122:20: warning: unused function 'mchp_corespi_enable'. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: microchip-core: Remove the unused function mchp_corespi_enable() commit: 8f4b3d2f653937956fdc68b665c621dfa3cf2fa7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c index d352844c798c..aeaa1da88f39 100644 --- a/drivers/spi/spi-microchip-core.c +++ b/drivers/spi/spi-microchip-core.c @@ -119,15 +119,6 @@ static inline void mchp_corespi_write(struct mchp_corespi *spi, unsigned int reg writel(val, spi->regs + reg); } -static inline void mchp_corespi_enable(struct mchp_corespi *spi) -{ - u32 control = mchp_corespi_read(spi, REG_CONTROL); - - control |= CONTROL_ENABLE; - - mchp_corespi_write(spi, REG_CONTROL, control); -} - static inline void mchp_corespi_disable(struct mchp_corespi *spi) { u32 control = mchp_corespi_read(spi, REG_CONTROL);