Message ID | 20230517124525.929201-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1122426vqo; Wed, 17 May 2023 06:08:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vkVLnxQdv4ljcDUiNbmQjKFGClBxxrRq1PgWIq96gGWHP4H3DK/iwJNpxKCwZh7TO8RXl X-Received: by 2002:a05:6a20:144d:b0:103:9c05:1664 with SMTP id a13-20020a056a20144d00b001039c051664mr30881786pzi.12.1684328933362; Wed, 17 May 2023 06:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684328933; cv=none; d=google.com; s=arc-20160816; b=U6/0BVmNkaBrusPlOLSeTxnXydeFfaVVm9HAAl7lJXdBEEDG5AiGBXVVj+Jet1Y2vG q78ir5Kq1sfU1xw4CuLkieGdkv33WhBjF41IxU7y4Uv9ZGBiFVp1I/29FxPUlWX8VwU6 s23DACH0PXHis+Q/5XUmZFfiSQ7C3RuZY58Jq1eBI5oIG6Vo9MsLYrJXHCD6A1JwDhJT dKZSF1Rrckw+YekWvLaFkCVSkYp1SCBZVgA8MXbh4oFC8PHSF5UCrOcqwUKarJvr9csm EHPXlKzLkRAD0sjzxEzDy8sdghF+wpTDkNaZaGs/aZNl07Ou2hRQfFASlEF0G4G4NaC+ wY7Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b0052c4296d8casi20231148pgb.325.2023.05.17.06.08.37; Wed, 17 May 2023 06:08:53 -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 S230378AbjEQMpg (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Wed, 17 May 2023 08:45:36 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <arnd@kernel.org> To: Juergen Gross <jgross@suse.com> Cc: Arnd Bergmann <arnd@arndb.de>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Stefano Stabellini <sstabellini@kernel.org>, Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>, Jan Beulich <jbeulich@suse.com>, Peter Zijlstra <peterz@infradead.org>, David Woodhouse <dwmw@amazon.co.uk>, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766146895533535098?= X-GMAIL-MSGID: =?utf-8?q?1766146895533535098?= |
Series |
xen: xen_debug_interrupt prototype to global header
|
|
Commit Message
Arnd Bergmann
May 17, 2023, 12:45 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- arch/x86/xen/xen-ops.h | 2 -- include/xen/events.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-)
Comments
On Wed, 17 May 2023, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> > --- > 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 >
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 */