From patchwork Sun Mar 19 15:37:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13180408 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08C4FC7618A for ; Sun, 19 Mar 2023 15:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MyG74nOnHXpitxVNj3MqLE0QTmEKTSpork05YS7Wu30=; b=v3QmQ2puT0pqKN /PYDgCQSXpoMtCrUhIx7yOHbBLtE59r6TyMXIKW4ktf8G+yyMR1VNo2pv0VewG7tpST6veaU1T9+F 8rFl5ZoDGOgSa/s5GPEnb1RmXVLjp92TJPkgioWVTIwpV12386HvEkhxYCUqWxO41YanUVW5l/5WL 9Nmrf0snyA6fKj/DjuzhJQKoguWZQIvOCCe5EANu/59dteIkfcp+xAhtfzG3X7yLXFItmrANh148n XecjwZJC4W/sK0iPL4C3I2acRiC/eJQvFNHVCv0g5w6CVOv3kOY0b7N7bTfclomNs3LU7UC4YB7FZ 00Kn8XPiyUPeZq9vNPcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pdv6m-006wl6-2B; Sun, 19 Mar 2023 15:38:08 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pdv6i-006wkJ-0N for linux-arm-kernel@lists.infradead.org; Sun, 19 Mar 2023 15:38:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679240275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+XIPLHs3kS1RfXeK+ON9SElHE9AkUNrNvAKZY1Ht/Lw=; b=dc84lPTUfaZjERp6D8ZDygAEx4gnfPJFlGoqqKH3pVJCF8kBdNWWU5wmvZmmK2NMWSahLO OyMpl6QH/+JagM77l03i/NwABDsDv42UGdFEm6ew1hoJjEkv00Sner2eNH14VtIkNyHvrz Zrq4BuBja7vCHLBBlmeX3HXA92YSIMs= 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-240-9ung2fctMJuGEUc1-wqt8g-1; Sun, 19 Mar 2023 11:37:53 -0400 X-MC-Unique: 9ung2fctMJuGEUc1-wqt8g-1 Received: by mail-qt1-f199.google.com with SMTP id t22-20020ac86a16000000b003bd1c0f74cfso5417250qtr.20 for ; Sun, 19 Mar 2023 08:37:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679240273; 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=+XIPLHs3kS1RfXeK+ON9SElHE9AkUNrNvAKZY1Ht/Lw=; b=2DcVqp78xtZIuuHVmg345Q1ZK6VjvRNL8WnPkh/Y2uQVM9E0UrEUdqQce0ym06wJFS +8zxaFgMI92ZWG0extyM+gM7yEZuf9XasDwsXQNnx6ca6raC+NyRvoF2aLX7Aal5irZ0 QDfIWpw9Y5lreniAHrRxQLL3MtA2cBCJLPtJfYgJCUo1/9PqXEIU8uUgwFOpSMamiz1T h8wp0HdBbNXX+cFUgMIBf6mbRC4Daz6x/+PYLAZmVxAWzPO9mQbYgC4o7eyir7Qf/yUr avv37w60RSE0J6e2EqeqcwkrOLOfqhBkaKKnQHP8+XohNZyJqf82NPnO/WPvzuAmcCxk Skng== X-Gm-Message-State: AO0yUKWRGnHc5KRL3PXA9oJApGwOrwVbeh0o9Sg2E+A9ko9IMwznRJdY eGpHqOcZvHFIvcy9X+qBRskbqbW3l7d/GaR8OKfUONFAbQwzmTvC7AMIFxW2WMCGGArGY9VlEx3 rihe5Rbd0fEVBP4BXbg81D1iwNe5dSIJE1JGJ2t9/l54= X-Received: by 2002:a05:622a:34d:b0:3d0:7bdf:42c4 with SMTP id r13-20020a05622a034d00b003d07bdf42c4mr21989107qtw.59.1679240273164; Sun, 19 Mar 2023 08:37:53 -0700 (PDT) X-Google-Smtp-Source: AK7set/BlpAZdEhiIGBHLKI8KfO5y+gSjhpmxCIlxlV78XjP/E7ZdJLDSyE0FY32cU8FWAt7rGqAbQ== X-Received: by 2002:a05:622a:34d:b0:3d0:7bdf:42c4 with SMTP id r13-20020a05622a034d00b003d07bdf42c4mr21989096qtw.59.1679240272931; Sun, 19 Mar 2023 08:37:52 -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 o188-20020a375ac5000000b007460093cccdsm5625801qkb.25.2023.03.19.08.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 08:37:52 -0700 (PDT) From: Tom Rix To: qiang.zhao@nxp.com, leoyang.li@nxp.com, nathan@kernel.org, ndesaulniers@google.com Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] soc: fsl: qe: remove unused qe_ic_from_irq function Date: Sun, 19 Mar 2023 11:37:49 -0400 Message-Id: <20230319153749.1705822-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230319_083804_392705_164B103D X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org clang with W=1 reports drivers/soc/fsl/qe/qe_ic.c:235:29: error: unused function 'qe_ic_from_irq' [-Werror,-Wunused-function] static inline struct qe_ic *qe_ic_from_irq(unsigned int virq) ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/soc/fsl/qe/qe_ic.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index bbae3d39c7be..c0b4f865fba9 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -232,11 +232,6 @@ static inline void qe_ic_write(__be32 __iomem *base, unsigned int reg, iowrite32be(value, base + (reg >> 2)); } -static inline struct qe_ic *qe_ic_from_irq(unsigned int virq) -{ - return irq_get_chip_data(virq); -} - static inline struct qe_ic *qe_ic_from_irq_data(struct irq_data *d) { return irq_data_get_irq_chip_data(d);