GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android14-5.15 6/11] arch/arm64/kvm/hyp_trace.c:488:5: warning: no previous prototype for function 'hyp_trace_release'
@ 2023-02-14  9:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-14  9:32 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: oe-kbuild-all

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android14-5.15
head:   8e245b4c3a574fbb94b6b655f84e071febc147a6
commit: 575dd1da644e642dd122a5af1e81c4171af0f842 [6/11] ANDROID: KVM: arm64: Add host support for the nVHE hyp tracing
config: arm64-randconfig-r032-20230213 (https://download.01.org/0day-ci/archive/20230214/[email protected]/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/ammarfaizi2/linux-block/commit/575dd1da644e642dd122a5af1e81c4171af0f842
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android14-5.15
        git checkout 575dd1da644e642dd122a5af1e81c4171af0f842
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/hyp_trace.c:38:17: error: use of undeclared identifier 'STRUCT_HYP_BUFFER_PAGE_SIZE'
           backing_size = STRUCT_HYP_BUFFER_PAGE_SIZE *
                          ^
>> arch/arm64/kvm/hyp_trace.c:488:5: warning: no previous prototype for function 'hyp_trace_release' [-Wmissing-prototypes]
   int hyp_trace_release(struct inode *inode, struct file *file)
       ^
   arch/arm64/kvm/hyp_trace.c:488:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int hyp_trace_release(struct inode *inode, struct file *file)
   ^
   static 
   1 warning and 1 error generated.


vim +/hyp_trace_release +488 arch/arm64/kvm/hyp_trace.c

   487	
 > 488	int hyp_trace_release(struct inode *inode, struct file *file)
   489	{
   490		struct seq_file *m = file->private_data;
   491		struct ht_iterator *iter = m->private;
   492	
   493		ring_buffer_read_finish(iter->buf_iter);
   494	
   495		mutex_lock(&hyp_trace_lock);
   496		hyp_trace_readers--;
   497		mutex_unlock(&hyp_trace_lock);
   498	
   499		return seq_release_private(inode, file);
   500	}
   501	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-14  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14  9:32 [ammarfaizi2-block:google/android/kernel/common/android14-5.15 6/11] arch/arm64/kvm/hyp_trace.c:488:5: warning: no previous prototype for function 'hyp_trace_release' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox