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 77DB3C4345F for ; Wed, 24 Apr 2024 13:58:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0BA4C6B0294; Wed, 24 Apr 2024 09:58:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 06B1C6B0295; Wed, 24 Apr 2024 09:58:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E73FF6B0296; Wed, 24 Apr 2024 09:58:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CAB5B6B0294 for ; Wed, 24 Apr 2024 09:58:20 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7EFC1141097 for ; Wed, 24 Apr 2024 13:58:20 +0000 (UTC) X-FDA: 82044579960.21.631345C Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by imf10.hostedemail.com (Postfix) with ESMTP id 6C6D8C0015 for ; Wed, 24 Apr 2024 13:58:17 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Ac/i8oNS"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.16 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=1713967098; 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:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=tHc4u1dUuwA2TwpV+Xmic9d/SdwQtvo9j6C4H4z6fkA=; b=yL62ptrD829G6/bs4qtEE3k2Lc0bAyUDTeWSNqk6Qgtcq8MN+crrvcAx/zzH/eBxNWNMFa mfMXdJaaJHdJ6qgAsSJlIkeMak2d/j1UzmYBR9OyXVICLGlTE3snCsmOAw99hNEjWLeGk/ p3XpXYjnVamAB622jStED4BtGZFVMao= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Ac/i8oNS"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.16 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713967098; a=rsa-sha256; cv=none; b=MZUmyvk5DLcvqERaO4iy6WKMqtFSULdZaaO1sWcTcmbIY3HPaj0T4kAB2HdGrVeRuGyZR4 HpHSHYqst0Zh6/5u8jT5EyU0nXyPFqTUTOoxkdP/5OMJGYBR9wLqb+3azRCIDuheP1urVj SdrjirpwPXZKoJiGlP4yGn2JpZmo6pI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713967098; x=1745503098; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=17FrExctQ66YMh8g9HaZYflyY/8WgwLpLrWyhZHCQQM=; b=Ac/i8oNSSBTAsMsZss3GGZvKIAVEfNeI/Jj0aKLzEs0vV/APlz0DZxjJ fMIkch4jiZ4tCLh6hNcBvcjzMmdlff23YsrE0Z6vXWMLetEWYD4j3jtAI 4Lh67+oEBnsWwLAgVYj2SsnVDRdwHCH/b38wJQvni+qAftq3pzgHFQr7C PFpIcT/6ErNTA2OFn7k3SymWUM4PzGHo6vcfb+qumifRWE6lw5qkAZ+br n3ULVzO3Km75e5s8Z69CSxE2W6x1UDWohQFlOFngiHoAunLayRHPw03JT mP564u5Zhcb3HfaHFW2NgV0CdbQZl+/MENJQgAIae6i9tlu/vILzccEun Q==; X-CSE-ConnectionGUID: F6sdTc2SSEqOtFVJjndySA== X-CSE-MsgGUID: LtsbCjvOTpuVEIkAwP3c2w== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="10136830" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="10136830" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 06:58:16 -0700 X-CSE-ConnectionGUID: k/1766Q6SBK6DTrTGTjuVw== X-CSE-MsgGUID: qD/ADGtkQwKQV6f5sd4yMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="55918864" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 24 Apr 2024 06:58:14 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1rzd8V-0001IC-2z; Wed, 24 Apr 2024 13:58:11 +0000 Date: Wed, 24 Apr 2024 21:57:13 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-snps-arc@lists.infradead.org Subject: [linux-next:master 5890/8170] drivers/pci/pci.h:359:23: sparse: sparse: incorrect type in argument 2 (different base types) Message-ID: <202404242144.8931hnhx-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 6C6D8C0015 X-Rspam-User: X-Stat-Signature: 4scfcc96rohfcwcih45nrayxuicfa3q8 X-HE-Tag: 1713967097-484037 X-HE-Meta: U2FsdGVkX1/MaoswqhXGRDIPVTTxENb7Hn68fBdHhHuj2ViLUv0el+pDH65+YODm7tScdcP19B6EW1G10xK9TwMFk1Q/MlcVLTtLtBkH8jxQTgpyaOvTqd9RgX6FrYa40czNvkHC2zRaXgRKPrLxgJTulq++xYXqsIFZ0deajT9wymA5z06bqrJNkVqEaCa4g7omcQ8sLRCbvpETWGoZhgUC/rRQas7pqqMnlFe6Jd9VEsu1Yc3HizL0bEeOVxJK7IkF1KKjetA+NJf0xc9qDFjCROQeGc6AcCNggJyVyCa2gAxRXGVZFXTKbmC1tXo5k5vS6Qa9YVFz/KFRxBkF2IaHVdm+zZFOHgy1itHfOBCBx+6spG4otf98+ugTF2q4BhpudkBW4oyu7xgwdqfANonodDWMly/rW6g7qJCQ1Xn5+AF02MppC0WDHmQo2J4Q5Umk8bUZbFTFCtkkZBkICFga7aENxvqCccKureByr+smMf6V3mKQYtf52+zEhjsEttgSPU9KTbYJzQpw1sJzYZFja8+k1Q3C66Ndg/HOES7YloQ5vlLOX/TWDgbWmsANtebZeaej0ugoTZeboQ3utsMmxPAffO1TnQ+rB5YaXpr760g32ikonvTiEsjY/KzLavtzmy+/bu9nnzbRCQtUH4WREXIvHXUdtqs+unyFd5lI307wHpVtcPPGWOF2NDjQEaksf4RgW7L09bIYAOS49HQemhVHkZPGMTzOgOwLS7MPmbm3t5PtLonRL44fcqMLzRJB9CrL2ZhBPQMkS8mL45US8WaajbXZNhCWFkxz/TYHlZEEa/obqcVbhVUN6PozpC1eYkLUqGIk4SH3sqLIGA== 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/next/linux-next.git master head: 5e4f84f18c4ee9b0ccdc19e39b7de41df21699dd commit: 99ce03b849f89ae2a00addf5b5475d2bb81972f6 [5890/8170] ARC: Emulate one-byte cmpxchg config: arc-randconfig-r122-20240424 (https://download.01.org/0day-ci/archive/20240424/202404242144.8931hnhx-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240424/202404242144.8931hnhx-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/202404242144.8931hnhx-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/pci/pci-driver.c:520:42: sparse: sparse: restricted pci_power_t degrades to integer drivers/pci/pci-driver.c:520:61: sparse: sparse: restricted pci_power_t degrades to integer drivers/pci/pci-driver.c: note: in included file (through include/linux/pci.h): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true drivers/pci/pci-driver.c:389:19: sparse: sparse: self-comparison always evaluates to false drivers/pci/pci-driver.c: note: in included file: >> drivers/pci/pci.h:359:23: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [usertype] old @@ got restricted pci_channel_state_t _o_ @@ drivers/pci/pci.h:359:23: sparse: expected unsigned long [usertype] old drivers/pci/pci.h:359:23: sparse: got restricted pci_channel_state_t _o_ >> drivers/pci/pci.h:359:23: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned long [usertype] new @@ got restricted pci_channel_state_t _n_ @@ drivers/pci/pci.h:359:23: sparse: expected unsigned long [usertype] new drivers/pci/pci.h:359:23: sparse: got restricted pci_channel_state_t _n_ drivers/pci/pci.h:359:23: sparse: sparse: cast to restricted pci_channel_state_t drivers/pci/pci.h:363:23: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned long [usertype] old @@ got restricted pci_channel_state_t _o_ @@ drivers/pci/pci.h:363:23: sparse: expected unsigned long [usertype] old drivers/pci/pci.h:363:23: sparse: got restricted pci_channel_state_t _o_ drivers/pci/pci.h:363:23: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned long [usertype] new @@ got restricted pci_channel_state_t _n_ @@ drivers/pci/pci.h:363:23: sparse: expected unsigned long [usertype] new drivers/pci/pci.h:363:23: sparse: got restricted pci_channel_state_t _n_ drivers/pci/pci.h:363:23: sparse: sparse: cast to restricted pci_channel_state_t vim +359 drivers/pci/pci.h ac04840350e2c2 Lukas Wunner 2023-03-11 337 a6bd101b8f84f9 Keith Busch 2018-09-20 338 /** a6bd101b8f84f9 Keith Busch 2018-09-20 339 * pci_dev_set_io_state - Set the new error state if possible. a6bd101b8f84f9 Keith Busch 2018-09-20 340 * 347269c113f10f Krzysztof Wilczyński 2021-07-03 341 * @dev: PCI device to set new error_state 347269c113f10f Krzysztof Wilczyński 2021-07-03 342 * @new: the state we want dev to be in a6bd101b8f84f9 Keith Busch 2018-09-20 343 * 74ff8864cc842b Lukas Wunner 2023-01-20 344 * If the device is experiencing perm_failure, it has to remain in that state. 74ff8864cc842b Lukas Wunner 2023-01-20 345 * Any other transition is allowed. a6bd101b8f84f9 Keith Busch 2018-09-20 346 * a6bd101b8f84f9 Keith Busch 2018-09-20 347 * Returns true if state has been changed to the requested state. a6bd101b8f84f9 Keith Busch 2018-09-20 348 */ a6bd101b8f84f9 Keith Busch 2018-09-20 349 static inline bool pci_dev_set_io_state(struct pci_dev *dev, a6bd101b8f84f9 Keith Busch 2018-09-20 350 pci_channel_state_t new) a6bd101b8f84f9 Keith Busch 2018-09-20 351 { 74ff8864cc842b Lukas Wunner 2023-01-20 352 pci_channel_state_t old; a6bd101b8f84f9 Keith Busch 2018-09-20 353 a6bd101b8f84f9 Keith Busch 2018-09-20 354 switch (new) { a6bd101b8f84f9 Keith Busch 2018-09-20 355 case pci_channel_io_perm_failure: 74ff8864cc842b Lukas Wunner 2023-01-20 356 xchg(&dev->error_state, pci_channel_io_perm_failure); 74ff8864cc842b Lukas Wunner 2023-01-20 357 return true; a6bd101b8f84f9 Keith Busch 2018-09-20 358 case pci_channel_io_frozen: 74ff8864cc842b Lukas Wunner 2023-01-20 @359 old = cmpxchg(&dev->error_state, pci_channel_io_normal, 74ff8864cc842b Lukas Wunner 2023-01-20 360 pci_channel_io_frozen); 74ff8864cc842b Lukas Wunner 2023-01-20 361 return old != pci_channel_io_perm_failure; a6bd101b8f84f9 Keith Busch 2018-09-20 362 case pci_channel_io_normal: 74ff8864cc842b Lukas Wunner 2023-01-20 363 old = cmpxchg(&dev->error_state, pci_channel_io_frozen, 74ff8864cc842b Lukas Wunner 2023-01-20 364 pci_channel_io_normal); 74ff8864cc842b Lukas Wunner 2023-01-20 365 return old != pci_channel_io_perm_failure; 74ff8864cc842b Lukas Wunner 2023-01-20 366 default: 74ff8864cc842b Lukas Wunner 2023-01-20 367 return false; a6bd101b8f84f9 Keith Busch 2018-09-20 368 } a6bd101b8f84f9 Keith Busch 2018-09-20 369 } 89ee9f7680031d Keith Busch 2017-03-29 370 :::::: The code at line 359 was first introduced by commit :::::: 74ff8864cc842be994853095dba6db48e716400a PCI: hotplug: Allow marking devices as disconnected during bind/unbind :::::: TO: Lukas Wunner :::::: CC: Bjorn Helgaas -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki