Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6873885ybc; Thu, 28 Nov 2019 06:59:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyeUnl672PZMCpJ2VEZo2LQA51Ego/53PWRZwI30141NQfbbxByvW74ka6ObyJWhZ/P7XYd X-Received: by 2002:a17:906:dda:: with SMTP id p26mr53631326eji.77.1574953170664; Thu, 28 Nov 2019 06:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574953170; cv=none; d=google.com; s=arc-20160816; b=xpVbif+YqvH6GzI+UNRSxZeUW4FQ9IjlEW2Kr1VRAbtOwC2koek2MfwrCArGHNuZDS gL34yh26TRThb1fgjsHmhOuRsRVkuDykkQzRwuKpQYYJHbqdAvcLrqc78l5kLVjx78aW roVXgIIV4Ae4v7xxITGp4SncjUfZZcPSyfz/ieOJf2GHMlhZ2n9qiY/NGJCXskB8VOTi qycoFqlvdyB5CW3gIQKSEI82nb22N0kS4zyWFm5zv2EVhvJd6uLU8aPaxAj8VeBspnTb eObAA/0Ivy+MTSHrH1wgVD9ODkeJDZNt2xH+6v8Q3O3Ku++jIvZBC+FS6gGadayeYCxB unHA== 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=6RPbfdv0hDBEMr5jRu0991VlpKTzzf1sC9/XAmy4sgs=; b=c1OK/zibZj/KAPdPwoOm/S3XIcdEIVv5Mgdk6+uZFFHMzQAepajG14a1FQRGGxjW1x PjwPH55gfI2+KmpGu+rjO3/VJBPqwE86+xB3YZsCmpIfo4nu+JEK/tH16bQEUwVSI88e 4OMWKqxyA8n2DcN+6qQRA2kLpcV9uGD1zFD/KGlJcv3B3e82oaKsS+Tc+Zh4mUFF5+JW XsmJ5q3Q9JJlN4rnP6cJhnpCRWBKfg8y5kLHloyRvhqAfDYTTilsw7F5Z0KfLOW9HwKh UgjwKu/eL51vEG5jVkUmssK0oZLTHRIPiGxdpNp/VRz+nPlfTmGnU3IexIa3FhFqC2VP /VEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=G3K0t1nl; 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 ec6si11598586ejb.174.2019.11.28.06.59.06; Thu, 28 Nov 2019 06:59:30 -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=G3K0t1nl; 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 S1727399AbfK1O5h (ORCPT + 99 others); Thu, 28 Nov 2019 09:57:37 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38880 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbfK1O5b (ORCPT ); Thu, 28 Nov 2019 09:57:31 -0500 Received: by mail-lj1-f194.google.com with SMTP id k8so18298410ljh.5 for ; Thu, 28 Nov 2019 06:57:30 -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=6RPbfdv0hDBEMr5jRu0991VlpKTzzf1sC9/XAmy4sgs=; b=G3K0t1nlzwA3d3jHn4yj1bqgPjSU7rkRn5xHQvlnCYStcAfU2EOLNyPlf58l/kRURv oxPucVu+N8o4zYJ1N5TlrwsqpubhOOPQAQvU5PVBJ6o8v2W27PBswbMNL7ah8jpFm1VU Tb/0CmRp1Xf8vt82JUTxMYMrxMphmZqJV9kew= 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=6RPbfdv0hDBEMr5jRu0991VlpKTzzf1sC9/XAmy4sgs=; b=S0yuclAkYAj2FMCLW3f2yTSAZDqz2XB+jOKiYYCegZKKODlxgVk3OWkb9oALKdF04c 4HND0Yvtuhbqe2itIFrsB21ATgPUPXI0wc5vdTAj9DJk1wwAF0zhzZzsRVYiARyvkO2A L20mw6ZRjgBSWjkrdtetgRp7srAdPqmEhfC4WNkcf5SiUD4qgH5wZ6FLwj3mG+4Vfs4A QvA4yNdxv8tVusJmOOUvR0UmbLtdLrynuex1pxE6+5wSQenMFomXapRqgXgFM6xbvoVE YeWpdzV5yV4ECpHASoYd9psjVQUIYkAEehmFb/lU30ij8Ll4tz96N9T8bD7DLAjI5hF7 yzgQ== X-Gm-Message-State: APjAAAWh6aBJVcGpL/2CcanC62XRYs0HE8ld9PzeVpZDh9ya+i3SOZnN lnzqEFkte8UNwW4o6pxp+CbAlw== X-Received: by 2002:a2e:8855:: with SMTP id z21mr36009830ljj.212.1574953049771; Thu, 28 Nov 2019 06:57:29 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id u2sm2456803lfl.18.2019.11.28.06.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:57:29 -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 , Timur Tabi , Rasmus Villemoes Subject: [PATCH v6 19/49] soc: fsl: qe: make qe_ic_get_{low,high}_irq static Date: Thu, 28 Nov 2019 15:55:24 +0100 Message-Id: <20191128145554.1297-20-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191128145554.1297-1-linux@rasmusvillemoes.dk> References: <20191128145554.1297-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. Reviewed-by: Timur Tabi 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