Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1775873rdb; Sat, 10 Feb 2024 18:04:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDa4S9uQOw4LL6Wqt9VHE0wskPoQcM3BSERXrz02WAsNqkxgl5qO7ih6ktOpaOvk/zKDfJ X-Received: by 2002:a05:6a20:c707:b0:19e:b89f:99ff with SMTP id hi7-20020a056a20c70700b0019eb89f99ffmr3343787pzb.3.1707617040304; Sat, 10 Feb 2024 18:04:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707617040; cv=pass; d=google.com; s=arc-20160816; b=fMl1OwsYJq/4KCZQxC13+Kska1IiU1K94tA5mZqj1HkckHHldREeAYBSVCCdqEHdo9 gx0VQQD2q2PUeaZUAmB614E5vpw7maAV9aShiuch5q+N+BULNyXzjtJR1d2Ts31WzGi9 QuEHXCgwf5Vwp9ObAi8hxTrEK4VaGj54kjIeQV0braNjgOPp5Yu+iGvGZf+rlAZxstX2 iJoFLisZv7cUmaC8TF+8tF207uoF+Hg6/2/5TgUlhgq/SGk6u91mwX8fKh0E67Mui8hc jhiCb80WfnhnL3fl4lyfV4XTNBc0lfq7vUqgJ+ChWT4/kOCG9K29dcjYzX3wwCTeWW3s M7DA== 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=4niUiQRWaxNtFrocMMC/kszMKUs7Ntt2SUAiH/R6ITs=; fh=b6L+2wA9YozKMNTusbvfaxE4P3Bhtt9b9BLGxa/jrNE=; b=Ts1qUyK0yP9xVSu9e1EXp5867BQwM+p0xcKidS3/cQF6FdTmPi2q5d8mmgFzZSpwD0 8bz+8tPVs9eN4Wgl4tRTWrtBzuHvETyeaOdBVY6RPJQtAJA+5OpWOXY0HZSkUQdFt5lF xWqKSba1s2xmEJeIdM1kl2ncPzhSLz9/r3C9EKI0aOTnymWvlmFesa79OcHT1mR46XBh oF5O4aGWGUfPGoCPqQFVtGc+ZiTv5MmYA8vPXo5lTgXaqDWCzL7618OzBhJ82JKBAb+D dme9fUJQ+mpS3iVOhagd3qyGzWCRgvfkNw7VHOX3woXYjFoT1Xjf0fMJxj3W1fgqRoyV 2zPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TUHxBqSp; 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-60629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCWuApLViutKkZlvYyMnwkDW7oHQeXu16kX/fAnQPsEmtUd0xypbQ4Ycwc8sl00vtikmXaq1eMjDitDJQF+cvliSqQhRg0P7TTfF0A2ZTw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a9-20020a17090a854900b00296870d1670si728440pjw.113.2024.02.10.18.03.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 18:04:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TUHxBqSp; 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-60629-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60629-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C66D5B2251B for ; Sun, 11 Feb 2024 02:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B71817F3; Sun, 11 Feb 2024 02:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TUHxBqSp" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 99BE1185A for ; Sun, 11 Feb 2024 02:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707617028; cv=none; b=YC40GkKYwFGv18A96W3zlb8r68rDQHBePxRUQatCCP/rDwseQbceo+xc0nCRzRFnqsfC/+Czdz2v1uM7vKy/+MnxPQ3c/9Ywz6SfMaSVe3xmQeeL57GGjuiYTvjLA+UNX0roSP2SLjP2E9k1QoVbI5ex/iF6GDDsqZLcOM9SF80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707617028; c=relaxed/simple; bh=0KHNYYwZuWk92VhOm7k0q95ijj5D9AyzjBI7oeZefxQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=I0LsqjtEZbr9DUDRDhI3JOizeTb3plANjLehC6Yf9BGIQ68L5skThD6Fsxu30FtSxtX5r79yuiHrX8jFSamKQEGVaxzbu7SIevIs48tgZRaLCjwnU4sbZTOny5nzJ6jQ19c1GNDp/dyLZ/obBMhlZYQ3QO4etvmhsW53YgEpBU4= 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=TUHxBqSp; arc=none smtp.client-ip=192.198.163.19 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=1707617027; x=1739153027; h=date:from:to:cc:subject:message-id:mime-version; bh=0KHNYYwZuWk92VhOm7k0q95ijj5D9AyzjBI7oeZefxQ=; b=TUHxBqSpqydFtAqY+IbsmOa76vz468BARGe3Op0Zs2ewpRrhLW/w7hWv XU4Taaiw4Zr/p0nMB5ht3h/bxTp9HDV5F6cY9EJZNKnBZBt8BHcKbwlEH lYlszdgs9grZ+PbYsFCllwU18et7OmqcsPq82W+qHfjKcrqsbMnPcY1tg SUGj14pPHb55UYSieLzPosBm0itJ79U7OaXMForthUNSozq7FdsAc7q8W XRh2aTJTPN8vkUgQIu1LgcBOy5guk73Peu4Nv996oY81T1gtxjdfIO1b1 9UgN3nZl/uZYvJeFLIfjnPeEvuNB1nu4WXJLfCprAQvymHhSl+SN6V6Ly Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10980"; a="1490725" X-IronPort-AV: E=Sophos;i="6.05,260,1701158400"; d="scan'208";a="1490725" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2024 18:03:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,260,1701158400"; d="scan'208";a="39713940" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 10 Feb 2024 18:03:44 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1rYzC2-0006Fs-0L; Sun, 11 Feb 2024 02:03:42 +0000 Date: Sun, 11 Feb 2024 10:03:12 +0800 From: kernel test robot To: Hamish Martin Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Chris Packham Subject: drivers/uio/uio.c:520:21: sparse: sparse: incorrect type in assignment (different base types) Message-ID: <202402111048.4XHz0rkp-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: a5b6244cf87c50358f5562b8f07f7ac35fc7f6b0 commit: a93e7b331568227500186a465fee3c2cb5dffd1f uio: Prevent device destruction while fds are open date: 6 years ago config: x86_64-randconfig-x051-20230705 (https://download.01.org/0day-ci/archive/20240211/202402111048.4XHz0rkp-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/20240211/202402111048.4XHz0rkp-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/202402111048.4XHz0rkp-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/uio/uio.c:520:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __poll_t [usertype] ret @@ got int @@ drivers/uio/uio.c:520:21: sparse: expected restricted __poll_t [usertype] ret drivers/uio/uio.c:520:21: sparse: got int drivers/uio/uio.c:852: warning: expecting prototype for uio_register_device(). Prototype was for __uio_register_device() instead vim +520 drivers/uio/uio.c 510 511 static __poll_t uio_poll(struct file *filep, poll_table *wait) 512 { 513 struct uio_listener *listener = filep->private_data; 514 struct uio_device *idev = listener->dev; 515 __poll_t ret = 0; 516 unsigned long flags; 517 518 spin_lock_irqsave(&idev->info_lock, flags); 519 if (!idev->info || !idev->info->irq) > 520 ret = -EIO; 521 spin_unlock_irqrestore(&idev->info_lock, flags); 522 523 if (ret) 524 return ret; 525 526 poll_wait(filep, &idev->wait, wait); 527 if (listener->event_count != atomic_read(&idev->event)) 528 return EPOLLIN | EPOLLRDNORM; 529 return 0; 530 } 531 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki