From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A49CA2FB983 for ; Wed, 3 Sep 2025 11:29:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756898987; cv=none; b=L3nvgqOBIyIi3mannspw0rhwih/U+jpVa+dfdA5YZuiMUUVcSSbwqD0m3yOgFlx5DhFsY0JN30d+Ix/5GZ8KcgjXsI+/uO/xj9zr6wWs1jFuU/6FIJyBKXnmLQOzpuG+B+Acaj0Ql15KMgkXX4UQujuZE0dWQhvXP1AxAWKEpUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756898987; c=relaxed/simple; bh=rw6wz5NQOjq/EnuLbRuHaXalQE2Zm2+zEhNAEkliz2g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TtTZcMEOw4nEV6TXxqwOz0kGdUZ+TaDAgqLqyPPyhjj9+T2jBeQj+BDFO3BC2rAKPpl1oemBRwLxAmWQlfCvnCsDdrgmDLT69XknbMIjcPVQ7Zn2XgAMRjWW0uZ+BNM8uhbg31VFEPjTuiTONy1I6QNc+56WvguG+MP36nJdMyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=vL75vSz2; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vL75vSz2" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-45b8b02dd14so21092245e9.1 for ; Wed, 03 Sep 2025 04:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756898984; x=1757503784; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PN4TTv5XFjvH830QyUEf+r/ZdvnpoSsJPrnKjY9Ngm8=; b=vL75vSz2c0myBl1dc5M9huymA4an+KUk9HO5pbkqVVCW28TbH+fY4FGTJRULIfgoL5 ny/qEHN8ZF93JQATeRhLY1OQGG/vJzAqbS/HV07toSHBfTrgfjW2vPb1j2XTdpT4JBac icJnCKOE816f7XpB67LTg118PTM1dXAZnloJ5jY+XTdX4dfOBzZ0WKLz+AnD0HCN8/CQ 1lHpsoeCKRHPNMFMIUEO5H9JewbtQqn5ZPLfMMlxFdGs1Lsi9AxGLAZ8EObtYJgHGKtV Hr+5FHZH0liT4HpPcURBbcRu1uDCBpnymAYJt6ABxAIXnqrymUlUuDJrGxi2PJ2KhjyZ gcgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756898984; x=1757503784; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PN4TTv5XFjvH830QyUEf+r/ZdvnpoSsJPrnKjY9Ngm8=; b=eA9187/5ByFFcnRbPGHX4pEs13NT8bSzD0ayPGF0Qcwss2iAaJZ9K8iqAl2RSMHyMk tgbeJ1pmXz3RhNhSyCQZM4BQT1NwaXt2W77JW1SOZ+1K1YQcJHfQvuWoXJOIdndyjAob frS4fcgQsRRLcEWfjUhzEoQzzwmxjmZzVaJ0WpbTmABV/h1s3jI6eslmFnJcVUyYdf9w VHfrJb5JbNrVQJuF5kp5nZG83dfk3zAua8HTxefGEYHLNwHFeTGfVlNgp62+FHiL4o8K vY1VRwBcj1VhKNGVvxgNaHyhDL2TZFlKzDS7GXclBgRBr0kEPqI0bQyjZzT/nhd0suvr sNQA== X-Forwarded-Encrypted: i=1; AJvYcCUbutAlF5dNxGrUE5P54vB0uiLwe++iY/MMBugTpklqu3QNeF0+q/AChNM9qF8b1pvk7Mu44T6ZWJNo96U=@vger.kernel.org X-Gm-Message-State: AOJu0YxbuuL9qqPAOK0VGScb8qHQ8AB5TnylAx0l+PLnRWf9Ghsl0xVR +l7PDaHsVG+RpORCZXOmXCaIZ5xuvEE3a6OL5xdLzzDLCdm5wbKQeoKd1rL36LGFdt8= X-Gm-Gg: ASbGncudTaPem08XZvZStoGYyIl5puha4zsVkagdn8SBE0+rgkcp/HOtC8NiiZO9u3Y pRGIZVncUtGi8gr1ShnX9bGHrFrsG7XQeCrrWxG69sv0+00qxNU17RH3xnTHRsp7HgMoJcSEZUf wVKauYQmwBu6UplwfzkjLmAaa9hgsDHMqq9bENN+/qQr5sIPcqU69CZQwri6qiSbZ2/smwOLtH/ RV3DQjuZHqjST8dwy0AlsrljFdusBx7HCTN6eWFSAjzMrs/ZfSuyXzZe317dM/S98wnj8Jy7NIR kvc43QPl4X8fC0Ha93jhXr6V3ZlgO0Nv2yee/O32+Z/Xc3zKTl4EAMrINDBHiYcpRgPZT7e7kXs sWSvMlK/tMs7tag/vmXQlsAUUhilx/mL9IJfUvg== X-Google-Smtp-Source: AGHT+IGznYf+8MTlpk6cstRn1GL4tnhUVJ7amBoJ4nIX9Yue18MyS1rMtXsRUivUxsPxvksXGxAf7w== X-Received: by 2002:a05:600c:1f08:b0:45b:765a:a8ff with SMTP id 5b1f17b1804b1-45b855333e7mr131969965e9.11.1756898983980; Wed, 03 Sep 2025 04:29:43 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-45b7e886619sm233540675e9.15.2025.09.03.04.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Sep 2025 04:29:43 -0700 (PDT) Date: Wed, 3 Sep 2025 14:29:40 +0300 From: Dan Carpenter To: Naresh Kamboju Cc: clang-built-linux , open list , dmaengine@vger.kernel.org, lkft-triage@lists.linaro.org, Linux Regressions , Vinod Koul , Guodong Xu , Nathan Chancellor , Anders Roxell , Arnd Bergmann , Ben Copeland Subject: Re: next-20250903 x86_64 clang-20 allyesconfig mmp_pdma.c:1188:14: error: shift count >= width of type [-Werror,-Wshift-count-overflow] Message-ID: References: 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 In-Reply-To: This seems like a clang-20 bug. It's complaining about an impossible shift in code which it should know is dead. regards, dan carpenter On Wed, Sep 03, 2025 at 03:38:11PM +0530, Naresh Kamboju wrote: > The following build warnings / errors were noticed on x86_64 allyesconfig > with clang-20 toolchain running on Linux next-20250903 tag. > > But the gcc-13 builds passed. > > Regression Analysis: > - New regression? yes > - Reproducibility? yes > > First seen on next-20250903 > Bad: next-20250903 > Good: next-20250902 > > Build regression: next-20250903 x86_64 clang-20 allyesconfig > mmp_pdma.c:1188:14: error: shift count >= width of type > [-Werror,-Wshift-count-overflow] > > Reported-by: Linux Kernel Functional Testing > > x86_64: > build: > * clang-20-allyesconfig > > Build error: > drivers/dma/mmp_pdma.c:1188:14: error: shift count >= width of type > [-Werror,-Wshift-count-overflow] > 1188 | .dma_mask = DMA_BIT_MASK(64), /* force 64-bit DMA > addr capability */ > | ^~~~~~~~~~~~~~~~ > include/linux/dma-mapping.h:73:54: note: expanded from macro 'DMA_BIT_MASK' > 73 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) > | ^ ~~~ > 1 error generated. > make[5]: *** [scripts/Makefile.build:287: drivers/dma/mmp_pdma.o] Error 1 > > > ## Source > * Kernel version: 6.17.0-rc4 > * Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git > * Git describe: next-20250903 > * Git commit: 5d50cf9f7cf20a17ac469c20a2e07c29c1f6aab7 > * Architectures: x86_64 > * Toolchains: clang-20 > * Kconfigs: allyesconfig > > ## Build > * Build log: https://qa-reports.linaro.org/api/testruns/29752023/log_file/ > * Build details: > https://regressions.linaro.org/lkft/linux-next-master/next-20250903/build/clang-20-allyesconfig/ > * Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/32B39xPuITjxcbak13h2MrLZJP4 > * Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/32B39xPuITjxcbak13h2MrLZJP4/ > * Kernel config: > https://storage.tuxsuite.com/public/linaro/lkft/builds/32B39xPuITjxcbak13h2MrLZJP4/config > > -- > Linaro LKFT > https://lkft.linaro.org