From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 9A94E335567 for ; Wed, 11 Feb 2026 12:13:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770812020; cv=none; b=mCe+R4DHKplg/cPWo1IwSAhu2hp5TQ6vXoni7DOov7wSxUpCUhCOpopyNlVPqPYgBFxs8+rSVWx1MAoMI4ChB0OQRfblx12JXikqLo5Z0F91NZCGMCTW0puGiGWW+DTxcvI8Z7i4Q051V+Lyycixl4TwweGikOQzhhZcw//M1m0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770812020; c=relaxed/simple; bh=WqVuBtULsDHMX1CDf/kntO1x6mRDJwf2B40ihqIBFTg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Hs+Dkzp/DXNje54kBvjjBgA+yIqLVPum5rZ4WDG67a/jpuQuFx48UZ1wQqkzLwhYs5RvBT2ONH5/p6Suu16HZfxradUTL0ezr51cj1CmH/LTTqjfga4ixYCJGiVXYG6gODe4nB5/8Qv0qTjv6b3YV9kBaJ0JInKZ4VvS6WKd2PM= 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=AH0b77+/; arc=none smtp.client-ip=209.85.128.53 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="AH0b77+/" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-47f5c2283b6so16381365e9.1 for ; Wed, 11 Feb 2026 04:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770812018; x=1771416818; darn=vger.kernel.org; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=/S+pJFmSKw9Ty17LOwhFyPGGZE1kNWrO+AT0nc+iHq4=; b=AH0b77+/cHH0YFPJ822ioyQtrSWxkPnMrzjGjY6d5SxnxmLbC5KyZfp1955mmiP/uJ bsYLRCZi9LZ4gmcXqq0KUkP8XkDBznY4rZDa3GQtU4KeVmiIVYMRxwCmeOP1L2HaLgn2 lYwfFcrxv7tfy6a6aKIgpwKlu9vY1ZEUSUeRwYxEM49HJj1nqRBW90eWYBu64IQI9iiw K0yDEfJQjoFbWtFZHAqFFpDQ9+rG6EaaC4R3na3k+TQGe0pHy+NLaeJfGfvXf31WAcBz WP/zh0sl//pGezNB1y6ixus70L5BDYuEZkMGv6OhFINv/WnaVkpto8qXYE2zQ7xRn1Ih +f9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770812018; x=1771416818; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/S+pJFmSKw9Ty17LOwhFyPGGZE1kNWrO+AT0nc+iHq4=; b=MDxx8IvwoWGpQL6ZDU65zICIVKlXmTlU+LTJI9khV/7kN+RYBM4JK9RSs1uB/hR4tj wU0Usn7DlGjlhRdTf6ZE0UfmCHjsrIJPczjZLiOdipjFvOkIx2u/873E/89EMNi06ps9 +mSjcOGW9E6x+IcmPWyZeAYo33LqV6QVi3JYbueEPnAc1OhO9sOBOgxXzziJahLrVKqH 0eZWabru29DudSuAfURivAvcjoCUid22TWLo2V3VUWyIKBZlL24E4a2ynp/QZHQs16PC gCE8UzPvSHugoNLasYaddnYpdtScPrlSe05CktL2H7umb2Sob3EWs0ZSGReXFNeqjOaf VPVA== X-Forwarded-Encrypted: i=1; AJvYcCXRtMB4N60jfWEoBO/BdnAwdqPnsa+Pb9beH1t1iUJK9RSyonk/b99EP1UuiSu5tRBZ6PyRu8C2Tw53G+s=@vger.kernel.org X-Gm-Message-State: AOJu0Yy6zIqQvHdkMFLDJpuvMJMl33rpNeE5XES1rxzWZpqY6sOdH4Ti E2zZhU7UDIyeH1i+FV7SoepX2/PD3J4TJQ542sr51pmPY1yXLNlviE1JHM5aYoUe5Kk= X-Gm-Gg: AZuq6aIzkilbkw5DQbigrlSc4DOBNvD3u9hU2izOA8nOBl/YZriNXFktzkGw0X1PQHv T706vNlcZRes9d1G+4lEbugXxSdBCuaflv7dVoEYnj2LbXTg2Vqg3ALC6/2ZdGrcRRz3KYUc94g eYAXqRbJ89lutyQUoi+5rS29bbRG+CP5BokPlRTAOprmShruvOLgaMA7swTsZXK6jHlvBNImffB xbYJpqz5+OUVNPQg/Q9YhQQvN3jkpCSmguL8AxM3AJVvNNLIp34Kv8I57+W1/SUzoJdpRhlbuNf pC/odOtrn8p7LgdmORdcxAhdF6mNrnPdN5Gy6vCYJzRpd144T+CMyIWmxvj0ryvgDh7sU7WodCB yB/8gqAGAOcUhu/FPyVqTGaVgoD/7rWCVElP+XoiV4nFtYnqa/CHvLMHQ2DlaK6RPvWKMRJ6hHk gy5TevA2uxa85Gbusle7yf2OavaehTyAsArTb5ibw= X-Received: by 2002:a05:6000:2913:b0:42b:2dfd:5350 with SMTP id ffacd0b85a97d-4362937ff6fmr34012287f8f.56.1770812017802; Wed, 11 Feb 2026 04:13:37 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43783dfc55dsm4398750f8f.20.2026.02.11.04.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Feb 2026 04:13:37 -0800 (PST) Date: Wed, 11 Feb 2026 15:13:34 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, "H. Peter Anvin" Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Dave Hansen Subject: arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c:308 __cvdso_clock_gettime_common() warn: right shifting more than type allows 32 vs 40 Message-ID: <202602111941.PIhubgrb-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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 192c0159402e6bfbe13de6f8379546943297783d commit: 693c819fedcdcabfda7488e2d5e355a84c2fd1b0 x86/entry/vdso: Refactor the vdso build config: x86_64-randconfig-161-20260210 (https://download.01.org/0day-ci/archive/20260211/202602111941.PIhubgrb-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) rustc: rustc 1.88.0 (6b00bc388 2025-06-23) smatch version: v0.5.0-8994-gd50c5a4c 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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202602111941.PIhubgrb-lkp@intel.com/ smatch warnings: arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c:308 __cvdso_clock_gettime_common() warn: right shifting more than type allows 32 vs 40 arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c:308 __cvdso_clock_gettime_common() warn: bitwise AND condition is false here arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c:454 __cvdso_clock_getres_common() warn: right shifting more than type allows 32 vs 40 arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c:454 __cvdso_clock_getres_common() warn: bitwise AND condition is false here vim +308 arch/x86/include/uapi/../../../../lib/vdso/gettimeofday.c fb61bdb27fd730 Thomas Weißschuh 2025-07-01 287 static __always_inline bool ac1a42f4e4e296 Thomas Weißschuh 2025-02-04 288 __cvdso_clock_gettime_common(const struct vdso_time_data *vd, clockid_t clock, e876f0b69dc993 Christophe Leroy 2020-02-07 289 struct __kernel_timespec *ts) 00b26474c2f161 Vincenzo Frascino 2019-06-21 290 { 886653e3663917 Anna-Maria Behnsen 2025-03-03 291 const struct vdso_clock *vc = vd->clock_data; 00b26474c2f161 Vincenzo Frascino 2019-06-21 292 u32 msk; 00b26474c2f161 Vincenzo Frascino 2019-06-21 293 1a1cd5fe881fdf Thomas Weißschuh 2025-07-01 294 if (!vdso_clockid_valid(clock)) fb61bdb27fd730 Thomas Weißschuh 2025-07-01 295 return false; 00b26474c2f161 Vincenzo Frascino 2019-06-21 296 00b26474c2f161 Vincenzo Frascino 2019-06-21 297 /* 00b26474c2f161 Vincenzo Frascino 2019-06-21 298 * Convert the clockid to a bitmask and use it to check which 00b26474c2f161 Vincenzo Frascino 2019-06-21 299 * clocks are handled in the VDSO directly. 00b26474c2f161 Vincenzo Frascino 2019-06-21 300 */ 00b26474c2f161 Vincenzo Frascino 2019-06-21 301 msk = 1U << clock; 8463cf80529d0f Christophe Leroy 2019-12-23 302 if (likely(msk & VDSO_HRES)) cddb82d1c4de56 Anna-Maria Behnsen 2025-03-03 303 vc = &vc[CS_HRES_COARSE]; 8463cf80529d0f Christophe Leroy 2019-12-23 304 else if (msk & VDSO_COARSE) 70067ae181f302 Anna-Maria Behnsen 2025-03-03 305 return do_coarse(vd, &vc[CS_HRES_COARSE], clock, ts); 8463cf80529d0f Christophe Leroy 2019-12-23 306 else if (msk & VDSO_RAW) cddb82d1c4de56 Anna-Maria Behnsen 2025-03-03 307 vc = &vc[CS_RAW]; cd3557a7618bf5 Thomas Weißschuh 2025-07-01 @308 else if (msk & VDSO_AUX) This code is built with -m32 when we build arch/x86/entry/vdso/vdso32/vclock_gettime.c so VDSO_AUX is zero and we never call do_aux(). Presumably that's intentional. I don't know this code at all. cd3557a7618bf5 Thomas Weißschuh 2025-07-01 309 return do_aux(vd, clock, ts); c966533f8c6c45 Andrei Vagin 2019-11-12 310 else fb61bdb27fd730 Thomas Weißschuh 2025-07-01 311 return false; c966533f8c6c45 Andrei Vagin 2019-11-12 312 64c3613ce31a1a Anna-Maria Behnsen 2025-03-03 313 return do_hres(vd, vc, clock, ts); 502a590a170b3b Thomas Gleixner 2019-07-28 314 }