From patchwork Tue Mar 21 00:02:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 72552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1509232wrt; Mon, 20 Mar 2023 17:25:05 -0700 (PDT) X-Google-Smtp-Source: AK7set/IvqH2Bij7YWPUrcLhFznjaad7VA3b7nZ+3z5W4OaGrULxn6DHa+PSfTHRArXE9dEs6La/ X-Received: by 2002:a05:6a20:669a:b0:da:a7db:48bb with SMTP id o26-20020a056a20669a00b000daa7db48bbmr129832pzh.42.1679358305051; Mon, 20 Mar 2023 17:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679358305; cv=none; d=google.com; s=arc-20160816; b=W8bgqlGKUQF2Q8UmyJYyEVh36hnE0+yI6oI3lpe0UDJAMmalFP0U3/zRe/XalXsWHL V2qakYRb1EcH7lkwVA9DU2mtmTqcPrVRwmQFvqFC5+hp9JksyyCxp9BBanMdmLweARx2 GNzUQXfEJ50yzTlDtJuwTt9ET6vUbkXayUErAdI+AhJKuQbHoRvFkY+XYQFq/Zw5Rsmt 2OAHeLiZTC8bUfZGW3rsPDmiCPAjzGddcvh9aRU7g30eFPFFpWJN4qjhXEpbgKCAQL7x pHfA4Ixu5VTLzK/fvVydX8yq+5jPE5+S5H4rKYXHHm0ZjxJc0N37MfITboRTI51clA5h NA2w== 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=oaxgoRknGgdRu4OK8QweJTWsOvaKVFDsJ1zcV4NK7y0=; b=KO3HPEV/p45Gb2jptYWP/uVT8VK9t761X1KjaRZ5neRHh9JHIBrOLpevOSpPojlTzc LHLrcSzfDLUMZMJN0QEQxN9RtOaPYGgEA1RRRtszTBWJR21IdffP6ySeaIjlxcM2iLQ8 fDz1/pNUlTskALtPnf1E1/9F8w83bQNwH9Fs2+5nn2/9cCaHwDqFw5hoF9rqMHzTCsFj 0Tsvh1lt8ExEFI5tlyQSl51TenpGXjuFfDAx9HaMW61sMncp5E806w0tnBcSrCpTq9yS vJZCLCk/RS/TQQE8ETIH3IGcwgZX6aCPlbCMAwceXSFxgqMFZhCd5q5K/zZQWY9GHrwg XDEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="QK83AGd/"; 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 i17-20020a631311000000b00502e7a44dc9si11305322pgl.747.2023.03.20.17.24.49; Mon, 20 Mar 2023 17:25:05 -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="QK83AGd/"; 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 S229768AbjCUADQ (ORCPT + 99 others); Mon, 20 Mar 2023 20:03:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjCUADP (ORCPT ); Mon, 20 Mar 2023 20:03:15 -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 5B1F8303F9 for ; Mon, 20 Mar 2023 17:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679356948; 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=oaxgoRknGgdRu4OK8QweJTWsOvaKVFDsJ1zcV4NK7y0=; b=QK83AGd/Wdyk0EYx59/rsCZEDSKBwHuZBd3kbFS3eufd0GWPdYMKyWjH4tHzobLH2wW3Ws ZXePiPrUd+G/sMrjVdAQ7//ra0R/3BwGj8d5BsiJVj5ujeXWgJ+yUI6YWDJAvC/y/VQ4U8 4NfhODo1tCf1nkPzZN8+mXO3xw0ev4k= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-278-z-lxhaPoNpqeb_YeLPyBWg-1; Mon, 20 Mar 2023 20:02:25 -0400 X-MC-Unique: z-lxhaPoNpqeb_YeLPyBWg-1 Received: by mail-qv1-f69.google.com with SMTP id v8-20020a0ccd88000000b005c1927d1609so4187134qvm.12 for ; Mon, 20 Mar 2023 17:02:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679356945; 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=oaxgoRknGgdRu4OK8QweJTWsOvaKVFDsJ1zcV4NK7y0=; b=fRpPEClNSO6Wp7Y1RxJRcOrjQyMDCV33WUATmnKaqEBkkMdsyEFMNYhY4KDRJw4MkE TLuIkHvaIuQgOmFGEUpYBa2UQIcH+hoSk3nYg3oA7yOOy0L7ZbVNFpjY/ssN69kNsBgA fX8qOXxfHzCgV0QLcfptrYTQ6b4+TAtX3pO104MNyhBJ30Lz+E+44TE+UBRuvH/o2+jV xkmHCPzdVlVfiVKyXOfPlyzHcprgq9jh+D8OpKfYLLj7bI+5UCQ2vrtoDF+L3Amak2Z3 jc2ES0GRJ4G92PPgXXj8AwnW29kHQ+upMkGW2Y3ZOE4FHzk/8HpYphNMhFPXro7m0pd2 kyQw== X-Gm-Message-State: AO0yUKU4wrnRFGWYFD4DQyS7q7AnG4xME7V+bqzJAnwCcOa+kdrMrdBc p64Bev4VK/VRo3ttBmkXWfd1x6EmpfS92XjXIc7uitdzhOilnE16qoPsWhcv2YyYF+Zkhkw8mdQ Mp5W29ux1IIffCp/TCKUsCQhZ X-Received: by 2002:a05:6214:e4f:b0:56e:a88f:70ef with SMTP id o15-20020a0562140e4f00b0056ea88f70efmr1086852qvc.23.1679356944980; Mon, 20 Mar 2023 17:02:24 -0700 (PDT) X-Received: by 2002:a05:6214:e4f:b0:56e:a88f:70ef with SMTP id o15-20020a0562140e4f00b0056ea88f70efmr1086833qvc.23.1679356944683; Mon, 20 Mar 2023 17:02:24 -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 y3-20020a37f603000000b0074382b756c2sm8287715qkj.14.2023.03.20.17.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 17:02:24 -0700 (PDT) From: Tom Rix To: arnd@arndb.de, gregkh@linuxfoundation.org, nathan@kernel.org, ndesaulniers@google.com, skhan@linuxfoundation.org, bhelgaas@google.com, linux@rempel-privat.de Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] misc: alcor_pci: remove unused alcor functions Date: Mon, 20 Mar 2023 20:02:03 -0400 Message-Id: <20230321000203.1730802-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760934814294892303?= X-GMAIL-MSGID: =?utf-8?q?1760934814294892303?= clang with W=1 reports drivers/misc/cardreader/alcor_pci.c:98:20: error: unused function 'alcor_mask_sd_irqs' [-Werror,-Wunused-function] static inline void alcor_mask_sd_irqs(struct alcor_pci_priv *priv) ^ drivers/misc/cardreader/alcor_pci.c:103:20: error: unused function 'alcor_unmask_sd_irqs' [-Werror,-Wunused-function] static inline void alcor_unmask_sd_irqs(struct alcor_pci_priv *priv) ^ drivers/misc/cardreader/alcor_pci.c:111:20: error: unused function 'alcor_mask_ms_irqs' [-Werror,-Wunused-function] static inline void alcor_mask_ms_irqs(struct alcor_pci_priv *priv) ^ drivers/misc/cardreader/alcor_pci.c:116:20: error: unused function 'alcor_unmask_ms_irqs' [-Werror,-Wunused-function] static inline void alcor_unmask_ms_irqs(struct alcor_pci_priv *priv) ^ These functions are not used, so remove them. Signed-off-by: Tom Rix --- drivers/misc/cardreader/alcor_pci.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/misc/cardreader/alcor_pci.c b/drivers/misc/cardreader/alcor_pci.c index 5b637171c46c..0142c4bf4f42 100644 --- a/drivers/misc/cardreader/alcor_pci.c +++ b/drivers/misc/cardreader/alcor_pci.c @@ -95,29 +95,6 @@ u32 alcor_read32be(struct alcor_pci_priv *priv, unsigned int addr) } EXPORT_SYMBOL_GPL(alcor_read32be); -static inline void alcor_mask_sd_irqs(struct alcor_pci_priv *priv) -{ - alcor_write32(priv, 0, AU6601_REG_INT_ENABLE); -} - -static inline void alcor_unmask_sd_irqs(struct alcor_pci_priv *priv) -{ - alcor_write32(priv, AU6601_INT_CMD_MASK | AU6601_INT_DATA_MASK | - AU6601_INT_CARD_INSERT | AU6601_INT_CARD_REMOVE | - AU6601_INT_OVER_CURRENT_ERR, - AU6601_REG_INT_ENABLE); -} - -static inline void alcor_mask_ms_irqs(struct alcor_pci_priv *priv) -{ - alcor_write32(priv, 0, AU6601_MS_INT_ENABLE); -} - -static inline void alcor_unmask_ms_irqs(struct alcor_pci_priv *priv) -{ - alcor_write32(priv, 0x3d00fa, AU6601_MS_INT_ENABLE); -} - static int alcor_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) {