From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E4AF14D446 for ; Wed, 27 Mar 2024 22:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711578227; cv=none; b=AQITOOrOFLb5mmwbCF+9yfxygUhvQkzdzQHA630eVAQV6n7YjkwoaxjuqkNosvOgUie40n0I2Bk3Yd8hB0vJFl0ptl1KEJOQZ2aRaQeY9hmOpw0j5TiIjRoLmx0djYmmcclSZcpv/QMXcSPjOCc6yFhvI102dFNNdYEOK460wjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711578227; c=relaxed/simple; bh=kNIvojskWVB588cKAXL2yw085V8Mh/E+X8VOiH9uBAI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ZoWsRSjpq7CWe7WChnssysCFgoJ4+FqMhA/IzvhPuHkuELZbn4UMQILX3CsE9rKun7IPVDngd8tw4+B893AE+Aqz61bE3jo+ruNMY7FJWnqZ17BAMBWQp/m/a1PFtV0iSrVxjueJzdfYan0RO9Nt4mYVtFrsJ5/31JqL9a72C0A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=B1WVt6G/; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B1WVt6G/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711578225; x=1743114225; h=date:from:to:cc:subject:message-id:mime-version; bh=kNIvojskWVB588cKAXL2yw085V8Mh/E+X8VOiH9uBAI=; b=B1WVt6G/iQxMGz3fWzr5JF+Q7T7aqmxgGHVXzubS00+TG6Z5BeaWJEGS M0dacDJDzdZgiVAY98ICl1n89rKcwiVvlMbm/sKj5SzV/kvD8C/2K5b3r 940mnzaisq2BUTQvsvYrvmyjtKz5FXHx9xQmeF+6bLg6iiacvI/YzAvcI 5BaeB1/oeEY3hJvP6XfU0Y45evbTgc69Xl4AB2h6K6wdn0kGvYoagAGsC 7qqe1P58FgvbFU6JZYxV2pPKZ9NBZDK7gf5+pALiXh2C6K3IEmuhFGUbi cmPAtv3OdLy1viWnIhfdGLHw/ziCIiXnvo2HxIvG6cs0nd/JkPNovUsUC w==; X-CSE-ConnectionGUID: fum9uBUHQ4q3mP9uYSwyxA== X-CSE-MsgGUID: H5sS+RE6Qy61NlBhgz4LXQ== X-IronPort-AV: E=McAfee;i="6600,9927,11026"; a="17856687" X-IronPort-AV: E=Sophos;i="6.07,160,1708416000"; d="scan'208";a="17856687" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2024 15:23:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,160,1708416000"; d="scan'208";a="47435804" Received: from lkp-server01.sh.intel.com (HELO be39aa325d23) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 27 Mar 2024 15:23:44 -0700 Received: from kbuild by be39aa325d23 with local (Exim 4.96) (envelope-from ) id 1rpbgL-0001Yi-0q; Wed, 27 Mar 2024 22:23:41 +0000 Date: Thu, 28 Mar 2024 06:22:45 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android15-6.1 5/14] arch/arm64/include/asm/kvm_hypevents.h:75:1: warning: no previous prototype for function 'hyp_event_trace___hyp_printk' Message-ID: <202403280656.5yOxThAt-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://android.googlesource.com/kernel/common android15-6.1 head: 5f5330cf89eabff8a8898a9d28474be22b71cc83 commit: 89caa8ff2c191219994f375c5b0dc9886207e8b3 [5/14] ANDROID: KVM: arm64: trace_hyp_printk() config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240328/202403280656.5yOxThAt-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240328/202403280656.5yOxThAt-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202403280656.5yOxThAt-lkp@intel.com/ All warnings (new ones prefixed by >>): include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm64/kvm/hyp_events.c:14: In file included from arch/arm64/include/asm/kvm_define_hypevents.h:27: arch/arm64/include/asm/kvm_hypevents.h:14:1: warning: no previous prototype for function 'hyp_event_trace_hyp_enter' [-Wmissing-prototypes] 14 | HYP_EVENT(hyp_enter, | ^ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ :110:1: note: expanded from here 110 | hyp_event_trace_hyp_enter | ^ arch/arm64/include/asm/kvm_hypevents.h:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit arch/arm64/include/asm/kvm_define_hypevents.h:17:2: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ In file included from arch/arm64/kvm/hyp_events.c:14: In file included from arch/arm64/include/asm/kvm_define_hypevents.h:27: arch/arm64/include/asm/kvm_hypevents.h:23:1: warning: no previous prototype for function 'hyp_event_trace_hyp_exit' [-Wmissing-prototypes] 23 | HYP_EVENT(hyp_exit, | ^ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ :115:1: note: expanded from here 115 | hyp_event_trace_hyp_exit | ^ arch/arm64/include/asm/kvm_hypevents.h:23:1: note: declare 'static' if the function is not intended to be used outside of this translation unit arch/arm64/include/asm/kvm_define_hypevents.h:17:2: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ In file included from arch/arm64/kvm/hyp_events.c:14: In file included from arch/arm64/include/asm/kvm_define_hypevents.h:27: arch/arm64/include/asm/kvm_hypevents.h:32:1: warning: no previous prototype for function 'hyp_event_trace_host_hcall' [-Wmissing-prototypes] 32 | HYP_EVENT(host_hcall, | ^ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ :120:1: note: expanded from here 120 | hyp_event_trace_host_hcall | ^ arch/arm64/include/asm/kvm_hypevents.h:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit arch/arm64/include/asm/kvm_define_hypevents.h:17:2: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ In file included from arch/arm64/kvm/hyp_events.c:14: In file included from arch/arm64/include/asm/kvm_define_hypevents.h:27: arch/arm64/include/asm/kvm_hypevents.h:46:1: warning: no previous prototype for function 'hyp_event_trace_host_smc' [-Wmissing-prototypes] 46 | HYP_EVENT(host_smc, | ^ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ :125:1: note: expanded from here 125 | hyp_event_trace_host_smc | ^ arch/arm64/include/asm/kvm_hypevents.h:46:1: note: declare 'static' if the function is not intended to be used outside of this translation unit arch/arm64/include/asm/kvm_define_hypevents.h:17:2: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ In file included from arch/arm64/kvm/hyp_events.c:14: In file included from arch/arm64/include/asm/kvm_define_hypevents.h:27: arch/arm64/include/asm/kvm_hypevents.h:61:1: warning: no previous prototype for function 'hyp_event_trace_host_mem_abort' [-Wmissing-prototypes] 61 | HYP_EVENT(host_mem_abort, | ^ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ :130:1: note: expanded from here 130 | hyp_event_trace_host_mem_abort | ^ arch/arm64/include/asm/kvm_hypevents.h:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit arch/arm64/include/asm/kvm_define_hypevents.h:17:2: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ In file included from arch/arm64/kvm/hyp_events.c:14: In file included from arch/arm64/include/asm/kvm_define_hypevents.h:27: >> arch/arm64/include/asm/kvm_hypevents.h:75:1: warning: no previous prototype for function 'hyp_event_trace___hyp_printk' [-Wmissing-prototypes] 75 | HYP_EVENT(__hyp_printk, | ^ arch/arm64/include/asm/kvm_define_hypevents.h:17:7: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ :135:1: note: expanded from here 135 | hyp_event_trace___hyp_printk | ^ arch/arm64/include/asm/kvm_hypevents.h:75:1: note: declare 'static' if the function is not intended to be used outside of this translation unit arch/arm64/include/asm/kvm_define_hypevents.h:17:2: note: expanded from macro 'HYP_EVENT' 17 | void hyp_event_trace_##__name(struct ht_iterator *iter) \ | ^ arch/arm64/kvm/hyp_events.c:215:6: warning: no previous prototype for function 'hyp_trace_init_event_early' [-Wmissing-prototypes] 215 | bool hyp_trace_init_event_early(void) | ^ arch/arm64/kvm/hyp_events.c:215:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 215 | bool hyp_trace_init_event_early(void) | ^ | static arch/arm64/kvm/hyp_events.c:265:19: warning: no previous prototype for function 'hyp_trace_find_event' [-Wmissing-prototypes] 265 | struct hyp_event *hyp_trace_find_event(int id) | ^ arch/arm64/kvm/hyp_events.c:265:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 265 | struct hyp_event *hyp_trace_find_event(int id) | ^ | static arch/arm64/kvm/hyp_events.c:339:6: warning: no previous prototype for function 'hyp_trace_init_event_tracefs' [-Wmissing-prototypes] 339 | void hyp_trace_init_event_tracefs(struct dentry *parent) | ^ arch/arm64/kvm/hyp_events.c:339:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 339 | void hyp_trace_init_event_tracefs(struct dentry *parent) | ^ | static arch/arm64/kvm/hyp_events.c:361:5: warning: no previous prototype for function 'hyp_trace_init_events' [-Wmissing-prototypes] 361 | int hyp_trace_init_events(void) | ^ arch/arm64/kvm/hyp_events.c:361:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 361 | int hyp_trace_init_events(void) | ^ | static arch/arm64/kvm/hyp_events.c:378:5: warning: no previous prototype for function 'hyp_trace_init_mod_events' [-Wmissing-prototypes] 378 | int hyp_trace_init_mod_events(struct hyp_event *event, | ^ arch/arm64/kvm/hyp_events.c:378:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 378 | int hyp_trace_init_mod_events(struct hyp_event *event, | ^ | static 16 warnings generated. vim +/hyp_event_trace___hyp_printk +75 arch/arm64/include/asm/kvm_hypevents.h 74 > 75 HYP_EVENT(__hyp_printk, -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki