From patchwork Tue Oct 22 01:56:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olof Johansson X-Patchwork-Id: 11203703 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CB3D3112B for ; Tue, 22 Oct 2019 02:40:59 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 724DB2064B for ; Tue, 22 Oct 2019 02:40:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="Ui0Q07Jc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 724DB2064B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lixom.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+673+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id Q3dyYY1556264xVMLCQlaClc; Mon, 21 Oct 2019 19:40:59 -0700 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web11.336.1571712058470700663 for ; Mon, 21 Oct 2019 19:40:58 -0700 X-Received: by mail.kernel.org (Postfix) id C7077217D7; Tue, 22 Oct 2019 02:01:18 +0000 (UTC) X-Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D1B22064B for ; Tue, 22 Oct 2019 02:01:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D1B22064B X-Received: by mail-pf1-f193.google.com with SMTP id q21so9596497pfn.11 for ; Mon, 21 Oct 2019 19:01:18 -0700 (PDT) X-Gm-Message-State: zAnJNJCMx9WJ8YlZsc6siFvrx1554929AA= X-Google-Smtp-Source: APXvYqx1ZlfcYPH4vjIukPctDoUIIavsaKtfhEpW96bMPV2+ehxJwKv1ccUQIk4e5TAceBZhYqO8Tw== X-Received: by 2002:a63:4d0d:: with SMTP id a13mr942206pgb.451.1571709677893; Mon, 21 Oct 2019 19:01:17 -0700 (PDT) X-Received: from localhost.localdomain (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id f17sm25462833pgd.8.2019.10.21.19.01.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 19:01:16 -0700 (PDT) From: Olof Johansson To: Linuxkernel+Patchwork-Soc via Email Integration Cc: Lubomir Rintel , soc@kernel.org, Olof Johansson Subject: [PATCH] soc: mmp: guard include of asm/cputype.h with CONFIG_ARM{,64} Date: Mon, 21 Oct 2019 18:56:58 -0700 Message-Id: <20191022015658.14624-1-olof@lixom.net> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1571712059; bh=soPxrZmCmkh7IC5eeqHdM9D3XrbIHcuErYuiU8sfhV4=; h=Cc:Date:From:Reply-To:Subject:To; b=Ui0Q07JciX0iwYtUyJu9OgI4+NDXE6pwFCB062q3B197N3tm9nT/6JEuWlcWBR9bWiY KCuZp3v1f3XrOogxlQZcnz/BvNjQPtQT128pVeOgFR7R82b/LiuYjEBzAnVuBz7ro+24h 2tGeNaavBxiu4ZS7vLyG4TJ5iB+2MJQNXeQ= Since this driver is enabled for COMPILE_TEST, it avoids build error on x86 allmodconfig: In file included from /build/drivers/phy/marvell/phy-mmp3-usb.c:12: /build/include/linux/soc/mmp/cputype.h:5:10: fatal error: asm/cputype.h: No such file or directory Signed-off-by: Olof Johansson --- Lubomir, I've applied this on top of your branches already. Posting for awareness. include/linux/soc/mmp/cputype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/soc/mmp/cputype.h b/include/linux/soc/mmp/cputype.h index c3ec88983e94..221790761e8e 100644 --- a/include/linux/soc/mmp/cputype.h +++ b/include/linux/soc/mmp/cputype.h @@ -2,7 +2,9 @@ #ifndef __ASM_MACH_CPUTYPE_H #define __ASM_MACH_CPUTYPE_H +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) #include +#endif /* * CPU Stepping CPU_ID CHIP_ID