Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp246032pja; Fri, 22 Nov 2019 06:01:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxkjttIjMRbq7psFjHE9POm+CX4dcQ7jBo0d2rtYdQjJx5rpfraSQGQeoWWiIh7otwRRpza X-Received: by 2002:a19:c215:: with SMTP id l21mr11282043lfc.125.1574431303467; Fri, 22 Nov 2019 06:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574431303; cv=none; d=google.com; s=arc-20160816; b=tMudNQauYudujudDMuZmwDfNMjzTe26tz7tPKFBVxNa8+XqhfGYpE+mG0ceT8ag7V3 TeNkD0ioMxCKs/n4UfV/kO/2FXI6YXfa9oLc7pnfuXSQ+hTSjsvyaUrCspQ9j07Eujwj +b1g0qRRwqvr0d681pz906SlnTiOW/L4C8SLYH0iAxpCjl7ykEArlJTvIo9QZms8TbdJ 8CFpjrvM/OTBk1pR5tEegHoLPDWzw2UmmMFoHUtUqUKyhJPsVVz5iKL9UW6uVm/N58la 3onXP9gNhwGLBDDwfaUt5sOTvd5QeZHO5hu4iRKkR2rsuIJNemRtZ26+/6c9AGczDIsw XDkw== 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=3mwPwglnV6b5veDJA4XE5vghKvjGQ8UOB923wcBCycw=; b=w3HwTn07DKA4M+vOYyl1ahANnySj1D5/vCUPx2aYeviuD1uagyFsytoEBM55cWdLyC PNEiHvJe10CozFPc8wt71BqfvC8Q11nscQI3wFn6enDvLj3ly3XCCIVM5MoZpDzw2XI0 lGoBsIlO2n1oYCq0R0V4XmsczoiabORfkM9hztnM6B1VvF74yjE4MaqpjSGNYH2IJJbf 9gLcIRzEOX0HlzJ6yQps1Sze4NnRXUiiSrARB+EWnvJudnqSQ/34mG9fxjwFiwPMlfMb FUbyTFkGOnv47kh+Fx0nUmJngwE0o/neAMO2NTbRcwvCiPe5rDicgsQGzfSsG7TcqND6 1Fwg== 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 bu11si4827289edb.245.2019.11.22.06.01.12; Fri, 22 Nov 2019 06:01:43 -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 S1728101AbfKVN7H (ORCPT + 99 others); Fri, 22 Nov 2019 08:59:07 -0500 Received: from mail.loongson.cn ([114.242.206.163]:55252 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726046AbfKVN7H (ORCPT ); Fri, 22 Nov 2019 08:59:07 -0500 Received: from localhost (unknown [111.199.189.14]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxzxac6dddevYBAA--.1171S2; Fri, 22 Nov 2019 21:58:52 +0800 (CST) From: Lichao Liu To: chenhc@lemote.com, jiaxun.yang@flygoat.com Cc: ralf@linux-mips.org, paulburton@kernel.org, jhogan@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Lichao Liu Subject: [PATCH] MIPS:Loongson64:Limit 8259.h by config Date: Fri, 22 Nov 2019 21:58:51 +0800 Message-Id: <20191122135851.5145-1-liulichao@loongson.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: AQAAf9Dxzxac6dddevYBAA--.1171S2 X-Coremail-Antispam: 1UD129KBjvdXoWrXF18WF1xury5ZFy8Jw43KFg_yoWxWrcEka y2yw48G34fAry2y347ZrnrWrW7u34UuF13CFn8Ar1Sqas0vwn0gayDAr4DJr1rCrn8tr4r Xay8Cry8urW7CjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbc8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Jr0_ Gr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVAFwVW5GwCF 04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r 18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vI r41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr 1lIxAIcVCF04k26cxKx2IYs7xG6Fyj6rWUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY 6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUefOzUUUUU 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/pm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/loongson64/pm.c b/arch/mips/loongson64/pm.c index 7c8556f09781..08238a58107f 100644 --- a/arch/mips/loongson64/pm.c +++ b/arch/mips/loongson64/pm.c @@ -9,7 +9,9 @@ #include #include +#ifdef CONFIG_I8259 #include +#endif #include #include -- 2.17.1