Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2624205ybc; Wed, 20 Nov 2019 17:43:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzI0RbEEcXntPbVz3hhB+3pPhiSd5wLA71wYGPd9EPjqZWuwL2iH+Evfhv9cvg9cmx56j5R X-Received: by 2002:a17:906:4d99:: with SMTP id s25mr9949545eju.187.1574300621175; Wed, 20 Nov 2019 17:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574300621; cv=none; d=google.com; s=arc-20160816; b=xM4RJ/bwhB2PYydG5QJ1rKaPyLAQo/WrB5vrw5AA1+1cPShzX1cND/B2Vjfk1pjAkO RodYxHXGW0FV1OiNzfOuM6p/rC7+03buvT6UrRKPS+7W+IguTn3IenfBNm2SvzQHQ1xN YgzKyUmmsCtJ8eaVj73FNtRAwWiMJMOz/sKztS91YNuPDN13uo+WHShrwndtFnmun1HA 8MpIiFLPgCCmDMG2i61jqJ9QvVB7BXABpfzE4R1l8+DFZqVtTYl7JNxXsKc9jMi9JHgz F9AJO9pRIWTDd0jNN5lXrVhvznSFu9ZxYkMg3STlfV+MyD6gDMmn/sop631DhLLcRN0F k2Sg== 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; bh=Ml3uj1TDmuzrA46H71L5oC8edvsTpq+tVcDZA2F5TVw=; b=T+rpyEgn76+GO5yQ09iWvbGxDg60oG8fsrjl8jIDuGGw7Kq4lm87CBbYvmne0EZrwn sTEmOHChnfTGPq4QmDUnlh0L5ug5tLtLEVITFelY3oDmdcZLMi6uGNIhVEIzUY1txtnl y1OU12t6+5bXHBCXeNgBueyZSDbgy0NdA8hdkURJbTK8v5TjiRfwW2/5J7o/FTTtstAP ZSOWC+NYSia0RG6TRaX9OmI8CMvetS7SFuXDTMcbXw2MHodr0nOJdCdBqi7YNgJ3WOvU N3D11fU/8hBuoONBUlEseJ+wBKLYUW69ynbntubbcmTwSieIOjTMrSomxli6AJ8lH74T N18Q== 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 f11si664985ejk.336.2019.11.20.17.43.16; Wed, 20 Nov 2019 17:43:41 -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; 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 S1726593AbfKUBmV (ORCPT + 99 others); Wed, 20 Nov 2019 20:42:21 -0500 Received: from mail.loongson.cn ([114.242.206.163]:47540 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725936AbfKUBmU (ORCPT ); Wed, 20 Nov 2019 20:42:20 -0500 Received: from localhost (unknown [124.64.18.131]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx7xVm69VdVT0BAA--.303S2; Thu, 21 Nov 2019 09:41:59 +0800 (CST) From: Lichao Liu To: Huacai Chen Cc: Ralf Baechle , Paul Burton , James Hogan , Marc Dionne , David Howells , Lichao Liu , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Use the macro CONFIG_I8259 to control whether to include the asm/i8259.h header file. Date: Thu, 21 Nov 2019 09:41:56 +0800 Message-Id: <20191121014156.25618-1-liulichao@loongson.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: AQAAf9Dx7xVm69VdVT0BAA--.303S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtr17ZryDJF1rWF4UXryxKrg_yoWxZrbEka y2yw18G3yfAr48try7Zry3WrW2934UW3W3CFn5ArnIq3Z0qanIgaykAr4kJr13Crn0vr4f XrW8KryrCr47CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb48FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_ Gr1UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVCY1x0267AKxVW8Jr 0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVAFwVWk MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr 0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0E wIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJV W8JwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbLiSPUUUU U== X-CM-SenderInfo: xolxzxpfkd0qxorr0wxvrqhubq/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not all platform config CONFIG_I8259, So Use the macro CONFIG_I8259 to control whether to include the asm/i8259.h header file. Signed-off-by: Lichao Liu --- arch/mips/loongson64/common/pm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/loongson64/common/pm.c b/arch/mips/loongson64/common/pm.c index b8aed878d..bc619e4d0 100644 --- a/arch/mips/loongson64/common/pm.c +++ b/arch/mips/loongson64/common/pm.c @@ -9,7 +9,9 @@ #include #include +#ifdef CONFIG_I8259 #include +#endif #include #include -- 2.17.1