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 AD238C433EF for ; Tue, 21 Dec 2021 19:14:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 27D756B0071; Tue, 21 Dec 2021 14:14:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 22C736B0073; Tue, 21 Dec 2021 14:14:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0F5106B0074; Tue, 21 Dec 2021 14:14:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0156.hostedemail.com [216.40.44.156]) by kanga.kvack.org (Postfix) with ESMTP id 018596B0071 for ; Tue, 21 Dec 2021 14:14:18 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id B9F09844FF for ; Tue, 21 Dec 2021 19:14:18 +0000 (UTC) X-FDA: 78942752196.29.4A7DC7D Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf02.hostedemail.com (Postfix) with ESMTP id 0BFFE8001F for ; Tue, 21 Dec 2021 19:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640114057; x=1671650057; h=date:from:to:cc:subject:message-id:mime-version; bh=0+76WnuBTMhkDbnQFzuotah7ci6CpzxWTz0HppDfbaI=; b=ML4P1YAq46kq01XVz902cYAzon8YpTzRlXWEonIdzawcAXimyijzRmVC cew4rx3yqD13rkD8JXQigx8IkTf6A24egIz7RU8fZrsbw7/Fq3+vKawPs +s6pClNuVW/CjsJXczjNZY4VsgWg4hPY4wCAJErWu0+/453ScxtqUph7s RPoH8izAF2FGG9WgH6DrHyZwHP7YCSAfE3dGq3TH4yiS+Lzofg26tm0oN RaS0+e96tNZknAc3M516qY+gwngEoO2CGpbH8AX89WNEPgHyHDBRDFic/ grhe+/+6gco3MNn1kGI1LmTW2q5aSPlobYOaybXWq6/VVgPnPBhC8YPoy g==; X-IronPort-AV: E=McAfee;i="6200,9189,10205"; a="240429959" X-IronPort-AV: E=Sophos;i="5.88,224,1635231600"; d="scan'208";a="240429959" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2021 11:14:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,224,1635231600"; d="scan'208";a="684768169" Received: from lkp-server02.sh.intel.com (HELO 9f38c0981d9f) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 21 Dec 2021 11:14:13 -0800 Received: from kbuild by 9f38c0981d9f with local (Exim 4.92) (envelope-from ) id 1mzkaT-0009S7-3k; Tue, 21 Dec 2021 19:14:13 +0000 Date: Wed, 22 Dec 2021 03:13:22 +0800 From: kernel test robot To: Tianyu Lan Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Wei Liu , Long Li , Michael Kelley Subject: [linux-next:master 8563/8895] drivers/hv/vmbus_drv.c:2082:29: warning: shift count >= width of type Message-ID: <202112220302.x6d84578-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 0BFFE8001F X-Stat-Signature: ztjo1t1eh9qbnkmbut39j7k6qdaee75h Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ML4P1YAq; spf=none (imf02.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam10 X-HE-Tag: 1640114053-14043 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 2850c2311ef4bf30ae8dd8927f0f66b026ff08fb commit: 743b237c3a7b0f5b44aa704aae8a1058877b6322 [8563/8895] scsi: storvsc: Add Isolation VM support for storvsc driver config: x86_64-randconfig-r015-20211220 (https://download.01.org/0day-ci/archive/20211222/202112220302.x6d84578-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c2bf01270a8a52b7986d5c49eaa7ad1c7083ec5) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=743b237c3a7b0f5b44aa704aae8a1058877b6322 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 743b237c3a7b0f5b44aa704aae8a1058877b6322 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/hv/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/hv/vmbus_drv.c:2082:29: warning: shift count >= width of type [-Wshift-count-overflow] static u64 vmbus_dma_mask = DMA_BIT_MASK(64); ^~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK' #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ ~~~ 1 warning generated. vim +2082 drivers/hv/vmbus_drv.c 2081 > 2082 static u64 vmbus_dma_mask = DMA_BIT_MASK(64); 2083 /* 2084 * vmbus_device_register - Register the child device 2085 */ 2086 int vmbus_device_register(struct hv_device *child_device_obj) 2087 { 2088 struct kobject *kobj = &child_device_obj->device.kobj; 2089 int ret; 2090 2091 dev_set_name(&child_device_obj->device, "%pUl", 2092 &child_device_obj->channel->offermsg.offer.if_instance); 2093 2094 child_device_obj->device.bus = &hv_bus; 2095 child_device_obj->device.parent = &hv_acpi_dev->dev; 2096 child_device_obj->device.release = vmbus_device_release; 2097 2098 /* 2099 * Register with the LDM. This will kick off the driver/device 2100 * binding...which will eventually call vmbus_match() and vmbus_probe() 2101 */ 2102 ret = device_register(&child_device_obj->device); 2103 if (ret) { 2104 pr_err("Unable to register child device\n"); 2105 return ret; 2106 } 2107 2108 child_device_obj->channels_kset = kset_create_and_add("channels", 2109 NULL, kobj); 2110 if (!child_device_obj->channels_kset) { 2111 ret = -ENOMEM; 2112 goto err_dev_unregister; 2113 } 2114 2115 ret = vmbus_add_channel_kobj(child_device_obj, 2116 child_device_obj->channel); 2117 if (ret) { 2118 pr_err("Unable to register primary channeln"); 2119 goto err_kset_unregister; 2120 } 2121 hv_debug_add_dev_dir(child_device_obj); 2122 2123 child_device_obj->device.dma_mask = &vmbus_dma_mask; 2124 child_device_obj->device.dma_parms = &child_device_obj->dma_parms; 2125 return 0; 2126 2127 err_kset_unregister: 2128 kset_unregister(child_device_obj->channels_kset); 2129 2130 err_dev_unregister: 2131 device_unregister(&child_device_obj->device); 2132 return ret; 2133 } 2134 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org