Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2739894pxb; Tue, 13 Apr 2021 09:04:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZOWnmU796RTa4KvqeJC0F6Nmv0QpVptzHwsgZAvm+z1BjvE2IuMvrwuK+zrYwpPKtdgxE X-Received: by 2002:a05:600c:4f55:: with SMTP id m21mr686599wmq.11.1618329847666; Tue, 13 Apr 2021 09:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618329847; cv=none; d=google.com; s=arc-20160816; b=BJdzeDdEYh1uGxtT9s9iruBXO8bANsh3WfYkQ1Fb7hqvJhDcfnW5ya+s3y9vii1ZzV l8fNkVOm9V0f4keoUtpw0BUWXLhnw1mRoNr9RvDdEVuWhDq5/D/AvfuBVY0rsibPCtPn 6YTA/vCWv4NlEFpCwLDBKKHMc1xT1KDqP4v56BUGEFdkCG5TukqWF3ECGfFxflLGzdx1 qzrQgk1BBJhJ00MfwYEv+FATJPoqBs5nKN6SaesYp9DSwpajTM3xgt8/o6nyzaGUgSBj iw+f/bL9KNrrJ/J6SKG18PUVrVzmULPyaq0GHEbhHxYc3YfBDcRZcRRWrF/Y3J5FxnJs phcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=a0mQMRee6wvQBH7RZo6oRiwqOBr/4P13wLLYTPiB25Y=; b=k5aKzLTMQtafjnA8P2w52/JXYehSap/6DnMNHh20hLIQdW0wXL7lQ+ECk64oePxx0N 4dn2WrCEOeJyTh2ktf0G1uTiGCx9KBiVMPpbjtwraBI3rsq0AmDBzg0Tj4qsJ39ogpA7 2MYlNJpxrAuy4sJ1AGON93EJfrQVjyPuD90abOCFTlpyb4eqksVY/WIpIwWtYBCzZpEp tQypjyC9hiJZeO4ejzP8K2N+4MO/c0/KQ7FZgNW/XOff5XDlFlb62KKmZtJzDx++t4Mg 8NTLUYCXdV7ECQhUXS7PvfxawqRriKmFisgzV+3PVt5WMjhObGmX5JfVbmJabfvqr1Cm L6Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt15si10844123ejc.504.2021.04.13.09.03.40; Tue, 13 Apr 2021 09:04:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236736AbhDMJLe (ORCPT + 99 others); Tue, 13 Apr 2021 05:11:34 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:53953 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbhDMJLc (ORCPT ); Tue, 13 Apr 2021 05:11:32 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R581e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UVRVm4T_1618305065; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVRVm4T_1618305065) by smtp.aliyun-inc.com(127.0.0.1); Tue, 13 Apr 2021 17:11:11 +0800 From: Jiapeng Chong To: dennis.dalessandro@cornelisnetworks.com Cc: mike.marciniszyn@cornelisnetworks.com, dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] RDMA/hw/qib/qib_iba7322: remove useless function Date: Tue, 13 Apr 2021 17:11:03 +0800 Message-Id: <1618305063-29007-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/infiniband/hw/qib/qib_iba7322.c:803:19: warning: unused function 'qib_read_ureg' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/infiniband/hw/qib/qib_iba7322.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index 9fe6ea7..3cb4429 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c @@ -791,28 +791,6 @@ static inline u32 qib_read_ureg32(const struct qib_devdata *dd, } /** - * qib_read_ureg - read virtualized per-context register - * @dd: device - * @regno: register number - * @ctxt: context number - * - * Return the contents of a register that is virtualized to be per context. - * Returns -1 on errors (not distinguishable from valid contents at - * runtime; we may add a separate error variable at some point). - */ -static inline u64 qib_read_ureg(const struct qib_devdata *dd, - enum qib_ureg regno, int ctxt) -{ - - if (!dd->kregbase || !(dd->flags & QIB_PRESENT)) - return 0; - return readq(regno + (u64 __iomem *)( - (dd->ureg_align * ctxt) + (dd->userbase ? - (char __iomem *)dd->userbase : - (char __iomem *)dd->kregbase + dd->uregbase))); -} - -/** * qib_write_ureg - write virtualized per-context register * @dd: device * @regno: register number -- 1.8.3.1