From mboxrd@z Thu Jan 1 00:00:00 1970 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 5880316D9AF; Wed, 19 Feb 2025 04:11:28 +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=1739938289; cv=none; b=c4FUE70dgDISVe2uemBkAKNCELcUhBVFBWp3WmlHY+DdakTTVNxpd6jxLdOgx974w0l+KPEJi3lzQe/6VkUu7GLiJWBsWo40939jXopfyPGPbWIMxjp0gI430EsBESCAImbYvZqP2GM9AP8CFBPAjUDhZ9GXEysr5Gk/ZUYNwMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739938289; c=relaxed/simple; bh=z5AEhteH8O7m04V8h0aPoUu9kAVGTMsHkB5jW+Ep0dc=; h=Date:From:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Zn9I1iEJYZorb/BJVfIkj9OSYKrVO9H/83kA5clo2d2WzUdbVaVlrX4XW4D/BFJrR1BrMoWwG3ktrOx8Yo2hzSddKw6JiVsYY0bFuUF4HBDBBsXaP00HmwG7bSeIdLOvfH868LijFgltMi9C7IBa1idYhcV32BpigPG1snEkaZ0= 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=Osp7rOfY; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Osp7rOfY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1739938289; x=1771474289; h=date:from:cc:subject:message-id:mime-version; bh=z5AEhteH8O7m04V8h0aPoUu9kAVGTMsHkB5jW+Ep0dc=; b=Osp7rOfYJ1hPP/RBHW0dUnEZH4JYC3h46TdyeI6OSxAK94j+6TjVm+gh JMeUPY9/StcTcIhGpnagI8Zfu1Yhgo223snHPxjfaf5W3slapeXrmejP3 iow9Doutgsls02d80Z0GxXtANje1MotuevpaeuUqUlJRicPMqio89hSz6 ejUyJIaRi8RTbRA0GpR+vNV4/NITSuKCl6EN7pgtf1id0xw1SZZZdr62I F1dXsgJe/Smr6Imbowy+ef7oj/a9o9IoySFjkeRVTzW0Ebh5pPoZdPyAJ 0Ke9/1KmAlyzHBLHxQqAJ16EmQizQDZmwqbnOcmZEyvvC+ohpMigJYbAC A==; X-CSE-ConnectionGUID: lSSL8YdkQS6E0swvA+LauQ== X-CSE-MsgGUID: dRsASjvASnuyhdG/K5OZlQ== X-IronPort-AV: E=McAfee;i="6700,10204,11348"; a="58061947" X-IronPort-AV: E=Sophos;i="6.13,296,1732608000"; d="scan'208";a="58061947" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2025 20:11:28 -0800 X-CSE-ConnectionGUID: 2uHxbJIJTZawcF0Bc6zZ4w== X-CSE-MsgGUID: CUqG8o89Sxi3MUn0xFwPrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="114448835" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa010.jf.intel.com with ESMTP; 18 Feb 2025 20:11:27 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tkbQV-0001E1-2y; Wed, 19 Feb 2025 04:11:15 +0000 Date: Wed, 19 Feb 2025 12:07:57 +0800 From: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, llvm@lists.linux.dev Subject: kernel/bpf/helpers.c:685:39: warning: bitwise operation between different enumeration types ('enum bpf_return_type' and 'enum bpf_type_flag') Message-ID: <202502191132.ElRmNRIr-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline CC: linux-kernel@vger.kernel.org TO: Hao Luo CC: Alexei Starovoitov Hi Hao, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6537cfb395f352782918d8ee7b7f10ba2cc3cbf2 commit: 3c4807322660d4290ac9062c034aed6b87243861 bpf: Replace RET_XXX_OR_NULL with RET_XXX | PTR_MAYBE_NULL date: 3 years, 2 months ago config: arm-randconfig-004-20250120 (https://download.01.org/0day-ci/archive/20250219/202502191132.ElRmNRIr-lkp@intel.com/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250219/202502191132.ElRmNRIr-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/202502191132.ElRmNRIr-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/bpf/helpers.c:4: In file included from include/linux/bpf.h:20: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:1721: 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_" | ~~~~~~~~~~~ ^ ~~~ >> kernel/bpf/helpers.c:685:39: warning: bitwise operation between different enumeration types ('enum bpf_return_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 685 | .ret_type = RET_PTR_TO_MEM_OR_BTF_ID | PTR_MAYBE_NULL, | ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 2 warnings generated. vim +685 kernel/bpf/helpers.c 681 682 const struct bpf_func_proto bpf_per_cpu_ptr_proto = { 683 .func = bpf_per_cpu_ptr, 684 .gpl_only = false, > 685 .ret_type = RET_PTR_TO_MEM_OR_BTF_ID | PTR_MAYBE_NULL, 686 .arg1_type = ARG_PTR_TO_PERCPU_BTF_ID, 687 .arg2_type = ARG_ANYTHING, 688 }; 689 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki