Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2126355rwd; Wed, 17 May 2023 06:11:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qZ3YbPEdrE1WK8if2NRJIIK+TgL3DTcqtAMEF6YIMAgUdVRrMI+M7NYp7h32unGXcPiJU X-Received: by 2002:a05:6a20:7d9b:b0:105:53:9a0 with SMTP id v27-20020a056a207d9b00b00105005309a0mr20434409pzj.29.1684329118466; Wed, 17 May 2023 06:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684329118; cv=none; d=google.com; s=arc-20160816; b=hKbvtr1KfTeIkUqRHP5uKefgRvuMYhCD6Eq/873bhQgEan/R9SY4VquUWHr1BlkIRN 0FuZPo+6727mNqYmT7YXxQ4bY5hk2IQE4EhqVluYyZ1vWAG4O/K19Jk3Dm0rsByfB/Sa H1hHWiz6iVKYCG239Zdg1H9Y0FGH4pJrv9/ZSuAEnVD/qQirhCs8UEcT20ZMS/caXUnC qi8mueM/NZdLZOGoqO3tF2LfTE4TYJzoole8CuP5DNYQBW7a3wLJ/PMXqjmvH0sgYd/W rbQiJNsgTFXrJLyYyvFtQBQqUULNan2uJdAojEzFYx6+toKJn01ukM70nZOPo1qVNxny 4vAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KX2rK1hirS22N3QC70hUYESE82ZxzBBJZzIWWXIpIik=; b=AH48oZgiuTUf/8BArbi6ooSCwNNtJMZWnbNBKXAGGH0n+2NcK7QZcKtIWDvA8lO5EF OKA9DxYUyAo80ohBY9PSpCbEcXFwvvFOZV/Q0+5DVFh7rKp5+vDKaTjUBbNLy8GMOiB3 EpzQvuK2VgHMG452lLXgBEoV9zLsz++SjO/5mf4o8TrNMNjALMpBbHSW9R7E015rQ+60 ZIFhot1qimOG26VxXfInZc+Eyl0cbczizBIhm0WzmEPgZTfHT1w6YROEy5WN4UzwSbvZ T/uGCXpEGuIAcDMBmBAKYqPG5RRcqDU6ta9/y2C+euHDjWqANhUBgMZ2Y9cn8Fd/jJ1R +T7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KXW/r94Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i186-20020a6387c3000000b0051b59786e6csi22197620pge.300.2023.05.17.06.11.45; Wed, 17 May 2023 06:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KXW/r94Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbjEQMpf (ORCPT + 99 others); Wed, 17 May 2023 08:45:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjEQMpd (ORCPT ); Wed, 17 May 2023 08:45:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33C08212D for ; Wed, 17 May 2023 05:45:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE0BC646CB for ; Wed, 17 May 2023 12:45:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC045C4339B; Wed, 17 May 2023 12:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684327532; bh=iOvwhrIqurJ9VDkNH99fkMyAAsvkDjtRTJDy0SAwuEE=; h=From:To:Cc:Subject:Date:From; b=KXW/r94Q7ohDPiHr0WynE0BNA5PbgMdv1VdP3fPVRosVwyBRn7cKtcvUHduFDm/6n Z7ROnCIBNMzOYh4W6Lne0zgMcRsWz4vfpGfN2AFOdfrb+uUtd7orQ0KL6Kp5dEGLrs FlzSb7yHd4VOO64a3lGHt429hR9rOA9YlSkxHH/kaptA/8GzG3jIOOIFT34l7SD+GH lne4q4ssxGKV8nM4y86ywSHghXnzr3qmL6B11q5AKGvTW76/nagyX35hi0QLj5CSX8 rjKhJ/JdACi3+X78dudTjmyOL6QV+dyifUsO3VQeo+W+pkq6tm0+ts0sn+8kgtqGYL GOd3HPkal7XTw== From: Arnd Bergmann To: Juergen Gross Cc: Arnd Bergmann , Boris Ostrovsky , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Stefano Stabellini , Oleksandr Tyshchenko , Jan Beulich , Peter Zijlstra , David Woodhouse , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] xen: xen_debug_interrupt prototype to global header Date: Wed, 17 May 2023 14:45:07 +0200 Message-Id: <20230517124525.929201-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The xen_debug_interrupt() function is only called on x86, which has a prototype in an architecture specific header, but the definition also exists on others, where the lack of a prototype causes a W=1 warning: drivers/xen/events/events_2l.c:264:13: error: no previous prototype for 'xen_debug_interrupt' [-Werror=missing-prototypes] Move the prototype into a global header instead to avoid this warning. Signed-off-by: Arnd Bergmann --- arch/x86/xen/xen-ops.h | 2 -- include/xen/events.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/xen/xen-ops.h b/arch/x86/xen/xen-ops.h index 84a35ff1e0c9..0f71ee3fe86b 100644 --- a/arch/x86/xen/xen-ops.h +++ b/arch/x86/xen/xen-ops.h @@ -72,8 +72,6 @@ void xen_restore_time_memory_area(void); void xen_init_time_ops(void); void xen_hvm_init_time_ops(void); -irqreturn_t xen_debug_interrupt(int irq, void *dev_id); - bool xen_vcpu_stolen(int vcpu); void xen_vcpu_setup(int cpu); diff --git a/include/xen/events.h b/include/xen/events.h index 44c2855c76d1..ac1281c5ead6 100644 --- a/include/xen/events.h +++ b/include/xen/events.h @@ -138,4 +138,7 @@ int xen_test_irq_shared(int irq); /* initialize Xen IRQ subsystem */ void xen_init_IRQ(void); + +irqreturn_t xen_debug_interrupt(int irq, void *dev_id); + #endif /* _XEN_EVENTS_H */ -- 2.39.2