Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1790459lqe; Mon, 8 Apr 2024 23:27:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsVNVakeAXyNh3W75V+LDpq2Aa6Os6ol3bX3L5yogPbzpVkHW7uZyoeNd2DH/c2TlIvLraeu0Y4NDz2EjBe94/oO1IvyyDT+pI8R7EsA== X-Google-Smtp-Source: AGHT+IF6gjP2rrknkEU5ZqgzkeGeTL4pDomagxvwUuXz+MUzn0ksH4nIUcfTAaZjZUYH2LzOsgWw X-Received: by 2002:a05:6214:d0c:b0:699:3883:5459 with SMTP id 12-20020a0562140d0c00b0069938835459mr13447219qvh.52.1712644033861; Mon, 08 Apr 2024 23:27:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712644033; cv=pass; d=google.com; s=arc-20160816; b=epA41u8eYBz2MU4HOY1w7bihmOkcIiTRuvCbOgoArwIt6h8dTx/QyM8oBZm6kI2x3z wEDor2Qg3AUvz6HsWIS5AbmetGDfERFs/d3/a1eQDQTQLZJ6RrKDlrTOrh49Y1hOvliG ntnmhE/aziXHYA0mHiNjQC25vtgd4C/1Y9cCSfoiY4z2k5thBYKl37SbnEEm1RJBwrov 5k/Kh7/raxmWcMTTuIrdUFCHfB/8FF7YgSbq7CUlglRunAVDmsGAlnstppGVdADA4iCr eqLWvAx6yFM5ROkOwCXoz1LwhtLss6n8UGcKCUrplB7CHZeIRL6HYdOhUtG+2QufkGXp Vrig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=jUDpNzcXA6xcCE3FwJbN3FLkxiLmYNKmmuzxmZJY8vQ=; fh=xSdHWw0u9O+DaLMyvXOYebcUSBqaftGsueJvPtIESLY=; b=wARRHr7bO0MO+Gfr4FWRpIWpWS2L2pAAAcIv917vICkwBEPicAEKudEjkZdDW6SJTL 8iRNoCYi43i2Pc1a7/vbyQc8KkIzweHHDicn0C2N0QOfMntmg9InTYan/p/MF0DyAkfB GghlGNsGsLELP/ZVgZY9LXEt6lfOZx+GDH2NawUXDRLTPWdK9u3BTTXOynN1hxfEqntf xNdhOKW1zS3U9HEwzzzOJS0OegRfJe4+o9Pn0jKxw+OR0vPNdAQf1iOmvI4AzMg6VuvD Ek52XPA66ZslW73BTRzbz7pzfp2KFe6p6etmjCXtc3UDDhgLdl0uEzAcqYPIVFB5Pf8u svUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=miU+wAIC; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-136301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gs1-20020a056214226100b0069b1f1c5457si3135310qvb.279.2024.04.08.23.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 23:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=miU+wAIC; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-136301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C71C1C22B98 for ; Tue, 9 Apr 2024 06:27:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE56674438; Tue, 9 Apr 2024 06:27:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="miU+wAIC" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 AF6EC6EB72; Tue, 9 Apr 2024 06:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712644027; cv=none; b=JyUGyF4T3eqLtpeAvz9AVyoJ16KFmdf6kAXRCwbd888d6sXM76fUsL9UJk72u1JX2h9ihtSIw6uYXD1NYYL+K6/CcXOO6vr0mdYlmOii7AdT0DTox09UbCRhiTDtiArhxr6aFCvEpAUFGqrr75IY+sQzYuo91WNC8uhhwJwme/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712644027; c=relaxed/simple; bh=YBgFeEcKNu6z1EOuKIDtV8ucxUi4txUooaEev8PsP28=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EMPJooZMe1g3veisa8CVLAb/Xm0KM4uveW8RgRDirDpQpY7/3cv8ditkXvD+Q2lgDHPBuZtE0xQUX+9UWDwrMesogbpvjnMqpoS13b5BVgTFL3DtI03iRPGv62iaACJsnZtwD55w03dXZgCiUZWwZWRBITC3wXLwbBki3xPbkH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=miU+wAIC; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712644025; x=1744180025; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YBgFeEcKNu6z1EOuKIDtV8ucxUi4txUooaEev8PsP28=; b=miU+wAICFFcFOK7b9Dmg5vu9UP0H4+ZOgiDv2bPK9JVIZyLVxdQOMxwW kGCaDFU7vM3MSt1R07nhG62iQo1PDSHvudeWDcKkWA5pn0fNKk6GWsphW K71ZnhTACbZXPcWEvPcCvzIUyXICKpDp5v/D/4QRyw9jetqGnyeYFce3W f+/G/DVDkgDGyhYHJQn7QTfJ3ZrmtPQrS7G8c29bMewb+7uYFhevupoDq WfrGDUxltz1aJy1sTNT9yDerQTFEVtzVBIYiQ7msgHPeq3XLy6st3Hxhx 9IZK7W8wiH2nf6PQAPuyF8Qf8WeKuTu6GdokMJMheGYa5GS3E80h2/E/m Q==; X-CSE-ConnectionGUID: zlronA/dQIKXGUkaEzQQDg== X-CSE-MsgGUID: k4KOnJmTSB2UFhSUaOq4fg== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="30436608" X-IronPort-AV: E=Sophos;i="6.07,188,1708416000"; d="scan'208";a="30436608" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 23:27:05 -0700 X-CSE-ConnectionGUID: i4DhQ/5wQ5+lYrCrL9n3Kg== X-CSE-MsgGUID: HlKELBhTQnaCEeG1ZpmSMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,188,1708416000"; d="scan'208";a="51129094" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.249.37.26]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 23:26:57 -0700 From: Adrian Hunter To: Thomas Gleixner , Stephen Rothwell Cc: Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andy Lutomirski , Vincenzo Frascino , John Stultz , Stephen Boyd , Peter Zijlstra , Randy Dunlap , Bjorn Helgaas , Arnd Bergmann , Anna-Maria Behnsen , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH] vdso: Fix powerpc build U64_MAX undeclared error Date: Tue, 9 Apr 2024 09:26:39 +0300 Message-Id: <20240409062639.3393-1-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit U64_MAX is not in include/vdso/limits.h, although that isn't noticed on x86 because x86 includes include/linux/limits.h indirectly. However powerpc is more selective, resulting in the following build error: In file included from : lib/vdso/gettimeofday.c: In function 'vdso_calc_ns': lib/vdso/gettimeofday.c:11:33: error: 'U64_MAX' undeclared 11 | # define VDSO_DELTA_MASK(vd) U64_MAX | ^~~~~~~ Use ULLONG_MAX instead which will work just as well and is in include/vdso/limits.h. Reported-by: Stephen Rothwell Closes: https://lore.kernel.org/all/20240409124905.6816db37@canb.auug.org.au/ Fixes: c8e3a8b6f2e6 ("vdso: Consolidate vdso_calc_delta()") Signed-off-by: Adrian Hunter --- lib/vdso/gettimeofday.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index 9c3a8d2440c9..899850bd6f0b 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -8,7 +8,7 @@ #ifndef vdso_calc_ns #ifdef VDSO_DELTA_NOMASK -# define VDSO_DELTA_MASK(vd) U64_MAX +# define VDSO_DELTA_MASK(vd) ULLONG_MAX #else # define VDSO_DELTA_MASK(vd) (vd->mask) #endif -- 2.34.1