nvtop
nvtop copied to clipboard
[PATCH] Control reaches end of non-void function error.
Hi, I'm the openSUSE Packager for nvtop, in the latest build from git, I'm hitting a "control reaches end of non-void function error."
The following proposed patch corrects this;
diff -Naur a/src/extract_gpuinfo_intel.c b/src/extract_gpuinfo_intel.c
--- a/src/extract_gpuinfo_intel.c 2024-12-13 16:39:32.000000000 -0600
+++ b/src/extract_gpuinfo_intel.c 2024-12-24 19:23:07.361394139 -0600
@@ -87,6 +87,7 @@
case DRIVER_XE:
return parse_drm_fdinfo_intel_xe(info, fdinfo_file, process_info);
}
+ return false;
}
static void add_intel_cards(struct nvtop_device *dev, struct list_head *devices, unsigned *count) {