Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1198819rdb; Sat, 7 Oct 2023 17:43:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEPRMdwgItRgbbzdiOCxbShBlDFHMbTzGLTtAeXQsa0+DK0INZumUj/T1S9QBPCuY65Cdx X-Received: by 2002:a17:903:41c1:b0:1c6:30d1:7214 with SMTP id u1-20020a17090341c100b001c630d17214mr12355168ple.55.1696725835152; Sat, 07 Oct 2023 17:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696725835; cv=none; d=google.com; s=arc-20160816; b=d9HVaCJ/QrBviFpUCtdOLhUuUS1uvdk+JLiXu7BUi72advqqdWRJZLRqu6X7ijmOjL HE6+mx2P3N18IUhThzHmnW7Ea42IcAlm75MGYEdzVZ+YgE06+qyVn8nTD6igLfK4P0dJ zFb/F2DksK7ie3/Kor1SSWrvbKvrjiU6K2t92gnoBXqlbCr77pNqd2X76BltWjGI3HI/ N0Dy0xSRpXfjnQ9j+px8uDVIlPUd3oB4GZ1DoI45Sh0DCxeItiYQKVKr/RCopUJVJiGi AHQTvpZaKJ2vqQpT/x9a4+Enz5YTlXVlziBoTrk6iSrEYnlmGBzgpK9AgzO2laVUWRTB 8Saw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=5iQzgGfU3whS3FBUV5pwfz/F+T44zZwfTuuuJPsS+OQ=; fh=hkUK8ZFZ3qS8U2zsO4tgy+1ahIn5hzScuQg/UGypNDY=; b=vfmqKkenFafp22WKqXki2OSJkcoBv0x23Ba0l5hJ5/5H7XPEwUvUWNs2V2SvpgJ5YH XyihESMSqrYzRza3W+TRZlldXYsWru2YOoahggvr5JtaPqcC7wPnQwueWccPIEaeRaEV ZC1h4jwCxhqUhnJ+URf8VW2i+6c2kLbsxkr9x2yaR66ABnQBklCVij4FDB80C+XI1g8H GGsssL0hwSpqA+O6iH5UHZkzYGP10UNitG2yObqmGtKayTAxG3a3YrBaDv/f1xk1vTrs BnWO6sVCUfx5Mkh6fUL26xCRlB//IWB4zApRaKAajLFGf1Gs5dtOHGXlr8RtbW+itJF/ bxHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lgn9R+Fy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c14-20020a170903234e00b001c60ec1e662si7186793plh.29.2023.10.07.17.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 17:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lgn9R+Fy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5F4C680BEF31; Sat, 7 Oct 2023 17:43:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344215AbjJHAnp (ORCPT + 99 others); Sat, 7 Oct 2023 20:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjJHAno (ORCPT ); Sat, 7 Oct 2023 20:43:44 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77F07B6 for ; Sat, 7 Oct 2023 17:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696725822; x=1728261822; h=date:from:to:cc:subject:message-id:mime-version; bh=Dhi6J5BMnQ4CXSxmhqjnimc3+DsvWKxzmJpa6AiWYEM=; b=lgn9R+FyCHYDYspPmcqdGt8iIXOY473DeLSv0hodPEr/VjmOUe0R3uL4 xpj7ZlWf1+ISa1bA2emMFPUxYko4JsTwmW9fCnCEzezem7/8jvy0Y2BdH 5COevw/TNWKS2QdsnT+SnxsP4lLZk5Q6NhPuUfpruszyqTJWh9LzP3p64 N12qjbJ0yKq55pY93DPUarbuigXWeRcddbP1Au3xCm1eeRkfHS7JEb5yK WVnQO7Rn9XjM11J12Ij0mBSLZqlIKwHq/Iu1XyEjnvH1+Sk0sxoVG8uDh 2FbC448yrir8lUuNM4+3NGDH3U5mKJc/vDoaH/+/L5KJqwR8Z5VEDMSF6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10856"; a="363321685" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="363321685" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2023 17:43:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10856"; a="926377179" X-IronPort-AV: E=Sophos;i="6.03,207,1694761200"; d="scan'208";a="926377179" Received: from lkp-server01.sh.intel.com (HELO 8a3a91ad4240) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 07 Oct 2023 17:43:39 -0700 Received: from kbuild by 8a3a91ad4240 with local (Exim 4.96) (envelope-from ) id 1qpHtR-0004yR-19; Sun, 08 Oct 2023 00:43:37 +0000 Date: Sun, 8 Oct 2023 08:43:17 +0800 From: kernel test robot To: Uros Bizjak Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Ingo Molnar , Nadav Amit Subject: [tip:x86/percpu 12/12] arch/x86/include/asm/preempt.h:27:55: sparse: sparse: incompatible types for operation (&): Message-ID: <202310080853.UhMe5iWa-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 07 Oct 2023 17:43:52 -0700 (PDT) X-Spam-Level: ** tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/percpu head: ca4256348660cb2162668ec3d13d1f921d05374a commit: ca4256348660cb2162668ec3d13d1f921d05374a [12/12] x86/percpu: Use C for percpu read/write accessors config: x86_64-randconfig-122-20231007 (https://download.01.org/0day-ci/archive/20231008/202310080853.UhMe5iWa-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231008/202310080853.UhMe5iWa-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/202310080853.UhMe5iWa-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) kernel/bpf/percpu_freelist.c: note: in included file (through arch/x86/include/asm/preempt.h, include/linux/preempt.h, include/linux/spinlock.h, ...): arch/x86/include/asm/percpu.h:550:49: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/percpu.h:550:49: sparse: sparse: got __seg_gs arch/x86/include/asm/percpu.h:564:33: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/percpu.h:564:33: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c: note: in included file (through arch/x86/include/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/thread_info.h, ...): arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c: note: in included file (through include/linux/preempt.h, include/linux/spinlock.h, kernel/bpf/percpu_freelist.h): arch/x86/include/asm/preempt.h:27:16: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:27:16: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:34:15: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:34:15: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:38:19: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:38:19: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:61:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:61:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:66:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:66:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:71:18: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:71:18: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:80:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:80:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:80:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:80:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:80:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:80:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:85:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:85:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:85:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:85:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:85:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:85:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:95:16: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:95:16: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:104:16: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:104:16: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:61:20: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:86:39: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:86:39: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:127:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: Expected ) at end of cast operator kernel/bpf/percpu_freelist.c:159:9: sparse: sparse: got __seg_gs >> arch/x86/include/asm/preempt.h:27:55: sparse: sparse: incompatible types for operation (&): >> arch/x86/include/asm/preempt.h:27:55: sparse: void >> arch/x86/include/asm/preempt.h:27:55: sparse: unsigned int >> arch/x86/include/asm/preempt.h:27:55: sparse: sparse: incompatible types for operation (&): >> arch/x86/include/asm/preempt.h:27:55: sparse: void >> arch/x86/include/asm/preempt.h:27:55: sparse: unsigned int vim +27 arch/x86/include/asm/preempt.h ba1f14fbe70965 Peter Zijlstra 2013-11-28 20 c2daa3bed53a81 Peter Zijlstra 2013-08-14 21 /* c2daa3bed53a81 Peter Zijlstra 2013-08-14 22 * We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users c2daa3bed53a81 Peter Zijlstra 2013-08-14 23 * that think a non-zero value indicates we cannot preempt. c2daa3bed53a81 Peter Zijlstra 2013-08-14 24 */ c2daa3bed53a81 Peter Zijlstra 2013-08-14 25 static __always_inline int preempt_count(void) c2daa3bed53a81 Peter Zijlstra 2013-08-14 26 { 64701838bf0575 Thomas Gleixner 2022-09-15 @27 return raw_cpu_read_4(pcpu_hot.preempt_count) & ~PREEMPT_NEED_RESCHED; c2daa3bed53a81 Peter Zijlstra 2013-08-14 28 } c2daa3bed53a81 Peter Zijlstra 2013-08-14 29 :::::: The code at line 27 was first introduced by commit :::::: 64701838bf0575ef8acb1ad2db5934e864f3e6c3 x86/percpu: Move preempt_count next to current_task :::::: TO: Thomas Gleixner :::::: CC: Peter Zijlstra -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki