Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp954570lqh; Fri, 29 Mar 2024 02:23:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBNRgoFuuqgXdBY23xyHxQ8r0tImb5EOIiROBxI/XSOhsxfjdjGkTg8F0RjV0Fm0ktSKlpK7vKO5ehT33Ws63YSpJGQ/zjXWUsY6n/yg== X-Google-Smtp-Source: AGHT+IFiVAOM/P3OGre3R6C7lKlT1O9O/viX2Rl9h2qSG4o7KH92RdMdGhpHibE+VHLNvSNTaPWO X-Received: by 2002:a17:906:7143:b0:a4e:1a59:7e6c with SMTP id z3-20020a170906714300b00a4e1a597e6cmr1186032ejj.45.1711704235794; Fri, 29 Mar 2024 02:23:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711704235; cv=pass; d=google.com; s=arc-20160816; b=kVa4SrOLYpozl4c20JPss9cliIWdgyDP735jqwflVx6/z150VPHYYYl/J/i0GI7e2v iqZOJLo2ydzFgGOlgeQhIr0Q+8lDFCwpJ0jA9+f72EeYGKho1I5H27OfUuwlJUcwuhuj SEzokBeGKq5q8OczEMeRlAGzJtoPkTfoMppeGzYsylGX+9+hmaUeaJVzHqjEOIXVP6XE ulNpZONbA+uMw3aG2sotCuFRYjWZKjjGeVEtIgvUKnJXBDl6uzSTq2TCJ1MG2tp7FPXh 35LxbIThFL//rWFJx7xRmv+vj/q+wKK7vJ5ZwDETKxx4JfDEESkf2N4S5E3gbh7AtZLa jZYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=zY4hKn76YBg1Q6wJ8g32YBB+nfd90xJAykdUaW12C6g=; fh=Przq152cQeAnqbBlrKXe8+guk+fs2lnGDTiM2cUR3AA=; b=LpMnnQ3VD9m+DYBhSVf13ySwJqymIgKfsH3GJfqZ06O2tZZWBGZZwD/5WeKaTngoFy ov8U2TZkvRHVOg5Q78UP3vXZC7xGEO335/kFtL32gzId2cYBfTc92VZtN6XJUWTOJX4A TrgIG7sUPC0xDCPf3sXW+CfbQGFbAnnj8+1B6BEo2w9ZomyYczqVY8TRW4RzwEDv3MEL A+uhh7dZGbbhHUkXKC2MgX3g8fVtIbNRhrFH/54hg8EmOR8KBbwAiJuJd10uAeOzCYlx 9FMH4v5JghOPx8v1GwCXaUF/4SXVZLWcW+8IHdM7GF+iCArfXlPC54yN7DMDkEyrMTOC Rd3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OIoFMVh3; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-124325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o15-20020a17090608cf00b00a4df900db43si1651725eje.1018.2024.03.29.02.23.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 02:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OIoFMVh3; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-124325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3CB9E1F22C04 for ; Fri, 29 Mar 2024 09:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C40BC3C48E; Fri, 29 Mar 2024 09:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OIoFMVh3" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 45210101C6 for ; Fri, 29 Mar 2024 09:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711704226; cv=none; b=aztgacGMultXW87Nz+oeAUQm1zHIbNaP0nufKIBfEAiFGcJE4/DDUyUOE6oZ1cvJxlySQeEucbTbOgsq5Yx/636pHvTdmFvCOoqOTBMYVKT4x+wxvdwhV3ar8BUssRNYP6GNRtHUOdJmS17fTEzgUBn1kD6oI3X3Zs2T+bI1qlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711704226; c=relaxed/simple; bh=Cm5bpqJFlHdL1ecmHLyL8ktz4fY/Yy5A6QGj/+++mqw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=QBYkCgmdKiDNwPgIcfIuxauCWQU4CXW94AJzpTvutk9IiNR7XmKOAOvenbuYl+xLv2AjlOtWcChn++t5gc4npssH787b5xXBHHCQUpb5L4Goc6K2EXddVZ/M/Nu0ouH+8NPGb/MALtEFPj7jT324+wNV9rOuM4Nq6wyWzo4AE4Q= 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=OIoFMVh3; arc=none smtp.client-ip=198.175.65.10 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711704226; x=1743240226; h=date:from:to:cc:subject:message-id:mime-version; bh=Cm5bpqJFlHdL1ecmHLyL8ktz4fY/Yy5A6QGj/+++mqw=; b=OIoFMVh3t+5WA02Y2w0zR/JKVZrgC/KVUK74c3J6n1409x7OJ7zX4h2D jt9TgWEAA6mCEGYOrDkfVkeO0rTZgZm61RbFEqtVgSNQm1ayVuQMl8Aim gC4KRWFU2r1YNxIAtKNo+DFpan/5XDYZocTfmeh/3lbIlGALU52QWz8Xi /Ap0lUxohhXiMW1ZXVHjDJhWDQ1ag6+5NcQT928zheSFKQ3jVIOdmHAR+ G76PhFHyHV9OgMRh8BNh2WHTJL3FGOH5cngelOKNSLujuYGJa/DwltmSj 3RUulefiuSvXUp5V2TzN/tnJeoYlwclCHcBScssDTbdDgzIxdGQ7nms+E g==; X-CSE-ConnectionGUID: jbCKf+E8TNaVMyVBtyeehQ== X-CSE-MsgGUID: /bBeoMQuRBW/VEy68IN2oA== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="24341757" X-IronPort-AV: E=Sophos;i="6.07,164,1708416000"; d="scan'208";a="24341757" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2024 02:23:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,164,1708416000"; d="scan'208";a="17328870" Received: from lkp-server01.sh.intel.com (HELO be39aa325d23) ([10.239.97.150]) by orviesa007.jf.intel.com with ESMTP; 29 Mar 2024 02:23:43 -0700 Received: from kbuild by be39aa325d23 with local (Exim 4.96) (envelope-from ) id 1rq8Sb-00033G-00; Fri, 29 Mar 2024 09:23:41 +0000 Date: Fri, 29 Mar 2024 17:23:25 +0800 From: kernel test robot To: Jamie Cunliffe Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Catalin Marinas Subject: clang diag: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') Message-ID: <202403291729.0LC0Vguf-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 317c7bc0ef035d8ebfc3e55c5dde0566fd5fb171 commit: 724a75ac9542fe1f8aaa587da4d3863d8ea292fc arm64: rust: Enable Rust support for AArch64 date: 7 weeks ago config: arm64-randconfig-r051-20240329 (https://download.01.org/0day-ci/archive/20240329/202403291729.0LC0Vguf-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 79ba323bdd0843275019e16b6e9b35133677c514) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403291729.0LC0Vguf-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/202403291729.0LC0Vguf-lkp@intel.com/ All warnings (new ones prefixed by >>): >> clang diag: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] >> clang diag: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] -- In file included from arch/arm64/kernel/asm-offsets.c:12: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:2188: 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 + | ~~~~~~~~~~~~~~~~~~~~~~ 5 warnings generated. >> clang diag: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] >> clang diag: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] >> clang diag: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] >> clang diag: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] clang diag: include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki