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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB499C433EF for ; Wed, 22 Jun 2022 02:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=OBK112wAXOmCtF39+oB43O3MJ6Y63XiecuhUfDKorKc=; b=n7uUp98MTtiBIm 26iAByg8K1NzaQnO4HpE6h0ryJFeOnWytlBeqqU+ACBqBcFn08zi75W7uoE9t3jY/qoalX7vCMeZs yUysUv51SE3rGKz+NQRygbWib3RO6hOJJSd7fPrHEAcG2VUAA7vlvXrI32JmBrsDrjg2hLBp+PjJ7 q0uTP1J/TU8I3KFuLZnyqfFHFBQ/A445JnwrgQKbAItP4X6o8vdxvXIU9sTK7rvoT7CMR4Smv+s2K 34w6FQIX1KJmeLzAdVI/KU8u2FCxklcRY17zljPn0vNISsEmKk9eE3Eq4aA4fwIlbU8yMNb2hbwGf WZLJCoQ9pDyNmPvrgobw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3qXk-008EXg-CQ; Wed, 22 Jun 2022 02:56:36 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3qXg-008EWN-O3 for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2022 02:56:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655866592; x=1687402592; h=date:from:to:cc:subject:message-id:mime-version; bh=MI0nhQq+d1OPmbUo3WEFWslmF5cUzafWcjVWBnwkcaw=; b=BzUpofTJ7woU3opjfrDu46rHcIU0qx3Q2OfRj23WH4pyKnWeJ2Np4iJt 35i2juMhxloetQdYL8LwyUQlLYzOjd8rCFG4rEx/irj0UNrf7wyKgifvG pcFrjOkV/u0R8rRheZubf6EQbLObMM7hzGec82+WKjxPY2f9uDsmaOdlH YomtKdIxxH/rs2fCWFKkKJq3DjEYQj2QpFJoaIElntJoITyREcfjlzwAp aYMTwKP2NV1FyYMMErQWys+riqt13Ikzh5hxQ12piQ98pfZ0tiXej+21t 5en2OHJ2kDMGzLDJnrk8+o1mn5JQ8bGOtlh2yyv7z/cMX2myJbBJFBBxs w==; X-IronPort-AV: E=McAfee;i="6400,9594,10385"; a="281370117" X-IronPort-AV: E=Sophos;i="5.92,211,1650956400"; d="scan'208";a="281370117" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2022 19:56:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,211,1650956400"; d="scan'208";a="677305828" Received: from lkp-server02.sh.intel.com (HELO a67cc04a5eeb) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jun 2022 19:56:28 -0700 Received: from kbuild by a67cc04a5eeb with local (Exim 4.95) (envelope-from ) id 1o3qXb-0000l5-CJ; Wed, 22 Jun 2022 02:56:27 +0000 Date: Wed, 22 Jun 2022 10:56:05 +0800 From: kernel test robot To: Stefano Stabellini Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 42/1187] drivers/xen/pvcalls.c:64:34: sparse: sparse: incorrect type in return expression (different base types) Message-ID: <202206221000.IMMe7tsT-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220621_195632_917937_4DFD7E15 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 623b93338922e56f9b8fe9a43961f120d7a999f8 commit: 96575d8afcbca7038f411f6b06628e37b9a988e5 [42/1187] xen/pvcalls: frontend enable config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220622/202206221000.IMMe7tsT-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-31-g4880bd19-dirty # https://github.com/Xilinx/linux-xlnx/commit/96575d8afcbca7038f411f6b06628e37b9a988e5 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout 96575d8afcbca7038f411f6b06628e37b9a988e5 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/xen/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/xen/pvcalls.c:64:34: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned int @@ got restricted __poll_t @@ drivers/xen/pvcalls.c:64:34: sparse: expected unsigned int drivers/xen/pvcalls.c:64:34: sparse: got restricted __poll_t >> drivers/xen/pvcalls.c:116:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __poll_t ( *poll )( ... ) @@ got unsigned int ( * )( ... ) @@ drivers/xen/pvcalls.c:116:17: sparse: expected restricted __poll_t ( *poll )( ... ) drivers/xen/pvcalls.c:116:17: sparse: got unsigned int ( * )( ... ) vim +64 drivers/xen/pvcalls.c 60 61 static unsigned int pvcalls_poll(struct file *file, struct socket *sock, 62 poll_table *wait) 63 { > 64 return pvcalls_front_poll(file, sock, wait); 65 } 66 67 static int pvcalls_listen(struct socket *sock, int backlog) 68 { 69 return pvcalls_front_listen(sock, backlog); 70 } 71 72 static int pvcalls_stream_sendmsg(struct socket *sock, struct msghdr *msg, 73 size_t len) 74 { 75 return pvcalls_front_sendmsg(sock, msg, len); 76 } 77 78 static int 79 pvcalls_stream_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, 80 int flags) 81 { 82 return pvcalls_front_recvmsg(sock, msg, len, flags); 83 } 84 85 static int pvcalls_release(struct socket *s) 86 { 87 return pvcalls_front_release(s); 88 } 89 90 static int pvcalls_shutdown(struct socket *s, int h) 91 { 92 return -ENOTSUPP; 93 } 94 95 static int sock_no_setsockopt(struct socket *sock, int level, int optname, 96 sockptr_t optval, unsigned int optlen) 97 { 98 return -ENOTSUPP; 99 } 100 101 static int sock_no_getsockopt(struct socket *sock, int level, int optname, 102 char __user *optval, int __user *optlen) 103 { 104 return -ENOTSUPP; 105 } 106 107 const struct proto_ops pvcalls_stream_ops = { 108 .family = PF_INET, 109 .owner = THIS_MODULE, 110 .release = pvcalls_release, 111 .bind = pvcalls_bind, 112 .connect = pvcalls_stream_connect, 113 .socketpair = sock_no_socketpair, 114 .accept = pvcalls_accept, 115 .getname = pvcalls_getname, > 116 .poll = pvcalls_poll, 117 .ioctl = sock_no_ioctl, 118 .listen = pvcalls_listen, 119 .shutdown = pvcalls_shutdown, 120 .setsockopt = sock_no_setsockopt, 121 .getsockopt = sock_no_getsockopt, 122 .sendmsg = pvcalls_stream_sendmsg, 123 .recvmsg = pvcalls_stream_recvmsg, 124 .mmap = sock_no_mmap, 125 .sendpage = sock_no_sendpage, 126 }; 127 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel