Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1743884imm; Sun, 23 Sep 2018 10:39:18 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb1VpCiRpRwVs0k4RaC+K4Wy0LIJ2YcHyrBwTSBfy11DTvx2KWHW9VQBFi8cTBEaPaHAqCl X-Received: by 2002:a62:8145:: with SMTP id t66-v6mr1505753pfd.192.1537724358436; Sun, 23 Sep 2018 10:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537724358; cv=none; d=google.com; s=arc-20160816; b=sUimd2FNRG4hWmLSXkMOONQ0bHiEyo4BjvUimTHo5rA/RItoS1NaZMw+Wr+7PxXtGD I09P5WwRK9APlkzNFi84TmjP0iuCwJdR69kKzUiElrb1UbXWW8nquWBE1tQew6lJNwGi CXOktTB68ZyPnOhTdCzD9wXyH3MrTEkQU5rQ3soJS8dYWFIDXRS0v7BaI/qM9uUReWkB UB0+qjWGtxdbzwUD1IMR6Xxwa8jyfyfAe5FFHkl6gMTIDhXZYgLoLnsV4DN2uoJ6iE8d R/dVLH2Kf+DRbx6IS750KUJNousepwL84TRgVcU+QM4Fd3outr3Xzp5WXlU2LTMO45gJ tQMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QTzhiwPlnYLHtSd/cSs8bFmGJ4kQmEWRo99EgkSWrZs=; b=C+nTEPI/HrwSrYf3VqNEvkE3dttysIXU7CR6t/S6u2KmRRZi3sQgskbvVCfbJwEwCR 9Ga7MuFVpR54H5zepFB6Ql3DrtNltSKSp6PtRouNA6brFmaHfl78TSm8fkbaFNHLdr+p 6auHSqbWERuNs0uDLIZI7MMq48Xk5OaJamBtqPZyEogYTrCiuS3rTOqW0RvFaVJ5Nzdr hhCk2lDeeQG5lF6UTi+kdo26nxD25xI/Iq9G9PiQjQX8eK8iDY31qx210G4Tq5WsgVmm ss6Jm63sVGiKghdLmQDN3tIgPn4EU8WP9HQWErHh9GjAi5aUkPyEMzN5XY8lRs0+EDlg 5lPA== 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 x198-v6si3498775pgx.686.2018.09.23.10.38.48; Sun, 23 Sep 2018 10:39:18 -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 S1726706AbeIWXgZ (ORCPT + 99 others); Sun, 23 Sep 2018 19:36:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:50230 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726280AbeIWXgZ (ORCPT ); Sun, 23 Sep 2018 19:36:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1C262ACE2; Sun, 23 Sep 2018 17:38:10 +0000 (UTC) From: Nicolai Stange To: Thomas Gleixner Cc: Boris Ostrovsky , Juergen Gross , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Greg Kroah-Hartman , David Woodhouse , x86@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Nicolai Stange Subject: [PATCH] xen: x86: make asm/xen/events.h include xen/xen.h Date: Sun, 23 Sep 2018 19:38:02 +0200 Message-Id: <20180923173802.10339-1-nstange@suse.de> X-Mailer: git-send-email 2.13.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/x86/include/asm/xen/events.h references xen_hvm_domain() from the inlined xen_support_evtchn_rebind(). xen_hvm_domain() gets #defined in include/xen/xen.h and arch/x86/include/asm/xen/events.h doesn't include that. On current Linus' tree, everything works fine though, because of the following inclusion chain include/xen/events.h arch/x86/include/asm/xen/hypercall.h arch/x86/include/asm/pgtable.h arch/x86/include/asm/fixmap.h arch/x86/include/asm/acpi.h arch/x86/include/asm/realmode.h arch/x86/include/asm/io.h include/xen/xen.h asm/xen/events.h which has been established in commit f991376e444a ("x86/mm: Correct fixmap header usage on adaptable MODULES_END") resp. commit ef37bc361442 ("x86/headers: Simplify asm/fixmap.h inclusion into asm/pgtable*.h"). Stable 4.9 lacks both of these and backporting them wouldn't really make sense. In consequence, the backport of commit 447ae3166702 ("x86: Don't include linux/irq.h from asm/hardirq.h") to stable 4.9 broke compilation with errors like In file included from include/xen/events.h:11:0, from arch/x86/xen/irq.c:9: arch/x86/include/asm/xen/events.h: In function ‘xen_support_evtchn_rebind’: arch/x86/include/asm/xen/events.h:31:2: error: implicit declaration of function ‘xen_hvm_domain’ [-Werror=implicit-function-declaration] return (!xen_hvm_domain() || xen_have_vector_callback); ^ Facilitate backporting to the stable trees by making arch/x86/include/asm/xen/events.h include xen/xen.h. Fixes: 447ae3166702 ("x86: Don't include linux/irq.h from asm/hardirq.h") Cc: # 4.9.x Signed-off-by: Nicolai Stange --- arch/x86/include/asm/xen/events.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/xen/events.h b/arch/x86/include/asm/xen/events.h index d383140e1dc8..068d9b067c83 100644 --- a/arch/x86/include/asm/xen/events.h +++ b/arch/x86/include/asm/xen/events.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_XEN_EVENTS_H #define _ASM_X86_XEN_EVENTS_H +#include + enum ipi_vector { XEN_RESCHEDULE_VECTOR, XEN_CALL_FUNCTION_VECTOR, -- 2.13.7