Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6873680ybc; Thu, 28 Nov 2019 06:59:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxsV4yVYvGWygKGv3c65J44pTMW+IKl/4CNEDATdboARTB1Y2pFMaXpm1XbpihALpELWV3B X-Received: by 2002:a17:906:52c4:: with SMTP id w4mr53185102ejn.99.1574953157592; Thu, 28 Nov 2019 06:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574953157; cv=none; d=google.com; s=arc-20160816; b=LLpvgz1JwEySPatdr/BBZELbSQCYkYz+q/jFdH6iFLE43j+z6/NnCp4epPqcuSeTqq boUTdncQP5+Mb4+uDXmcCBXYxj64VvlY5lFhiy07ArhwMTOPXEwUPPcaqkTIvvEelCEz oyyUojBbzzdVqJpB8udcw9i0NUrYlyu+UQdTBacuhx2evXoaeUB2eARk1iaFGBAGkn03 BGD09oKo5QYojPjc4QRbNK1KTHbe5CcmipR10Sa/6j94vjgjsTmTY9FRpt+uf7XsBOIU jiiA2AC1Zkta+RuV9AqFZmIPjzIjUy9sLRTFIDkLPVpvzKsd1IppEmbL4gMYc6niKzwX S1KQ== 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=qKdvwcnizpIkFI9t57inNaEi/biZWbwu3x6mukvDQNQ=; b=EPin6lT93v/ugjlc/WEx6X7ZlZtgi3syQk67ShiMOEBbQ1uDbRfUpBMxNFsWtLJOge n+ffFqCLXi0674I7KYCqcbt4O3cqwRDSZvqRMKmhBHfKinsweZPDQxwjRbIM6Zqh2DoE Zm7Dr4KvrR/PtrFzhi5gB7bY3CaT2bpcC0VsIj6/m/bh1HqW1KpdkTWKZL46Ttt4Z+JG kgcLYKubNzCUCq1QkFpVTefS8RNPdecOZkXvLnGCCdMrK1A1VayQ8HHzTZ5uVtiU2EsU joexbGwmT4ZLsHSfRX0FAH0w1F8eYr39IhrIvSdgLTp265nJGXk1EuQJueekXTqZy2dM e5KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=GXR7h189; 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 z28si13767007edm.123.2019.11.28.06.58.53; Thu, 28 Nov 2019 06:59:17 -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=GXR7h189; 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 S1726401AbfK1O5a (ORCPT + 99 others); Thu, 28 Nov 2019 09:57:30 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45801 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbfK1O51 (ORCPT ); Thu, 28 Nov 2019 09:57:27 -0500 Received: by mail-lj1-f194.google.com with SMTP id n21so28797418ljg.12 for ; Thu, 28 Nov 2019 06:57:25 -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=qKdvwcnizpIkFI9t57inNaEi/biZWbwu3x6mukvDQNQ=; b=GXR7h189KWmMuCEgAsfesMkaS7/yLULcQ3ermBBqiLoePUOb3iFLzhcdcp6t2wVZgq sfJPgK7lRcAJ2VXBnfko0WUQ115Crvh+6j74wNi82eYi/gqtd2ffzNJSUgIpN69VAuKw M7R+MvAUcM078M4y/tyK7GbHanw3DvlHtiVeU= 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=qKdvwcnizpIkFI9t57inNaEi/biZWbwu3x6mukvDQNQ=; b=LzaRycgKpiSL9868iL41H5qR2Whko82P4DrJSHof8kwv0bui8mUKGy0eSwiorqheIc nplb8jxH40fb8Ya66U8Tgt4LwlV6UMT8bfBI6iiMEny72EHTAzbHjvE8kEXo1O+rQWFF fKrctM53HkJpDLWFABW/N3GU/s8POZCgmtmMEC8AIwlYo8Hhj+SBXwHcOWb90AiLT3ip HNyMLmhaYwQGC7cUIUionzlheGPZbfEPWoft6CzCWqbUGmtXfAmx5U6WSYR8nMfsykVe oPDkA29fB4vBwLf2niiOt/vs2xGv2qvA21q361DdaWsQraofENjDS+xov+d0o+8aUUeS X3nw== X-Gm-Message-State: APjAAAVWxxvFxfgSmWZjqGeEPO/w50PrHyZuZzoWEXZ+kqKg7WMDMFDz SfjpJonNJxuHjvf4Av58gpeH2A== X-Received: by 2002:a2e:998f:: with SMTP id w15mr5203320lji.169.1574953044783; Thu, 28 Nov 2019 06:57:24 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:57:24 -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 15/49] soc: fsl: qe: move qe_ic_cascade_* functions to qe_ic.c Date: Thu, 28 Nov 2019 15:55:20 +0100 Message-Id: <20191128145554.1297-16-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 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. Reviewed-by: Timur Tabi 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