Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp612523imm; Wed, 6 Jun 2018 03:11:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ6X1Umgjxg35jqWHo+aLsDeoR+q1jcKyOCa/XUWQeOovyB4aRQ08/B4K4XH/hLJZflUEqw X-Received: by 2002:a17:902:8a4:: with SMTP id 33-v6mr2574050pll.343.1528279870312; Wed, 06 Jun 2018 03:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528279870; cv=none; d=google.com; s=arc-20160816; b=esAykm7s40qYGJ4CuZeiy0RxW30cxTtu2p/CawMEY5TPz/8HqltyiTKwVHDcE6158K r60cmxclnJPjJe9MTbdTiT0AkueSZLCTZbWBbktv2ZLhv5fmolmo6O2RRApO2Dh7wIoH sGHJFuvIwM2HYWk7VuNHSMD1J4px4mh54FcH2r5hpwE8f2Y+bvC1NHrspuAA7zMGGsww bvZ1GlW37HhuMkeoSi5klXj87hhMj/uUYnyGxYNFWjHSdk94FQfvD+MA0l5Rgdx6kSF8 mBw5y/k5+aPWv9omTqi/Z6CrR0R8VaXXJdTr2WaLqsppFhOigrAPM+VIoFf2KthvcOrK 2e0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=EzaLcHcU3eu//paeI44fDYXW2fvJhZGZivgaAMWWX9g=; b=OeXkZQgl2ZG9pxInipErUKK17qrbA5mNVR0jPZkZrrzakTDbTSwy50K8/iD5i5caqZ T7VIiXJjYwWSiRVEUHl31ECNSryyHf4fL+NZ5ay/kGTQRgqKL84S/hVkR35wt3K6QWMS yEyj8MqsQB6LoGxaos6gm8Ahw60XFt6kF6H+8zW0FQb+Qj+ooPRecy2+0tNYKR+6Vr/7 3eUh46ReZ61QVUguYQ/1/YI3hYLsN3TEwe9OgyJG+qoPqMs+OQObo+9AuWlP8F6Nbad/ 77rOEIm7ci4B8oMMNTuBExsKZz6LB3dxJw26Y3C8OkVqSn/w5e0so8vagmevAX+BO4ue QS5w== ARC-Authentication-Results: i=1; mx.google.com; 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 w11-v6si14105667pgp.140.2018.06.06.03.10.56; Wed, 06 Jun 2018 03:11:10 -0700 (PDT) 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; 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 S1752410AbeFFKKZ (ORCPT + 99 others); Wed, 6 Jun 2018 06:10:25 -0400 Received: from terminus.zytor.com ([198.137.202.136]:36549 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751397AbeFFKKX (ORCPT ); Wed, 6 Jun 2018 06:10:23 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w56AA4fW1740062 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 Jun 2018 03:10:04 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w56AA3I41740059; Wed, 6 Jun 2018 03:10:03 -0700 Date: Wed, 6 Jun 2018 03:10:03 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Arnd Bergmann Message-ID: Cc: alexandre.torgue@st.com, linux-kernel@vger.kernel.org, marc.zyngier@arm.com, hpa@zytor.com, tglx@linutronix.de, radoslaw.pietrzyk@gmail.com, benjamin.gaignard@linaro.org, jason@lakedaemon.net, mcoquelin.stm32@gmail.com, ludovic.barre@st.com, robh@kernel.org, mingo@kernel.org, arnd@arndb.de Reply-To: alexandre.torgue@st.com, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, radoslaw.pietrzyk@gmail.com, benjamin.gaignard@linaro.org, jason@lakedaemon.net, ludovic.barre@st.com, mcoquelin.stm32@gmail.com, mingo@kernel.org, robh@kernel.org, arnd@arndb.de In-Reply-To: <20180605114347.1347128-1-arnd@arndb.de> References: <20180605114347.1347128-1-arnd@arndb.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchip/stm32: Fix non-SMP build warning Git-Commit-ID: a84277bf3efcc7bb5b5a5eec62de5c134cb47ee5 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a84277bf3efcc7bb5b5a5eec62de5c134cb47ee5 Gitweb: https://git.kernel.org/tip/a84277bf3efcc7bb5b5a5eec62de5c134cb47ee5 Author: Arnd Bergmann AuthorDate: Tue, 5 Jun 2018 13:43:34 +0200 Committer: Thomas Gleixner CommitDate: Wed, 6 Jun 2018 12:05:19 +0200 irqchip/stm32: Fix non-SMP build warning A CONFIG_SMP=n build emits a harmless compile-time warning: drivers/irqchip/irq-stm32-exti.c:495:12: error: 'stm32_exti_h_set_affinity' defined but not used [-Werror=unused-function] The #ifdef is inconsistent here, and it's better to use an IS_ENABLED() check that lets the compiler silently drop that function. Fixes: 927abfc4461e ("irqchip/stm32: Add stm32mp1 support with hierarchy domain") Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Reviewed-by: Ludovic Barre Cc: Rob Herring Cc: Benjamin Gaignard Cc: Radoslaw Pietrzyk Cc: Jason Cooper Cc: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org Cc: Maxime Coquelin Cc: Alexandre Torgue Link: https://lkml.kernel.org/r/20180605114347.1347128-1-arnd@arndb.de --- drivers/irqchip/irq-stm32-exti.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index 5089c1e2838d..3a7e8905a97e 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -552,9 +552,7 @@ static struct irq_chip stm32_exti_h_chip = { .irq_set_type = stm32_exti_h_set_type, .irq_set_wake = stm32_exti_h_set_wake, .flags = IRQCHIP_MASK_ON_SUSPEND, -#ifdef CONFIG_SMP - .irq_set_affinity = stm32_exti_h_set_affinity, -#endif + .irq_set_affinity = IS_ENABLED(CONFIG_SMP) ? stm32_exti_h_set_affinity : NULL, }; static int stm32_exti_h_domain_alloc(struct irq_domain *dm,