From nobody Sat Jan 22 19:36:37 2022 X-Original-To: dev-commits-src-all@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 CC0AC196BF0B; Sat, 22 Jan 2022 19:36:42 +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 4Jh6203lnkz3hCK; Sat, 22 Jan 2022 19:36:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642880202; 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=Gyv/zRckDlaNq/3hW0GESF9ehgV5SjBLgOzcWDZu/v8=; b=idNoaU/bMHm8bTkt/t+lPSWfogP8oWWypbyLBzz5tpXkHo+k/0PsvxNIjTX5O4kG3GvGX6 fQfm70Kyqcy0atTBIWM5vG/1M3S7+uf6TB8iL8uGAHW+esBzHznAwy9ZmJ1ABPDcM9aJJ3 +J00auXdlzA29bRCXYw9lczRvQoM2mFzvYtLI/yPuadhIRn5Td00IDbVe3p4JQiopYTNuA vN6yWXmhloxt8Aeb2KEMO7cfD3MFwrBq13THVUBEokSWrruuUCrs+a5y/XmyQbCi9SRlt2 SARM/uDCYd9FBmY3mGr9l5GjDS3KNeplwcDJ0RSdWJW8GOJBYJ7vOhUid9JaFw== 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 9427715037; Sat, 22 Jan 2022 19:36:37 +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 20MJab6u000369; Sat, 22 Jan 2022 19:36:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20MJabgd000368; Sat, 22 Jan 2022 19:36:37 GMT (envelope-from git) Date: Sat, 22 Jan 2022 19:36:37 GMT Message-Id: <202201221936.20MJabgd000368@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 2db63c396d37 - stable/13 - LinuxKPI: Import linux/ratelimit.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2db63c396d37dd9a18ba640ec76cc09085deacb8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642880202; 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=Gyv/zRckDlaNq/3hW0GESF9ehgV5SjBLgOzcWDZu/v8=; b=c/EBEZSMOsHv3ZolafW31ehuLQmzuUmg6EXPNDxiOd6Kxi2xV5PrNTWxpLTlA+B+gKt9cC 3/28Aed6UddKZBoyGDjHLbxV4TAXdIb6nDhropQFp5938Ms4XxQCnmAiLeJ4BioykYtw1i 6cPlxKoYr2h/AaikTi5NSy1Wnzp1UfoDhXDjcFB7AXDzROLOgT2CYYylNnKEzA8b5/+pI4 AHtZlhCz9uz/4YnHSERrNjXVAAaiWm8jK9yipDgphcB6Q/n43pXVBV+uVmRQnDqPCsTyPZ PIIUYGP70Ru969xnub3XRWaeoPqwx3JBkLUIAk9Rp33sn5ipANWSWHtqYhfOcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642880202; a=rsa-sha256; cv=none; b=EMc3Ssubbpsc5G+u8vJ6yFq4egpj/h08S2Nl6jL4D6NI/ofzt4y9PR/8VnVWdmO/0svJEk o3SET9wHPIcoZ6HccCoBrLXpVdHoPeq0ZcmWD8au2uOhK6CCwka5kpJFhjl+wuX2TVudxv XoKRXRobyiP+4r63bKpjZNynTF2q7yUajLRj6FZgENCsLfm6ZUzzU25xt8h0sluL2dqozR wLJajwXtLpW01B2+3KunolKKyibQhndWn9/o8m0f127YWlGCwBr9BSlBtwtfU6JSTZRpth WV7F/LLrCdIJpwQpvMEWrvr4fs4LVm4J1ZkyFfY7q1xHV+aZ34xR9L53T6dkjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=2db63c396d37dd9a18ba640ec76cc09085deacb8 commit 2db63c396d37dd9a18ba640ec76cc09085deacb8 Author: Vladimir Kondratyev AuthorDate: 2021-12-08 21:05:56 +0000 Commit: Vladimir Kondratyev CommitDate: 2022-01-22 19:34:37 +0000 LinuxKPI: Import linux/ratelimit.h Required by drm-kmod. Obtained from: OpenBSD MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D33560 (cherry picked from commit 1456816425c35ab1ded97f9b53f17c87ae4a701f) --- sys/compat/linuxkpi/common/include/linux/ratelimit.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/ratelimit.h b/sys/compat/linuxkpi/common/include/linux/ratelimit.h new file mode 100644 index 000000000000..a3991a06e6f0 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/ratelimit.h @@ -0,0 +1,17 @@ +/* Public domain. */ + +#ifndef _LINUX_RATELIMIT_H +#define _LINUX_RATELIMIT_H + +struct ratelimit_state { +}; + +#define DEFINE_RATELIMIT_STATE(name, interval, burst) \ + int name __used = 1; + +#define __ratelimit(x) (1) + +#define ratelimit_state_init(x, y, z) +#define ratelimit_set_flags(x, y) + +#endif