From nobody Thu Feb 17 08:43:19 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9541519D901D; Thu, 17 Feb 2022 08:43:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JzpJ7352zz3q8V; Thu, 17 Feb 2022 08:43:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OA1m5phTg/MfAXZMkkme6fKs9j3/S01Li4g18sJ+3eg=; b=G4bN9oyLNoIGs3VyYZXaj3HGqhgzkYozLOFAUhfXsKtqsQdzuRe1WK8HFeyhQFdGUz+Z53 vlIG2BKww4brr2Naw+l/0DPtRJVFmF2nr+aK/OdhRB4PLTgn2MIr8iXPzzP25pmaR/K7/L 1wmRgNOaUSIJRny4O9qHN6HDcdkNtSCuFakOYqj4neShjdHH1w+AAzQz9dEFMQeZTqqVLn EY1Tyc3qA42S9hetPNUQ6/5Li2EBlck3z/H7dva51iAqKomQ9y/EBEnKYEwU2CqEXIth3Z U/HHYYU6gS8IQ12HfCsr4ChYrVOZcAj+1m7l367PpV4vpR7yKpNvfbBKm3Pghg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4A82B26837; Thu, 17 Feb 2022 08:43:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21H8hJA3045112; Thu, 17 Feb 2022 08:43:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21H8hJab045111; Thu, 17 Feb 2022 08:43:19 GMT (envelope-from git) Date: Thu, 17 Feb 2022 08:43:19 GMT Message-Id: <202202170843.21H8hJab045111@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: bf7deecfe760 - main - linuxkpi: Add list_rotate_to_front List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bf7deecfe7604c394d0c89ca58ce5d22b0d5641c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OA1m5phTg/MfAXZMkkme6fKs9j3/S01Li4g18sJ+3eg=; b=j/Av4POs6T6Tn6u5YJDrb3WS6s7Qeygd0O5eQvl0GgvlquMoc8C/Lau8dTmThilQNyeLnk Yid0puIEar9P2CGWiPi70XtOMi4P9u893uxeIwgKCUHGXi6DxmcVYPSSdUODNEYlMUvdsy QKozt8fMC0zughVAqyDvGmqkDeknVi8DRF7nYkT1g9lhgAyhI16ma4yMhbQg43tyenJ6JH HYCRCyAuFxIZhJAlT20BzevKLNI1n1HywefiJtsBSzhmqwsBdk1qJWYBpjDkG3SdmUyefG YmSLaB3YdCTMv6wSmSZ/zajTokpps7qNsb3RQ1T+tPlU3pfoGZRiE3jMbnZewQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645087399; a=rsa-sha256; cv=none; b=DWFaz/bh/FUKCTYm2NdAoyXrS54ltacxgWtg26gOKh5BulyqGVA1uMlfjTpadafK/xbc8f OVTZ1uD/6VKegjPj3M0X8pwxVxXT2d4LSNIsIy85RMqvXBwtR6Q3kQok1KWe7TSpHofW0L RyjseWuaTL5a9vJjvcrj8sEeOgrfni3IOqj71Fw2BDx2wNtmHYsxriG0mP3C7g9wnUq+Ax Wx334B22U/SOkfHSIeQZomgcjkqSd4fT44YVsW/TppKVb5Sscwr7PNZ+beaAL/u4kTpjys U2geVsfX6vYJtP8CvTRmyCwX2wGVYujjM0EgsrJqX/SYXAar7c+W5KQdf89JMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=bf7deecfe7604c394d0c89ca58ce5d22b0d5641c commit bf7deecfe7604c394d0c89ca58ce5d22b0d5641c Author: Emmanuel Vadot AuthorDate: 2022-02-11 15:10:08 +0000 Commit: Emmanuel Vadot CommitDate: 2022-02-17 08:30:46 +0000 linuxkpi: Add list_rotate_to_front This just calls list_move_tail. Reviewed by: hselasky, bz Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D34251 --- sys/compat/linuxkpi/common/include/linux/list.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h index eee1b56087e7..80ac57fecf6d 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -269,6 +269,13 @@ list_move_tail(struct list_head *entry, struct list_head *head) list_add_tail(entry, head); } +static inline void +list_rotate_to_front(struct list_head *entry, struct list_head *head) +{ + + list_move_tail(entry, head); +} + static inline void list_bulk_move_tail(struct list_head *head, struct list_head *first, struct list_head *last)