Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2484083imm; Mon, 28 May 2018 08:58:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZphvUVlm0H7U2QeZTv494/gf9+9Ea8LuArNp22ZgSgKARtSHUVXxQrYGYib8/tEAR3wDftj X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr14349556plo.329.1527523126619; Mon, 28 May 2018 08:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527523126; cv=none; d=google.com; s=arc-20160816; b=dJFaqxKpJBp8XsZgJklvryaLJPTF9JXgs0PhDIo1bDwrolQ87JXeIBUE61h83A6Rsw 1/FKMac8PqjN47evO3QY6OncwOg0rsukWUTTYTbuNqQwNruaNIoqV46PJNY402Mq+iw6 /Y24caz3M+ntCjWVEdQyW+tBjOslY8UVWi0ZwC9HsoSmok2Nd21xOshWCgd6AFCjlp07 VLQbMJ13HbTVE7AwTXHTs4kNy6caFMVORZs2iy82tSiwvbsgwqHYTSh2uy7WqSrzO06i dSYVh4cifSvmbb0zeHTxz1F/9fozCxlUsjNvX7TZcZsOPVn4/CD5QldWF0TF7ENUM1fw YzDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2bD2IBybtKu2PsCUC5u0LgH3dV/YVoedQeppN7J35oo=; b=0rOAlEvDUrsL8KuiMSWRlDTG+n2Cpw9bCxlxRTGOFvSZsDxwQEnBYMURP2VWmxROfe wJjCh8X8xt372lkPXrSfAV4pIIQtyg/EsU6ekjF0EeT838LG6JvXC8vbkAfNR9eketVL jjJIKfv7HDuMYbEVmVZ+zdzgeRcSjA6vjELQ/jZ3/rCrwmy4M6aP41na02qEgGIhLA+g Cglknp8T5Ep7TarTJrajSQ2DRG0K2g2x60df2AMiTtjjKTVUQpfRug76+nzVBTSKGofn tMEE/Yi3EbS49pndSg4MRmE1vhM4pfdZVvPjYd2NaJG7VFiuL6Nvs4NJd7o+NpYJTrgT QKRw== 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 b6-v6si29120391plx.211.2018.05.28.08.58.31; Mon, 28 May 2018 08:58:46 -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 S932694AbeE1P4y (ORCPT + 99 others); Mon, 28 May 2018 11:56:54 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:46901 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939796AbeE1P4P (ORCPT ); Mon, 28 May 2018 11:56:15 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0M53xy-1gG09Q0DuQ-00zG9y; Mon, 28 May 2018 17:56:06 +0200 From: Arnd Bergmann To: Thierry Reding , Jonathan Hunter , Arnd Bergmann Cc: arm@kernel.org, Rob Herring , Lorenzo Pieralisi , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: tegra: fix compile-testing PCI host driver Date: Mon, 28 May 2018 17:55:29 +0200 Message-Id: <20180528155603.2897776-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:VL0cN+i7s14s8RRfQqyP4cqImwdgKXOw6aG2r/RN3dWRVsQPCEQ IJMzaicX/JBcSGn9xVIeoF7R0JEd2aWi1idVTkDFwQvJCsUBBGXM9QXGKCmjS3P4d5lAddq wkYA5A2qvqOziTDR0e0r/3VgiSeI1I4vjh6AhpoOKdq0Zs/cDFUBgy4f5zrUmxJB0j13IOu NSSxVYFmzTHf1wycJFCIw== X-UI-Out-Filterresults: notjunk:1;V01:K0:TbJrQkMkveM=:PFVARE1yVHq8A1ujcGu6CO 4/KcxNMT9HEeUyoLY8px9QHOIMyuGNX8RLo8X1pbiHDq73NLfs6Rn4Cma/OWHnSdWcOG0/6ox MFBhcw/csplHe487FIVKGEPGUzhNIuVQif1tmrlpS+7/t9cQuXJ7iWixRnpwbRyDfP8HiA/pR wxJDbtpM2rJzuDbUnCRzZVD74fdU7GORaz4XeLnhXlmA3BXbEnWKUgUafizwOp34weXETfCnn jC1S4LVUwSdoLTbu/UVTMU7amXc4c3bdFWRAjJ+Ye9PTfHLcsGkhpYf0JaNXuRtYDtfBGj64H J8+Kle3mb25s/55RNpm8CIBl2qd02xOvVPbfp0lrw9TGJe8ijEsF5uM2I1AOpvHXIULklA1N5 OixeOQvJah2oseyi1XsZC47m+eX6lukV/0Ax0lZ10WLWdoYSthUyH78TKJO6aA2V3H0dEUM8m dwvyBX7QYXMqJvOlgBGMxAxbgoqNzwag+8TLOGEGxTopgea2dvFEaZC1cyhg7o2CsC4dJZCgv sTL00llYU7yoTGHqI/G0VJLzSXZdohhs2a/pvEfjWo3fAwPUX+i7QbmBCXwe7yo8nzuEJwBE0 96hqRyLE79ijR8gKJiJBl3DHcAqA6wQZSQYeXwX7bLSO1L8lsQTXvUEOnvlEu2eRX6REmO8MR Oa74mc80AalA/y3yCRhkAbrb6I34AvaW19BmGCRlvryXOWzAiGPhfaYWL/3jIO1sRAoo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The tegra_cpuidle_pcie_irqs_in_use() function is stubbed out for non-ARM builds, but now we can compile-test the Tegra pci driver on non-Tegra ARM platforms as well, which results in a new link error: drivers/pci/host/pci-tegra.o: In function `tegra_pcie_map_irq': pci-tegra.c:(.text+0x288): undefined reference to `tegra_cpuidle_pcie_irqs_in_use' drivers/pci/host/pci-tegra.o: In function `tegra_msi_map': pci-tegra.c:(.text+0xba0): undefined reference to `tegra_cpuidle_pcie_irqs_in_use' This adapts the #ifdef statement to match the exact condition under which the function can be called. Fixes: 51bc085d6454 ("PCI: Improve host drivers compile test coverage") Cc: Rob Herring Cc: Lorenzo Pieralisi Signed-off-by: Arnd Bergmann --- include/soc/tegra/cpuidle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/soc/tegra/cpuidle.h b/include/soc/tegra/cpuidle.h index 1fae9c7800d1..b6cf32211520 100644 --- a/include/soc/tegra/cpuidle.h +++ b/include/soc/tegra/cpuidle.h @@ -14,7 +14,7 @@ #ifndef __SOC_TEGRA_CPUIDLE_H__ #define __SOC_TEGRA_CPUIDLE_H__ -#if defined(CONFIG_ARM) && defined(CONFIG_CPU_IDLE) +#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_CPU_IDLE) void tegra_cpuidle_pcie_irqs_in_use(void); #else static inline void tegra_cpuidle_pcie_irqs_in_use(void) -- 2.9.0