From nobody Fri Feb 17 23:44:49 2023 X-Original-To: dev-commits-src-branches@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 4PJT1t0V7gz3rxbh; Fri, 17 Feb 2023 23:44:50 +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 4PJT1t02Pjz3GbM; Fri, 17 Feb 2023 23:44:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677490; 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=88sViov0XfLwxk0hEPTyWaa/9eM9YnJZt1xgOrrViQY=; b=VZbvPxGgnEg7WmLwqU0qgng3pFaiBLon6+/NP8FAd0PLYSzmhfd48VJinssJYQc+htQqP3 l9VbIkjd0MoW7uPHq+9zhTb9qqvFEllfe6XPcKfMgtWebnGY8KLgxmNyKAqfg9kcsVbcnG Z4aGcn+O1ZAOPv+ynzqsPdpFONftUUGyESfIYbU5BFQ9z56uxcNItBhPDJS91+QRViEXMy NeRWAXw4coPYa8LSwwiZUc3S/rqoPOFDk/RbL0pzVwUY8Gqfe0HELSnhuJukOMs1S9QH+A J7hUkbxFrU43Jox31BQSp6rfaOFYNSc7fLqELnUMMByT90IhrV27BfGMZPQLzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676677490; 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=88sViov0XfLwxk0hEPTyWaa/9eM9YnJZt1xgOrrViQY=; b=NIY0gRZj/3TeW10r6U4BA7jcyeAj92NlWQKil1v2ALdWpwsoaHPPN83rUmI06YOjfTO3Rs MjFxTkpdQY+7nBeNQaJdQhOKBF6abp7ke0hYyVPRPpVTb+ZqOOiSBntUBaG8wbsKCspsog 2l/8LmDKgc81EApFgELAu1T6YCxSOqOMLex3OjvrTPihQyNOkqDJLBfcU97jq98Ws9mrWe /ZipLTxV3HQY+5JWvc5BLjUamzSKhtB3qYERQYacsHlb5lG26LppN8ySH9fHPGcuBxHnIp Y5bcecBfZPjVn8GCD7dlWyNXmHqNciI4aK01pYE875JpukGNEZi0S0tGIi6AxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676677490; a=rsa-sha256; cv=none; b=nNIV2gzw87zdgkjygnbaCBQ01fIyPi1ifQFDwF6149g9MQo8MN6dusxN5rLlZdmamEh3mm uG7bp8T3TInRwYlNvS6jsoNqcHCCwdIeIqgwz0C/Xvy1F2z/5A4F9zaYnw5OCAV7EIbhJx 64kOYw0Ztclgn1rGgCGKRRljg/NGRHb6coD/12Si72m0Ug4OE1N9sm5QVPbe0vxtydUYxy Tbh54MSaVAjvYi/c92xFxXvu05NgSKkO2m3dGPwV18MwCeBeJN+HPWtEMojg4xCnkcu08N 4vbs4UwrBCA02pGfoqL5AjVKivK9viVDeGs8bJu8+g3d89mdL2aL1ujY98VlHQ== 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 4PJT1s67xxz11jL; Fri, 17 Feb 2023 23:44:49 +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 31HNin0c025100; Fri, 17 Feb 2023 23:44:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31HNinRe025099; Fri, 17 Feb 2023 23:44:49 GMT (envelope-from git) Date: Fri, 17 Feb 2023 23:44:49 GMT Message-Id: <202302172344.31HNinRe025099@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: fbc5dea2a3af - stable/13 - LinuxKPI: pm.h: add dummy pm_wakeup_event() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: fbc5dea2a3af8edf1f22603605f78fe9f9b71494 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=fbc5dea2a3af8edf1f22603605f78fe9f9b71494 commit fbc5dea2a3af8edf1f22603605f78fe9f9b71494 Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 15:53:03 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-17 23:42:15 +0000 LinuxKPI: pm.h: add dummy pm_wakeup_event() Add a dummy implementation of pm_wakeup_event() which is used to notify the power management system about a wakeup (which we currently do not implement yet). Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38239 (cherry picked from commit 934cb7a3316609380fdea8da73233759f6dfff43) --- sys/compat/linuxkpi/common/include/linux/pm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm.h b/sys/compat/linuxkpi/common/include/linux/pm.h index eb3316088787..74f0d330f505 100644 --- a/sys/compat/linuxkpi/common/include/linux/pm.h +++ b/sys/compat/linuxkpi/common/include/linux/pm.h @@ -33,10 +33,15 @@ #ifndef _LINUXKPI_LINUX_PM_H #define _LINUXKPI_LINUX_PM_H +#include /* pr_debug */ +#include + /* Needed but breaks linux_usb.c */ /* #include */ /* #include */ +struct device; + typedef struct pm_message { int event; } pm_message_t; @@ -79,4 +84,11 @@ const struct dev_pm_ops _name = { \ } #endif +static inline void +pm_wakeup_event(struct device *dev __unused, unsigned int x __unused) +{ + + pr_debug("%s: TODO\n", __func__); +} + #endif /* _LINUXKPI_LINUX_PM_H */