From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 704113BB117; Tue, 26 May 2026 17:14:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779815697; cv=none; b=rxM8t4MXMzWbE/UxzlW/BdHA1INVWep7Shwe8oT0No9I/ROdr9Tt32iryXFloGYZlHy19sNpq6HOH9HgfoQMR/seKCZGzTyvcTPUwYkZPmhXLLT3JpImbOfKzB1i4uXyLZ5e748lRxgVZr9Zk4TsKiBsbc9/H7CR2DwbYkb3VIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779815697; c=relaxed/simple; bh=SK/3JKLXcdAd0YA9Id3+ZKQgFkUKWMlumDPX4kWtLcU=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=JCrO35mhWKknXwpY1yvrh5xDskX3PkXTYprj3GahMhvtkhagJ2okfGEJJUvp0lDvdSU26wwlOd4gdqaNCKNyp7qEUj1znyiM+n7VahzLJgY+2z8Uz/oPhg21NFihhx+zqjArkXlqwlc/VT68VcsjhMc29S3hMn6rubi36axQrWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BQY+aGWC; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BQY+aGWC" Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 234611F000E9; Tue, 26 May 2026 17:14:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779815696; bh=VlSkpOxaAvhGprMh41yHQUf26c+3JClC3KsUbd0ubDw=; h=Date:From:To:Cc:Subject:References; b=BQY+aGWCDcmMJKzgY+cWui4K1C2HgXKdKaImj5UTEZpsSPFJSzfMmHDq29Xpv2CPo z2lYBNm+P6naa+5EslAF6iwutkvHVBb4yTZC62mAdofF/i1BZyO0g+hr4ZBgJbUit7 pQYbuFbo0mUjuEsg9mh8oFqcVTEYa/4R0mDcE6SiPiXkSRLp2rNmrb7wik9HmwOeyY /lfYfPrUQyMw4nDbIm18XS8UQ/D6rizQK/Tn/LUt7E/1G7YgB8CsWb5xPJi1fL3HuX Cvc6eCFK83cJzh6dAGZfmZEHAO+YtY581OhrWQW5SnHrOjVcJom8QdeVWlKylolDCg DEplBp341GV6g== Date: Tue, 26 May 2026 19:14:52 +0200 Message-ID: <20260526171223.974925389@kernel.org> User-Agent: quilt/0.68 From: Thomas Gleixner To: LKML Cc: David Woodhouse , Miroslav Lichvar , John Stultz , Stephen Boyd , Anna-Maria Behnsen , Frederic Weisbecker , thomas.weissschuh@linutronix.de, Arthur Kiyanovski , Rodolfo Giometti , Vincent Donnefort , Marc Zyngier , Oliver Upton , kvmarm@lists.linux.dev, Oliver Upton , Richard Cochran , netdev@vger.kernel.org, Takashi Iwai , Miri Korenblit , Johannes Berg , Jacob Keller , Tony Nguyen , Saeed Mahameed , Peter Hilber , "Michael S. Tsirkin" , virtualization@lists.linux.dev, linux-wireless@vger.kernel.org, linux-sound@vger.kernel.org Subject: [patch 17/24] timekeeping: Remove ktime_get_snapshot() References: <20260526165826.392227559@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 All users have been converted to ktime_get_snapshot_id(). Signed-off-by: Thomas Gleixner --- include/linux/timekeeping.h | 5 ----- 1 file changed, 5 deletions(-) --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -351,11 +351,6 @@ extern int get_device_system_crosststamp extern bool ktime_get_snapshot_id(struct system_time_snapshot *systime_snapshot, clockid_t clock_id); -static inline void ktime_get_snapshot(struct system_time_snapshot *systime_snapshot) -{ - WARN_ON_ONCE(!ktime_get_snapshot_id(systime_snapshot, CLOCK_REALTIME)); -} - /* * Persistent clock related interfaces */