From 1096f5f49e204aeae399f5bdd4a18b7a8d8ea8fc Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Tue, 21 Apr 2026 17:25:12 +0200 Subject: [PATCH] tools/xenpm: fix FreeBSD build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ENODATA is not defined on FreeBSD: xenpm.c:1380:17: error: use of undeclared identifier 'ENODATA' 1380 | errno = ENODATA; | ^ 1 error generated. Fixes: edb657887a60 ("xenpm: Add get-core-temp subcommand") Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Reviewed-by: Teddy Astie Acked-by: Anthony PERARD --- tools/misc/xenpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c index 87107bd6c6..ecb39c911d 100644 --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -1377,7 +1377,7 @@ static int fetch_dts_temp(xc_interface *xch, uint32_t cpu, bool package, int *te { case 0: /* This CPU isn't online or can't query this MSR */ - errno = ENODATA; + errno = ENODEV; return -1; case 1: