From: Sean Christopherson <seanjc@google.com>
To: kernel test robot <lkp@intel.com>
Cc: Yi Wang <foxywang@tencent.com>, oe-kbuild-all@lists.linux.dev
Subject: Re: [kvm-x86:generic 7/9] include/linux/kvm_host.h:2106:5: warning: no previous prototype for 'kvm_init_irq_routing'
Date: Tue, 11 Jun 2024 06:29:04 -0700 [thread overview]
Message-ID: <ZmhRILF3iBDq2hs6@google.com> (raw)
In-Reply-To: <202406111054.tfC7sg5g-lkp@intel.com>
On Tue, Jun 11, 2024, kernel test robot wrote:
> tree: https://github.com/kvm-x86/linux generic
> head: 96545c0ccf1cdcbeeaca77399af27da12da6c833
> commit: 2207798ccd0adc8995a71f93fd77c8ece3eb330a [7/9] KVM: Setup empty IRQ routing when creating a VM
> config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20240611/202406111054.tfC7sg5g-lkp@intel.com/config)
> compiler: powerpc-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240611/202406111054.tfC7sg5g-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202406111054.tfC7sg5g-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> In file included from arch/powerpc/include/asm/kvm_ppc.h:19,
> from arch/powerpc/include/asm/dbell.h:17,
> from arch/powerpc/kernel/asm-offsets.c:36:
> >> include/linux/kvm_host.h:2106:5: warning: no previous prototype for 'kvm_init_irq_routing' [-Wmissing-prototypes]
> 2106 | int kvm_init_irq_routing(struct kvm *kvm) {}
> | ^~~~~~~~~~~~~~~~~~~~
> include/linux/kvm_host.h: In function 'kvm_init_irq_routing':
> >> include/linux/kvm_host.h:2106:44: warning: control reaches end of non-void function [-Wreturn-type]
> 2106 | int kvm_init_irq_routing(struct kvm *kvm) {}
> | ^
> --
> In file included from arch/powerpc/include/asm/kvm_ppc.h:19,
> from arch/powerpc/include/asm/dbell.h:17,
> from arch/powerpc/kernel/asm-offsets.c:36:
> >> include/linux/kvm_host.h:2106:5: warning: no previous prototype for 'kvm_init_irq_routing' [-Wmissing-prototypes]
> 2106 | int kvm_init_irq_routing(struct kvm *kvm) {}
> | ^~~~~~~~~~~~~~~~~~~~
> include/linux/kvm_host.h: In function 'kvm_init_irq_routing':
> >> include/linux/kvm_host.h:2106:44: warning: control reaches end of non-void function [-Wreturn-type]
> 2106 | int kvm_init_irq_routing(struct kvm *kvm) {}
> | ^
>
>
> vim +/kvm_init_irq_routing +2106 include/linux/kvm_host.h
>
> 2104
> 2105 static inline void kvm_free_irq_routing(struct kvm *kvm) {}
> > 2106 int kvm_init_irq_routing(struct kvm *kvm) {}
> 2107
Our friendly test bot beat me to build testing. Will squash this:
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 82726050fc76..eaa70e9b1218 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -2103,7 +2103,11 @@ void kvm_free_irq_routing(struct kvm *kvm);
#else
static inline void kvm_free_irq_routing(struct kvm *kvm) {}
-int kvm_init_irq_routing(struct kvm *kvm) {}
+
+static inline int kvm_init_irq_routing(struct kvm *kvm)
+{
+ return 0;
+}
#endif
prev parent reply other threads:[~2024-06-11 13:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 2:04 [kvm-x86:generic 7/9] include/linux/kvm_host.h:2106:5: warning: no previous prototype for 'kvm_init_irq_routing' kernel test robot
2024-06-11 13:29 ` Sean Christopherson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZmhRILF3iBDq2hs6@google.com \
--to=seanjc@google.com \
--cc=foxywang@tencent.com \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.