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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F123CC433F5 for ; Thu, 3 Feb 2022 23:58:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbiBCX6a (ORCPT ); Thu, 3 Feb 2022 18:58:30 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:49248 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356086AbiBCX63 (ORCPT ); Thu, 3 Feb 2022 18:58:29 -0500 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 52F4372C905; Fri, 4 Feb 2022 02:58:28 +0300 (MSK) Received: from altlinux.org (sole.flsd.net [185.75.180.6]) by imap.altlinux.org (Postfix) with ESMTPSA id 222C04A46F0; Fri, 4 Feb 2022 02:58:28 +0300 (MSK) Date: Fri, 4 Feb 2022 02:58:28 +0300 From: Vitaly Chikunov To: linux-hyperv@vger.kernel.org, Tianyu Lan , Michael Kelley , Long Li , Wei Liu Subject: hv: drivers/hv/vmbus_drv.c:2082:29: error: shift count >= width of type Message-ID: <20220203235828.hcsj6najsl7yxmxa@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-hyperv@vger.kernel.org Hi, There is new compilation error (for a second week for drm-tip[1] kernel): CC [M] drivers/hv/vmbus_drv.o drivers/hv/vmbus_drv.c:2082:29: error: shift count >= width of type [-Werror,-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 error generated. I understand this looks like possible GCC (11.2.1) bug, but still it prevents building kernel with CONFIG_HYPERV. Thanks, [1] git://anongit.freedesktop.org/drm-tip