From: kernel test robot <lkp@intel.com>
To: Jordan Niethe <jniethe5@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linuxppc-dev@lists.ozlabs.org,
Michael Ellerman <mpe@ellerman.id.au>
Subject: [powerpc:topic/ppc-kvm 8/11] arch/powerpc/kvm/guest-state-buffer.c:505: warning: expecting prototype for kvmppc_gsm_init(). Prototype was for kvmppc_gsm_new() instead
Date: Wed, 13 Sep 2023 07:14:56 +0800 [thread overview]
Message-ID: <202309130700.eRu2IdWo-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git topic/ppc-kvm
head: 5af8497e01ed97410b2f19ca8320a3bcdcfe267b
commit: c531e958f40241e921456e7b77574a25f713a2e5 [8/11] KVM: PPC: Add helper library for Guest State Buffers
config: powerpc-ppc64_defconfig (https://download.01.org/0day-ci/archive/20230913/202309130700.eRu2IdWo-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230913/202309130700.eRu2IdWo-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/202309130700.eRu2IdWo-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/powerpc/kvm/guest-state-buffer.c:505: warning: expecting prototype for kvmppc_gsm_init(). Prototype was for kvmppc_gsm_new() instead
>> arch/powerpc/kvm/guest-state-buffer.c:565: warning: expecting prototype for kvmppc_gsm_fill_info(). Prototype was for kvmppc_gsm_refresh_info() instead
vim +505 arch/powerpc/kvm/guest-state-buffer.c
493
494 /**
495 * kvmppc_gsm_init() - creates a new guest state message
496 * @ops: callbacks
497 * @data: private data
498 * @flags: guest wide or thread wide
499 * @gfp_flags: GFP allocation flags
500 *
501 * Returns an initialized guest state message.
502 */
503 struct kvmppc_gs_msg *kvmppc_gsm_new(struct kvmppc_gs_msg_ops *ops, void *data,
504 unsigned long flags, gfp_t gfp_flags)
> 505 {
506 struct kvmppc_gs_msg *gsm;
507
508 gsm = kzalloc(sizeof(*gsm), gfp_flags);
509 if (!gsm)
510 return NULL;
511
512 kvmppc_gsm_init(gsm, ops, data, flags);
513
514 return gsm;
515 }
516 EXPORT_SYMBOL_GPL(kvmppc_gsm_new);
517
518 /**
519 * kvmppc_gsm_size() - creates a new guest state message
520 * @gsm: self
521 *
522 * Returns the size required for the message.
523 */
524 size_t kvmppc_gsm_size(struct kvmppc_gs_msg *gsm)
525 {
526 if (gsm->ops->get_size)
527 return gsm->ops->get_size(gsm);
528 return 0;
529 }
530 EXPORT_SYMBOL_GPL(kvmppc_gsm_size);
531
532 /**
533 * kvmppc_gsm_free() - free guest state message
534 * @gsm: guest state message
535 *
536 * Returns the size required for the message.
537 */
538 void kvmppc_gsm_free(struct kvmppc_gs_msg *gsm)
539 {
540 kfree(gsm);
541 }
542 EXPORT_SYMBOL_GPL(kvmppc_gsm_free);
543
544 /**
545 * kvmppc_gsm_fill_info() - serialises message to guest state buffer format
546 * @gsm: self
547 * @gsb: buffer to serialise into
548 */
549 int kvmppc_gsm_fill_info(struct kvmppc_gs_msg *gsm, struct kvmppc_gs_buff *gsb)
550 {
551 if (!gsm->ops->fill_info)
552 return -EINVAL;
553
554 return gsm->ops->fill_info(gsb, gsm);
555 }
556 EXPORT_SYMBOL_GPL(kvmppc_gsm_fill_info);
557
558 /**
559 * kvmppc_gsm_fill_info() - deserialises from guest state buffer
560 * @gsm: self
561 * @gsb: buffer to serialise from
562 */
563 int kvmppc_gsm_refresh_info(struct kvmppc_gs_msg *gsm,
564 struct kvmppc_gs_buff *gsb)
> 565 {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Jordan Niethe <jniethe5@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org, oe-kbuild-all@lists.linux.dev
Subject: [powerpc:topic/ppc-kvm 8/11] arch/powerpc/kvm/guest-state-buffer.c:505: warning: expecting prototype for kvmppc_gsm_init(). Prototype was for kvmppc_gsm_new() instead
Date: Wed, 13 Sep 2023 07:14:56 +0800 [thread overview]
Message-ID: <202309130700.eRu2IdWo-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git topic/ppc-kvm
head: 5af8497e01ed97410b2f19ca8320a3bcdcfe267b
commit: c531e958f40241e921456e7b77574a25f713a2e5 [8/11] KVM: PPC: Add helper library for Guest State Buffers
config: powerpc-ppc64_defconfig (https://download.01.org/0day-ci/archive/20230913/202309130700.eRu2IdWo-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230913/202309130700.eRu2IdWo-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/202309130700.eRu2IdWo-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/powerpc/kvm/guest-state-buffer.c:505: warning: expecting prototype for kvmppc_gsm_init(). Prototype was for kvmppc_gsm_new() instead
>> arch/powerpc/kvm/guest-state-buffer.c:565: warning: expecting prototype for kvmppc_gsm_fill_info(). Prototype was for kvmppc_gsm_refresh_info() instead
vim +505 arch/powerpc/kvm/guest-state-buffer.c
493
494 /**
495 * kvmppc_gsm_init() - creates a new guest state message
496 * @ops: callbacks
497 * @data: private data
498 * @flags: guest wide or thread wide
499 * @gfp_flags: GFP allocation flags
500 *
501 * Returns an initialized guest state message.
502 */
503 struct kvmppc_gs_msg *kvmppc_gsm_new(struct kvmppc_gs_msg_ops *ops, void *data,
504 unsigned long flags, gfp_t gfp_flags)
> 505 {
506 struct kvmppc_gs_msg *gsm;
507
508 gsm = kzalloc(sizeof(*gsm), gfp_flags);
509 if (!gsm)
510 return NULL;
511
512 kvmppc_gsm_init(gsm, ops, data, flags);
513
514 return gsm;
515 }
516 EXPORT_SYMBOL_GPL(kvmppc_gsm_new);
517
518 /**
519 * kvmppc_gsm_size() - creates a new guest state message
520 * @gsm: self
521 *
522 * Returns the size required for the message.
523 */
524 size_t kvmppc_gsm_size(struct kvmppc_gs_msg *gsm)
525 {
526 if (gsm->ops->get_size)
527 return gsm->ops->get_size(gsm);
528 return 0;
529 }
530 EXPORT_SYMBOL_GPL(kvmppc_gsm_size);
531
532 /**
533 * kvmppc_gsm_free() - free guest state message
534 * @gsm: guest state message
535 *
536 * Returns the size required for the message.
537 */
538 void kvmppc_gsm_free(struct kvmppc_gs_msg *gsm)
539 {
540 kfree(gsm);
541 }
542 EXPORT_SYMBOL_GPL(kvmppc_gsm_free);
543
544 /**
545 * kvmppc_gsm_fill_info() - serialises message to guest state buffer format
546 * @gsm: self
547 * @gsb: buffer to serialise into
548 */
549 int kvmppc_gsm_fill_info(struct kvmppc_gs_msg *gsm, struct kvmppc_gs_buff *gsb)
550 {
551 if (!gsm->ops->fill_info)
552 return -EINVAL;
553
554 return gsm->ops->fill_info(gsb, gsm);
555 }
556 EXPORT_SYMBOL_GPL(kvmppc_gsm_fill_info);
557
558 /**
559 * kvmppc_gsm_fill_info() - deserialises from guest state buffer
560 * @gsm: self
561 * @gsb: buffer to serialise from
562 */
563 int kvmppc_gsm_refresh_info(struct kvmppc_gs_msg *gsm,
564 struct kvmppc_gs_buff *gsb)
> 565 {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-09-12 23:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-12 23:14 kernel test robot [this message]
2023-09-12 23:14 ` [powerpc:topic/ppc-kvm 8/11] arch/powerpc/kvm/guest-state-buffer.c:505: warning: expecting prototype for kvmppc_gsm_init(). Prototype was for kvmppc_gsm_new() instead kernel test robot
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=202309130700.eRu2IdWo-lkp@intel.com \
--to=lkp@intel.com \
--cc=jniethe5@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--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.