From nobody Fri Sep 5 17:02:39 2025 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 4cJN281WRxz65qwr; Fri, 05 Sep 2025 17:02:40 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cJN280vY3z48ZS; Fri, 05 Sep 2025 17:02:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757091760; 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=Ezt7HebbBAbbimScXYtPKcy6PUC2PCZ3F2Cw1lqUE5Y=; b=PmovooBCUzL4r+qNEnJvWNeY+Qd98iPwV+Bs2n62p5NEfdmiCSuK4/gW2XtHrbr1aJBuS1 YHnixrJi92iGgNYzpEI7dtVPIWC32T7VISt2iinKxp+ytYy961GfiAy9UNSSga8iZpsLmD xewiIjGMy14OzK3x5AEkNrnyF4aDliuAoYKjE9di+lhQ2yPzBf2mB6tSv124kCGycEjuo1 Qd/C0eJoqptJBuuWPrSE523Wgj7zjVDHTn0wixIXp5hDS97zK44X54bkQKIcyPxUqCJsgi BKgaOVQIkUsw14D/tq8vYiYoEPrzF031yqXmKQJfDVxZ2UvZfjlr2FvBM7P2ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757091760; 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=Ezt7HebbBAbbimScXYtPKcy6PUC2PCZ3F2Cw1lqUE5Y=; b=sSW3oH8PPZjb4gZnEGkCyNUDkyTub8ghFh9b9zyweKbHSZ/vnzOfHOSxr/9WBLvAJ6gyrX LE4FfHv1V4PKHZpAyqsmlmhaAvuZdEich4eMJ7BGNj00JeKle0KvT7L6HBs3XWF5zsERjo WiXkcw4Wj31/k87aSkN5j7t5Xsgm7F+wC0Zn9EMQCJu1ksjVUfetayBS1535BB/rjlUm5h RTept2eioxt/3SjjOLE6IvN01o5W9l0vk5w2Kipzr8YsF8KTpuie979rOVx6v+yfJ6Bj/h VEMKoX9kWO5UkNBDEFSMgzSJ6KsbvozklXxfEbxMSVpv9DbSA2AGmq2LCOBTmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757091760; a=rsa-sha256; cv=none; b=Hioq/nzIJZSvt+Xru1QGfKmooSaf6YDl7mwR9c5M8NsqYmhFYTzadP21zWEpRQ4q/fwr2d 7QPiH/aEvJFU+EZ/GTSfZpRwJMWEYJOZWJtoCZCDJ42AbdygavhkxHfIVef0O9+4QRKL1o eq4hxQVqAe0lhhBXjYGML7jfDbsZckkQXBm4r9HigJnCwm/XLiA2W4a0fHMEsk+LTygZ5m Wx6h8VzoqAUfbDCGZHq4RPbHu0GiK0tAa9adgEtFNAu757Q4fBOOlCq73Fbzbd65Miwl1u ncTY8xLnxR2gYvzNuTuOI2SJ6cB5TCTwc/Xo8JE68G5aKDG28H0eLSPDLKkH2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cJN280VwxzxQQ; Fri, 05 Sep 2025 17:02:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 585H2ds6008745; Fri, 5 Sep 2025 17:02:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 585H2d9s008742; Fri, 5 Sep 2025 17:02:39 GMT (envelope-from git) Date: Fri, 5 Sep 2025 17:02:39 GMT Message-Id: <202509051702.585H2d9s008742@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Aymeric Wibo Subject: git: 7fa1552a6a6d - main - sys/power.h: Add `_KERNEL` guards 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: obiwac X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7fa1552a6a6db281ce9c7dd03dc035609a87fb6f Auto-Submitted: auto-generated The branch main has been updated by obiwac: URL: https://cgit.FreeBSD.org/src/commit/?id=7fa1552a6a6db281ce9c7dd03dc035609a87fb6f commit 7fa1552a6a6db281ce9c7dd03dc035609a87fb6f Author: Aymeric Wibo AuthorDate: 2025-09-05 16:54:00 +0000 Commit: Aymeric Wibo CommitDate: 2025-09-05 17:01:05 +0000 sys/power.h: Add `_KERNEL` guards There is no userland interface which would need these, so make header kernel-only. Reviewed by: jrm (mentor), markj Approved by: jrm (mentor), markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52395 --- sys/sys/power.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/power.h b/sys/sys/power.h index 9afa55dd403a..3ee021b0e587 100644 --- a/sys/sys/power.h +++ b/sys/sys/power.h @@ -28,6 +28,7 @@ #ifndef _SYS_POWER_H_ #define _SYS_POWER_H_ +#ifdef _KERNEL #include @@ -60,4 +61,5 @@ extern void power_profile_set_state(int); typedef void (*power_profile_change_hook)(void *, int); EVENTHANDLER_DECLARE(power_profile_change, power_profile_change_hook); +#endif /* _KERNEL */ #endif /* !_SYS_POWER_H_ */