From patchwork Mon Mar 20 12:52:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13181135 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 92785C7618A for ; Mon, 20 Mar 2023 12:53:04 +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=CwQzMqhPgoNYSfdfWaCQR1GxKBdfYMkw8ZC6H7iNnnw=; b=cBKZi/4hBMP2NU ccDZdaLMYxirjTUj1KZfuSZHjvwycgAFuQqWP3bcjdZPDFvfkvTSFUBWQqYGMz51C609KxDmARn/X TzcS+pWz5KQv7javb9dbDWNQVuMOHHqNz9kqqGjRvDmSxIxDkkAMcjo/UvfrxmI9VgnDrYcpi8uZ3 SOEdvtUWfY/f0vE8boxkStbj8Cc6CuA3PKagLaUAtvqbhLfmEpzMjo0XVqjsZHntx26Ps5jlRwNCR 6IWcdcn7mrPAotZTyU93KV+gJt37cRTJ7uxxQ8GsuyD1qCHIxOaW9hsChrpBKs9+RkPN4kQtb6fmo RfwPc51Ys3jO+dCXFizg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peEzj-0090nO-2Q; Mon, 20 Mar 2023 12:52:11 +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 1peEzg-0090mW-0a for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 12:52:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679316727; 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=j7ASg0gkUTJq52inUxEUZw0nsEnRgkwG95p6EniSL+I=; b=cmQlh7XP2C9m8YGfsIZztnfLZDtIWnY1dlO4YPAtcGxBa0BfWrKflndbMZHABy7ERIckL9 1s7Cb3Mbfdf56aydr1gSdo5erKc8jz9i4pSVr+h9kXheCzDyOd7vEILaoqEi6pCjagO3rg n3UdQ15EkhLSDuxZYx2c72jcJVSMmOw= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-546-dlBTUtYDOJWjWwlsPyJDGA-1; Mon, 20 Mar 2023 08:52:05 -0400 X-MC-Unique: dlBTUtYDOJWjWwlsPyJDGA-1 Received: by mail-qt1-f197.google.com with SMTP id x5-20020a05622a000500b003e259c363f9so1140927qtw.22 for ; Mon, 20 Mar 2023 05:52:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679316725; 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=j7ASg0gkUTJq52inUxEUZw0nsEnRgkwG95p6EniSL+I=; b=5odB/k9TjvOjmaUlHChKEAv2UXEuEKjpcyTUYNDLRuK+w8626ltj3nluEin41kxKsd ha5pbqjTmkFgFwx3ucNpDdNf2yOWh2SiN9sUDQzGjjlHPI4MKsNF7H8yUo1dET4Bj4gj W4wlsHvKvYYC/Hz3xdXGELPEtL5pxRvhvxAt4FZ4YIX2a2IKrVJ3eeSdDXUT0cg9H6s+ Dj9yQlYG8Cx29q089MAK02mPyE/jVuoelzF9GA26+CyCIvtI8Eazp+Xu0A+FFu72go1G ndbGrntGmTKSREsc3n0j5OxUvIkdfQVYoTR5cZR6bFdH6lnN2xYH9ZIzgyIjS30rJeY/ gTLg== X-Gm-Message-State: AO0yUKXOL2/H7do8b+FHbyStTMCCsDlUx4pv1oQDD5ztZXuwdh4ZaojC 7HimqfFP4SFz+/3uCt5S8Coi2Wz+Fc/P3vyyBem8JXRXIiAJ0xJAil4NaVBGTbqDpVJXHEj/aQC kXEz2pocbaNZJkD+D4t+YvFkKnLGDds8x41E= X-Received: by 2002:a05:6214:29c1:b0:5ac:239a:9200 with SMTP id gh1-20020a05621429c100b005ac239a9200mr36792342qvb.9.1679316725187; Mon, 20 Mar 2023 05:52:05 -0700 (PDT) X-Google-Smtp-Source: AK7set/mIgQ9WLkpN/lX38TAKIMzAXzxhdDQGgmTFJDrdCZybZKyAGo36og/nqUn3oQNrEhjhBPFaw== X-Received: by 2002:a05:6214:29c1:b0:5ac:239a:9200 with SMTP id gh1-20020a05621429c100b005ac239a9200mr36792313qvb.9.1679316724937; Mon, 20 Mar 2023 05:52:04 -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 r132-20020a37448a000000b007466432a559sm5038056qka.86.2023.03.20.05.52.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 05:52:04 -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 v2] soc: fsl: qe: remove unused qe_ic_from_irq function Date: Mon, 20 Mar 2023 08:52:02 -0400 Message-Id: <20230320125202.1721775-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-20230320_055208_293416_6511B421 X-CRM114-Status: GOOD ( 10.27 ) 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) ^ The use of this function was removed with commit d7c2878cfcfa ("soc: fsl: qe: remove unused qe_ic_set_* functions") This function is not used, so remove it. Signed-off-by: Tom Rix Reviewed-by: Christophe Leroy --- v2: Add to commit log when the use was removed. --- 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);