All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android14-6.1 240/258] arch/arm64/kvm/hyp/nvhe/serial.c:41:6: warning: no previous prototype for function 'hyp_puts'
Date: Fri, 8 Sep 2023 23:47:38 +0800	[thread overview]
Message-ID: <202309082322.BULCgRwR-lkp@intel.com> (raw)

tree:   https://android.googlesource.com/kernel/common android14-6.1
head:   a68bd014933d54623838ac1c07fd725694631e53
commit: b21ae4963d0d204a1405c4aedd76eb01cd79dfdd [240/258] ANDROID: KVM: arm64: Add serial framework for pKVM
config: arm64-randconfig-r013-20230908 (https://download.01.org/0day-ci/archive/20230908/202309082322.BULCgRwR-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230908/202309082322.BULCgRwR-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/202309082322.BULCgRwR-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm64/kvm/hyp/nvhe/serial.c:41:6: warning: no previous prototype for function 'hyp_puts' [-Wmissing-prototypes]
      41 | void hyp_puts(const char *s)
         |      ^
   arch/arm64/kvm/hyp/nvhe/serial.c:41:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      41 | void hyp_puts(const char *s)
         | ^
         | static 
>> arch/arm64/kvm/hyp/nvhe/serial.c:53:6: warning: no previous prototype for function 'hyp_putx64' [-Wmissing-prototypes]
      53 | void hyp_putx64(u64 x)
         |      ^
   arch/arm64/kvm/hyp/nvhe/serial.c:53:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      53 | void hyp_putx64(u64 x)
         | ^
         | static 
>> arch/arm64/kvm/hyp/nvhe/serial.c:59:6: warning: no previous prototype for function 'hyp_putc' [-Wmissing-prototypes]
      59 | void hyp_putc(char c)
         |      ^
   arch/arm64/kvm/hyp/nvhe/serial.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      59 | void hyp_putc(char c)
         | ^
         | static 
>> arch/arm64/kvm/hyp/nvhe/serial.c:65:5: warning: no previous prototype for function '__pkvm_register_serial_driver' [-Wmissing-prototypes]
      65 | int __pkvm_register_serial_driver(void (*cb)(char))
         |     ^
   arch/arm64/kvm/hyp/nvhe/serial.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      65 | int __pkvm_register_serial_driver(void (*cb)(char))
         | ^
         | static 
   4 warnings generated.


vim +/hyp_puts +41 arch/arm64/kvm/hyp/nvhe/serial.c

    40	
  > 41	void hyp_puts(const char *s)
    42	{
    43		if (!hyp_serial_enabled())
    44			return;
    45	
    46		while (*s)
    47			__hyp_putc(*s++);
    48	
    49		__hyp_putc('\n');
    50		__hyp_putc('\r');
    51	}
    52	
  > 53	void hyp_putx64(u64 x)
    54	{
    55		if (hyp_serial_enabled())
    56			__hyp_putx4n(x, 64);
    57	}
    58	
  > 59	void hyp_putc(char c)
    60	{
    61		if (hyp_serial_enabled())
    62			__hyp_putc(c);
    63	}
    64	
  > 65	int __pkvm_register_serial_driver(void (*cb)(char))

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2023-09-08 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08 15:47 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-16  4:04 [android-common:android14-6.1 240/258] arch/arm64/kvm/hyp/nvhe/serial.c:41:6: warning: no previous prototype for function 'hyp_puts' 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=202309082322.BULCgRwR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.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.