Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2481186ybx; Fri, 8 Nov 2019 05:03:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzI/uShekmcT9Y2zmraGA4KSEbozyd83wdMUtdKo/KPMdT/t0ghQwNJEmyTAzmrvmIrjkTf X-Received: by 2002:a50:b262:: with SMTP id o89mr9839593edd.170.1573218193606; Fri, 08 Nov 2019 05:03:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573218193; cv=none; d=google.com; s=arc-20160816; b=Kskgwg+5UzoQkVTrA+vP3e8lK2jCKMl+JB+WxrO5Wodq4nuA1Ub8/208l2Wve4vPFc ypOLxEJhPULSU6ooaf0ioDOIiUjA0P9M9eNqBUtGuR5W2mqfpNIoZCMiufs0U3/weIGJ lfotus0v7NEwTBF5dWEIgamNMM4jHAvOviw2H3k8E8JFRB6QKRSZYyChEyy/7iOoFu3V dh0yh1HlmIsP9YFDDviOCZ/vy5P3US1Aaj8IDw3C897iIDwpaEQisVbHsrarxv8CnXGW RVP68BpZrv4rcuDCvxEvzrp16/MtoWjfOTUCIAFh26IIDt8GsUpOcRSZ06YYVSyY/dQX sqvA== 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=I90vJMFtkMg4SHfbJTMtwkyg7nT+nson2WyIsvh49PY=; b=nqeYxAl/Qwma45Y0s19EETXLjA/XqZf8+7sBqRdgwjv3kJS5pQao1XW/KfqE3lA3Xt tdbJv/+nPih8NC+KAyF3oKFgKqgUSm5Sm8a+g1jFCx9k53yD0aJaiQjzSN/Hubs56EnB HtKb6smARRK5HPKrNxr+sP7wnJLVF082XHybzTsah/KDsXhYZ0h/u7/8tDpbzssK6CXj RMNwrZaS1/zw8lZapS6ferNd//3O6bNNKShEgM/2sXLOxoSc3X931Q5Feg9Co9dw8rFt aZ9jrUY8syjSiouKN8EMX58DhQrFcbh9waGDvqdgnlQm2qiOxEgYBmMRojmDDW7gS+T7 psvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=PbhKDYM0; 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 j52si4843861eda.438.2019.11.08.05.02.50; Fri, 08 Nov 2019 05:03:13 -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=PbhKDYM0; 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 S1728618AbfKHNBy (ORCPT + 99 others); Fri, 8 Nov 2019 08:01:54 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45730 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbfKHNBv (ORCPT ); Fri, 8 Nov 2019 08:01:51 -0500 Received: by mail-lf1-f66.google.com with SMTP id v8so4385396lfa.12 for ; Fri, 08 Nov 2019 05:01:48 -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=I90vJMFtkMg4SHfbJTMtwkyg7nT+nson2WyIsvh49PY=; b=PbhKDYM0OBT3xksAul3h1OM/o3gXPaDY1kEE4xazagRV/L8j/vBTOJsN/q/lCeLrIQ +Ce/u3WfXWThHBB36VZhxR/l13x2XffGQ66TkA+Jr+prYmzkAZaoBC3DW3y8j/4RPrBt Hf82PAq3Fui3TzL3AVvkgWkK0lDssi+UB5SG8= 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=I90vJMFtkMg4SHfbJTMtwkyg7nT+nson2WyIsvh49PY=; b=JMtwDM6A+4KLPkMCS9AjOHh7AX0GFuXj3JGksNV3TJ+35e0ICAdWHmWNTiU/5jll+Z uu75MpIVU/YWG+62nroeFF3Z+93APb5QRRhOpx1feyfPeuuv1G3c505c8cHzwKdQpFiy tmDABlpEYkdVjpQaam45jePGcAXF+/jYDY2xR+YuGVB5A5QrLQ1eb1TAOBg4fj2KA9oY 5R50PwiPMZzRGsluxFsdp9r9XBtkQjarOfFKlgHAXNqxGWEZUNudrRxJZM72YoSTtuLI RN5AudhkzFcBbKDZ+q01m2OkPypCfMmwIR1RrY3XlomoKhjjzai7k+ywmFUy3LrD+vsP ZyLA== X-Gm-Message-State: APjAAAUWxcS+Q6clLE/2rqwyjzsUV4wsK3WeZ80O4//B5AvKeZov2u5i bFsZmYoZrpc/yiMJFFONWEejMHNS+c3c/iAj X-Received: by 2002:a19:4f4c:: with SMTP id a12mr6597151lfk.18.1573218107886; Fri, 08 Nov 2019 05:01:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 05:01:47 -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 15/47] soc: fsl: qe: move qe_ic_cascade_* functions to qe_ic.c Date: Fri, 8 Nov 2019 14:00:51 +0100 Message-Id: <20191108130123.6839-16-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 functions are only ever called through a function pointer, and therefore it makes no sense for them to be "static inline" - gcc has no choice but to emit a copy in each translation unit that takes the address of one of these. Since they are now only referenced from qe_ic.c, just make them local to that file. Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe_ic.c | 42 ++++++++++++++++++++++++++++++++++++++ include/soc/fsl/qe/qe_ic.h | 42 -------------------------------------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index a062efac398b..94ccbeeb1ad1 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -314,6 +314,48 @@ unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic) return irq_linear_revmap(qe_ic->irqhost, irq); } +static void qe_ic_cascade_low_mpic(struct irq_desc *desc) +{ + struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); + unsigned int cascade_irq = qe_ic_get_low_irq(qe_ic); + struct irq_chip *chip = irq_desc_get_chip(desc); + + if (cascade_irq != NO_IRQ) + generic_handle_irq(cascade_irq); + + if (chip->irq_eoi) + chip->irq_eoi(&desc->irq_data); +} + +static void qe_ic_cascade_high_mpic(struct irq_desc *desc) +{ + struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); + unsigned int cascade_irq = qe_ic_get_high_irq(qe_ic); + struct irq_chip *chip = irq_desc_get_chip(desc); + + if (cascade_irq != NO_IRQ) + generic_handle_irq(cascade_irq); + + if (chip->irq_eoi) + chip->irq_eoi(&desc->irq_data); +} + +static void qe_ic_cascade_muxed_mpic(struct irq_desc *desc) +{ + struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); + unsigned int cascade_irq; + struct irq_chip *chip = irq_desc_get_chip(desc); + + cascade_irq = qe_ic_get_high_irq(qe_ic); + if (cascade_irq == NO_IRQ) + cascade_irq = qe_ic_get_low_irq(qe_ic); + + if (cascade_irq != NO_IRQ) + generic_handle_irq(cascade_irq); + + chip->irq_eoi(&desc->irq_data); +} + static void __init qe_ic_init(struct device_node *node, unsigned int flags) { void (*low_handler)(struct irq_desc *desc); diff --git a/include/soc/fsl/qe/qe_ic.h b/include/soc/fsl/qe/qe_ic.h index a47a0d26acbd..43e4ce95c6a0 100644 --- a/include/soc/fsl/qe/qe_ic.h +++ b/include/soc/fsl/qe/qe_ic.h @@ -67,46 +67,4 @@ void qe_ic_set_highest_priority(unsigned int virq, int high); int qe_ic_set_priority(unsigned int virq, unsigned int priority); int qe_ic_set_high_priority(unsigned int virq, unsigned int priority, int high); -static inline void qe_ic_cascade_low_mpic(struct irq_desc *desc) -{ - struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); - unsigned int cascade_irq = qe_ic_get_low_irq(qe_ic); - struct irq_chip *chip = irq_desc_get_chip(desc); - - if (cascade_irq != NO_IRQ) - generic_handle_irq(cascade_irq); - - if (chip->irq_eoi) - chip->irq_eoi(&desc->irq_data); -} - -static inline void qe_ic_cascade_high_mpic(struct irq_desc *desc) -{ - struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); - unsigned int cascade_irq = qe_ic_get_high_irq(qe_ic); - struct irq_chip *chip = irq_desc_get_chip(desc); - - if (cascade_irq != NO_IRQ) - generic_handle_irq(cascade_irq); - - if (chip->irq_eoi) - chip->irq_eoi(&desc->irq_data); -} - -static inline void qe_ic_cascade_muxed_mpic(struct irq_desc *desc) -{ - struct qe_ic *qe_ic = irq_desc_get_handler_data(desc); - unsigned int cascade_irq; - struct irq_chip *chip = irq_desc_get_chip(desc); - - cascade_irq = qe_ic_get_high_irq(qe_ic); - if (cascade_irq == NO_IRQ) - cascade_irq = qe_ic_get_low_irq(qe_ic); - - if (cascade_irq != NO_IRQ) - generic_handle_irq(cascade_irq); - - chip->irq_eoi(&desc->irq_data); -} - #endif /* _ASM_POWERPC_QE_IC_H */ -- 2.23.0