Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2481469ybx; Fri, 8 Nov 2019 05:03:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxQGK9xv8WEqdUbyMPO6nkNWisIRF6Zu4CBTD+bhYyj3G+VXCc6WdKBoPEZwgDppsWJfWtp X-Received: by 2002:a50:f058:: with SMTP id u24mr10219777edl.288.1573218204684; Fri, 08 Nov 2019 05:03:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573218204; cv=none; d=google.com; s=arc-20160816; b=znvXfyiwYv6d6rokfScX1eOF7fXDrdxh1U6I353M6xiD/ZwGqyRTpoc3h1ltUf86PX iLi3gx7wsJsNEyLdk4vaRTfZFfP81fl+V8lcW6BlFqRya4SiWqQ+dSbLgIU+LsrgaO9j wFwuAsM/u+toK0oozEA2o344GSSTheOwmOMjmpg/v/wPY53+Liw9APnWCUsoOg3kqHkx +XDNT2AA3az146wDB18NNgosN7WCLK0xsAKDkfbn3RrkjO6ZMdsThFWoZae2aohXhmQn s7Wjq/MT89guzzrye3Gf+xlWaw6TfA6JezilldByoBgz58tMyQCl4JKcUZCmeoGL6f+T eLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6fFt1ZLVVia10843rsyK8F6LgIm9rFapqPGOb1a1zZs=; b=Z4L3b8eme6uZla/+EyQUggHBR3G5bRhjN9iWbL/bHv8uZKX+BRHDS2p3V74FY0jOIN LYD10xwhblihnZbTehagCma7V64Eot2dWF1GLNtw1SZ07Q0V/oq9Q3XoMhg+Ji+zELJm osPDvTUaLr/f/epivsB1n5qEFW4Fcegc1TBbMuCajAVJ3BndVwLh5NCijihk5VFEsRDz wntOP2zL7+rMOjiRJbbegrwqrbniBArHHKUGSkgfbYD636+uLFAMjVNtOvZQGbNDv6qa A908kvIZm0kYEtzyyWuATyrP2XiRvWdl0exmj85gqzj3mo8ChGKesK3iytWNR99ImM6q nixw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=R9nDo10U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h49si4358579edh.2.2019.11.08.05.03.00; Fri, 08 Nov 2019 05:03:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=R9nDo10U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729141AbfKHNB6 (ORCPT + 99 others); Fri, 8 Nov 2019 08:01:58 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36706 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728638AbfKHNB4 (ORCPT ); Fri, 8 Nov 2019 08:01:56 -0500 Received: by mail-lj1-f193.google.com with SMTP id k15so6145263lja.3 for ; Fri, 08 Nov 2019 05:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6fFt1ZLVVia10843rsyK8F6LgIm9rFapqPGOb1a1zZs=; b=R9nDo10Ud+gNvAQJx2elWJ2ezKn4CYwaj9lzmRNdXz08cRh78MbVZXBE/b/1n9830H GTxAUYSWZutUrUKagsGjPC8/vcjW8kU/q7knuQiwKt2M/cK+vtRamqMJatpS1/Sa3gtc IR5Tc/3fEOCa/HsBcxU2W+UQQPA8VPCGGrF38= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6fFt1ZLVVia10843rsyK8F6LgIm9rFapqPGOb1a1zZs=; b=Qt3TAu1Iyvid5C+C8WRshZVfDR6AlmWqNdbK7jfmAQcWWrzthJp5Rq0FeFG6AUNf38 JHt/2sjWXgL1Drr9+2XHEWqL0//QNUB0XlPQ7lyUUzG0Yd2XRIoJaSzU01rGqd3ZFKbu IygCc8Los5I0Fpb5Wecbxyhc/eFaTTjuO98/qbsEqIbI3T/n0Hw7SEsgaSwlM4Lap9nC HXlgDRYOUI8b03K1g6E39muKFAuY1KMtqzRomLUMUegTEi5AjNUx+nCb5g822UNGxOr1 QRRz9CoDbq9o7KThYBUs7jIOOLPCDFXBWFpNUnszXIDkbqcCbRz54ylSxpkO/5k3Iwac Bxcw== X-Gm-Message-State: APjAAAVdv4ox/CfwXkhzVTYtlGz7YsK3B8VsEaiHSnMuWQDpNEn3wzZ3 QF5llkg/37nuCckXZH+D9tUckA== X-Received: by 2002:a2e:9119:: with SMTP id m25mr6925324ljg.24.1573218112597; Fri, 08 Nov 2019 05:01:52 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id d28sm2454725lfn.33.2019.11.08.05.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 05:01:52 -0800 (PST) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Rasmus Villemoes Subject: [PATCH v4 19/47] soc: fsl: qe: make qe_ic_get_{low,high}_irq static Date: Fri, 8 Nov 2019 14:00:55 +0100 Message-Id: <20191108130123.6839-20-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191108130123.6839-1-linux@rasmusvillemoes.dk> References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These are only called from within qe_ic.c, so make them static. Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe_ic.c | 4 ++-- include/soc/fsl/qe/qe_ic.h | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index 8f74bc6efd5c..23b457e884d8 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -283,7 +283,7 @@ static const struct irq_domain_ops qe_ic_host_ops = { }; /* Return an interrupt vector or 0 if no interrupt is pending. */ -unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic) +static unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic) { int irq; @@ -299,7 +299,7 @@ unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic) } /* Return an interrupt vector or 0 if no interrupt is pending. */ -unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic) +static unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic) { int irq; diff --git a/include/soc/fsl/qe/qe_ic.h b/include/soc/fsl/qe/qe_ic.h index d47eb231519e..70bb5a0f6535 100644 --- a/include/soc/fsl/qe/qe_ic.h +++ b/include/soc/fsl/qe/qe_ic.h @@ -53,14 +53,4 @@ enum qe_ic_grp_id { QE_IC_GRP_RISCB /* QE interrupt controller RISC group B */ }; -#ifdef CONFIG_QUICC_ENGINE -unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic); -unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic); -#else -static inline unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic) -{ return 0; } -static inline unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic) -{ return 0; } -#endif /* CONFIG_QUICC_ENGINE */ - #endif /* _ASM_POWERPC_QE_IC_H */ -- 2.23.0