From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73806C54E5C for ; Sun, 3 Mar 2024 04:19:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6D9B66B0098; Sat, 2 Mar 2024 23:19:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 689876B009C; Sat, 2 Mar 2024 23:19:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 550A06B009D; Sat, 2 Mar 2024 23:19:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 4780C6B0098 for ; Sat, 2 Mar 2024 23:19:15 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C2E0516079F for ; Sun, 3 Mar 2024 04:19:14 +0000 (UTC) X-FDA: 81854423028.08.43D8783 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by imf16.hostedemail.com (Postfix) with ESMTP id CC017180002 for ; Sun, 3 Mar 2024 04:19:11 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Hoeldysm; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.14 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709439553; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=yx/MzzBHK4b9aJZvINhWLvNoohp2L/S4M6AB/6tZm0I=; b=xe8GmUjYMsvOErWQVIBeoOpu/Qtu9abWvRHOrIH0EdYKu+lY1o+FQS5RVv7YgH2MqFS4xo Vm/IvDmjjWSIjhf5YBsZHi0gXc26Fz8XFCl+MFhVHboYa+mpX8DCU0Da1fZlSfoeLi1IcL bXI12kdhfnOD8YZLM2H1S1BpckfjDvw= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Hoeldysm; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 198.175.65.14 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709439553; a=rsa-sha256; cv=none; b=2f/NtqrlIxqSbzLRfwbz8WxRCjQSv7SwQ9O40PLW+nKIPWYJJk5g3onICaFfo66VABpzf+ Jg1QIZk8xlw9KwDZ7WlWVW7QlW0B7XiuDI8if0dGh8B0x/cYVP+K8gZWRIDIIwkLzSY9/S eEw7dvd73UTxRwxMyu6FRqED0l8ciJw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709439552; x=1740975552; h=date:from:to:cc:subject:message-id:mime-version; bh=si42yFEpCanPNmQJ4y+sktTxBcBKsrSsKXjsZiX82Gs=; b=Hoeldysml1Yp5lQ8sNqcVuxgW8roeClMt5XsNTGb8cyPrDnKBaG8dBmN 0lpZocY4LZnOziaRL7R4ib6MpgSxJTHZ/vh8wLSgvKX55vlcdEQipKezj +dsIhreAbDJ/hjuxkfxcRWvmGxrxhHCnf9bWI66C8GXedcFIbsrXlpWt3 ZbY7Em4zYnly7ae9dbfwnph8bSkG5643bviGAO05YWQusfSvStZj5Murv 74R68tEbXZ0S/0gFRkLW2kYxasL4JsUtvdGuPqtHL93MpqKpgKpFVxCI+ a//gFq+L7MmqUgLaAViKBKOahnLjEHJqh1JlvyFqU90YZsf0pHDqxDLyS g==; X-IronPort-AV: E=McAfee;i="6600,9927,11001"; a="7762420" X-IronPort-AV: E=Sophos;i="6.06,200,1705392000"; d="scan'208";a="7762420" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2024 20:19:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,200,1705392000"; d="scan'208";a="13298772" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 02 Mar 2024 20:19:07 -0800 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rgdJZ-0000VI-05; Sun, 03 Mar 2024 04:19:05 +0000 Date: Sun, 3 Mar 2024 12:18:46 +0800 From: kernel test robot To: Jesse Brandeburg Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andy Shevchenko , Andrew Morton , Linux Memory Management List Subject: include/linux/vmstat.h:400:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') Message-ID: <202403031232.DGh2J4ks-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: CC017180002 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 5buy5w5ktrpz9ahz9haee5pqiyyrnjr8 X-HE-Tag: 1709439551-36268 X-HE-Meta: U2FsdGVkX1+Vv6l2go8azDDKAO1FicWw32xMzrPNFEnDeWbQuH6mCyTZAb22UjDNYh/dBRuKRimJt2RYdpyEYj/th3VsxmCIetGPHTh7LVAq1+I5s6Bym8NAUJUMCvtwl104OzTxX3C6ZjyULu3YasqUAMDZKHXt9p3urCnU2jqO/JLh22hq3EcQkF+eyjzyk4OgG9SCrJPYBYwefrMAjI9/CVpfkg/ZWFVfmn6V7mqRV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slPUwwIZp3TGu8ix6zkdvvvWcOt7mgxrPMK6P4VFr/VpCDexk7xYVeJwu7CFcRzAFqWoNc1gVJ+/eZFVV4vxoVK5Z8p2UYvViN043wAWTj7IYsG9AmT9Rz+IIMaDKSSDh+bytzyxw8B1BaqGBJBI/6EtYnRC X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 04b8076df2534f08bb4190f90a24e0f7f8930aca commit: c348c16305280fe3e6c1186378f96c8634c149f9 lib: make a test module with set/clear bit date: 3 years, 9 months ago config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20240303/202403031232.DGh2J4ks-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 325f51237252e6dab8e4e1ea1fa7acbb4faee1cd) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240303/202403031232.DGh2J4ks-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/202403031232.DGh2J4ks-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from lib/test_bitops.c:9: In file included from include/linux/module.h:18: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:145: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: In file included from include/linux/mm.h:1485: >> include/linux/vmstat.h:400:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion] 400 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 401 | item]; | ~~~~ include/linux/vmstat.h:407:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion] 407 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 408 | NR_VM_NUMA_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ >> include/linux/vmstat.h:414:36: error: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Werror,-Wenum-enum-conversion] 414 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:419:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion] 419 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 420 | NR_VM_NUMA_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:428:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion] 428 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 429 | NR_VM_NUMA_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ 5 errors generated. vim +400 include/linux/vmstat.h 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 396 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 397 #ifdef CONFIG_NUMA 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 398 static inline const char *numa_stat_name(enum numa_stat_item item) 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 399 { 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 @400 return vmstat_text[NR_VM_ZONE_STAT_ITEMS + 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 401 item]; 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 402 } 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 403 #endif /* CONFIG_NUMA */ 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 404 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 405 static inline const char *node_stat_name(enum node_stat_item item) 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 406 { 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 407 return vmstat_text[NR_VM_ZONE_STAT_ITEMS + 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 408 NR_VM_NUMA_STAT_ITEMS + 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 409 item]; 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 410 } 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 411 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 412 static inline const char *lru_list_name(enum lru_list lru) 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 413 { 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 @414 return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 415 } 9d7ea9a297e644 Konstantin Khlebnikov 2019-12-04 416 :::::: The code at line 400 was first introduced by commit :::::: 9d7ea9a297e6445d567056f15b469dde13ca4134 mm/vmstat: add helpers to get vmstat item names for each enum type :::::: TO: Konstantin Khlebnikov :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki