From nobody Wed Feb 11 09:19:17 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5F9A2ED870 for ; Sat, 17 Jan 2026 21:58:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768687110; cv=none; b=ut12dxxtN7bg/KpNyg2/iJxBraFJVmfjv5fZb154r6tMd2q/7RGb/F7sS01k+R3BqQBru+gnBNKofWj+x0k9wQPLG6nkzJi1ovoxf6Km/DKsFu9dMORQ6Y+Fgt3Jy1+9YtZtsmv08kE1htrpKUynCE1sAIywzJwM5cj4br8xaR4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768687110; c=relaxed/simple; bh=G3lBwO00GDb8JGFjLWu9s/WY3cO7/JhF63ypzG1Cq6s=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=AKBREei/a3EvEBFeT9gIe6xvkDLQaTjE1dcxKzaoV0oMwKUV2EVT9Np/d/pC416FvbleWI7GM/DCc3CuYXqTxKwCmX9BRHwzl8y+xjpt7j4axu22hPVacrutl6opWY45jI89JyQrQWFD/NW8X4kvUZCc0rlO4OdosEcBmD+eiQI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=linutronix.de; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sat, 17 Jan 2026 22:58:25 +0100 Message-ID: <20260117215542.342638347@kernel.org> From: Thomas Gleixner To: LKML Cc: x86@kernel.org, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [patch 1/2] x86/vdso: Tweak CHECKFLAGS for 32-bit VDSO build References: <20260117215257.601937692@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Sparse complains about a too large shift in the VDSO32 source file: arch/x86/entry/vdso/vdso32/vclock_gettime.c: note: in included file (thro= ugh /home/tglx/work/kernel/tip/tip/arch/x86/entry/vdso/vdso32/../vclock_get= time.c): arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:454:26:= warning: shift too big (40) for type unsigned long That's because sparse is invoked with -D__x86_64__ -m64 on the command line, which causes it to use __BITS_PER_LONG =3D 64. That causes __GENMASK() to use a way too big shift value. Give the CHECKFLAGS which are handed to sparse a similar treatment as KBUILD_CFLAGS get for the 32-bit VDSO build. Signed-off-by: Thomas Gleixner Reviewed-by: Thomas Wei=C3=9Fschuh --- arch/x86/entry/vdso/Makefile | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -144,6 +144,10 @@ endif =20 $(obj)/vdso32.so.dbg: KBUILD_CFLAGS =3D $(KBUILD_CFLAGS_32) =20 +CHECKFLAGS_32 :=3D $(subst -m64,-m32,$(CHECKFLAGS)) +CHECKFLAGS_32 :=3D $(subst -D__x86_64__,-D__i386__,$(CHECKFLAGS_32)) +$(obj)/vdso32.so.dbg: CHECKFLAGS =3D $(CHECKFLAGS_32) + $(obj)/vdso32.so.dbg: $(obj)/vdso32/vdso32.lds $(vobjs32) FORCE $(call if_changed,vdso_and_check)