All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/xenpm: fix FreeBSD build
@ 2026-04-21 15:32 Roger Pau Monne
  2026-04-21 15:34 ` Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Roger Pau Monne @ 2026-04-21 15:32 UTC (permalink / raw)
  To: xen-devel; +Cc: Roger Pau Monne, Anthony PERARD

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é <roger.pau@citrix.com>
---
 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 87107bd6c617..ecb39c911d84 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:
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-22 11:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21 15:32 [PATCH] tools/xenpm: fix FreeBSD build Roger Pau Monne
2026-04-21 15:34 ` Andrew Cooper
2026-04-21 15:35 ` Jan Beulich
2026-04-21 15:51   ` Roger Pau Monné
2026-04-22  7:15     ` Jan Beulich
2026-04-22  9:16       ` Roger Pau Monné
2026-04-22 11:27         ` Anthony PERARD
2026-04-21 15:58 ` Teddy Astie
2026-04-21 16:00   ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.