From patchwork Thu May 30 23:16:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10969371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A4FF013AD for ; Thu, 30 May 2019 23:17:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E5C228896 for ; Thu, 30 May 2019 23:17:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E77A28C14; Thu, 30 May 2019 23:17:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 293F528896 for ; Thu, 30 May 2019 23:17:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbfE3XRS (ORCPT ); Thu, 30 May 2019 19:17:18 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42149 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbfE3XRS (ORCPT ); Thu, 30 May 2019 19:17:18 -0400 Received: by mail-ed1-f68.google.com with SMTP id g24so1902287eds.9; Thu, 30 May 2019 16:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8OuX4xShfNASS1kU8dLb0K1y+qLHuVxh22K4Er6Vwk0=; b=KH3mYn0gHZuJL8QRMPVXovnbxLJCVRy8MUXPWOmrRKKwPPnnhowfJE5JGNGY/iyBal HCwmGbgbTOI8NEFztLRQdkL3RnniYglTXoKno2LF9LeBCaxSx/wP0ZoG0itMVKKRDPmk 5pdXTjEG+Ucq5Wzt3Anr27481Qk9gC/LYcwaLu5h3IrR9C1kv21ItqVs57zDvw9spHhd sQsxehz03mTRPnjdN3jd1OKt56jNexDDmSylD2gbleX7twbJPKt6GjTANvPBn/RX2u2d ane8D7xR6YgEmbuocDLkG8Zp7ySp6TgPNrq5Q06BaxkpW+61eS1LrzQSW8QCqPoGzyc7 HtSA== 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; bh=8OuX4xShfNASS1kU8dLb0K1y+qLHuVxh22K4Er6Vwk0=; b=o7uhhfYS0ByDPw4eQnqAHf/23DibfHb7G8vtWIzkc6Jwh2k2Fl8yhhcB6DHtwErGBm sDkc4A6ty9RpSIMQ/fiv8sqsk9beiR2GXWzz9mnlAKhDIHqRa81rumv+Ki6e0AE90u5B un/ITyn6yObvbEDf1Fmep6LK+UC7/aGUKmop47YbLBtQmeddBaFAzYtOW7btuUW+UQsr 2ZeHGm6/BE4MBbiziUhNz3ikU95EPuJo/jCwJlvZUQHpTdvDmaiVpkRlP3QORl5HPIKm ALQvAXWNkDI+bHaeTxzpqEWpUcHk3sor3X9mvjHF/PL3zwpeX/abe6vlS/L8d6myM3IP QolQ== X-Gm-Message-State: APjAAAVM/ZtQx9Kdcyksd4FSxLg+TRMgXb8I3QjzLv1+wfFZjgQHl4/w 4M9gOC1bhnoKQKiZr7/mlR/mxrpm X-Google-Smtp-Source: APXvYqyMC4qGSTVgdOQhe33bp8TEa1zZ1dv2k4qCdG/f2Fg+AjPD+O9YIaOKNrbTeHwIwRdh7GrO+Q== X-Received: by 2002:a50:e048:: with SMTP id g8mr7783570edl.26.1559258236714; Thu, 30 May 2019 16:17:16 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id f3sm656568ejo.90.2019.05.30.16.17.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 16:17:16 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Kevin Cernekee , Thomas Gleixner , Jason Cooper , Marc Zyngier , bcm-kernel-feedback-list@broadcom.com (open list:BROADCOM BMIPS MIPS ARCHITECTURE), linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE) Subject: [PATCH] irqchip/bcm7038-l1: Fix build on ARM/ARM64 Date: Thu, 30 May 2019 16:16:58 -0700 Message-Id: <20190530231658.23273-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The driver uses cpu_logical_map[] which is defined under arch/{arm,arm64}/include/asm/smp_plat.h. Fixes: 5f7f0317ed28 ("IRQCHIP: Add new driver for BCM7038-style level 1 interrupt controllers") Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm7038-l1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index 0acebac1920b..970857a32508 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -30,6 +30,9 @@ #include #include #include +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) +#include +#endif #define IRQS_PER_WORD 32 #define REG_BYTES_PER_IRQ_WORD (sizeof(u32) * 4)