Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package msr-safe for openSUSE:Factory 
checked in at 2026-07-01 16:38:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/msr-safe (Old)
 and      /work/SRC/openSUSE:Factory/.msr-safe.new.11887 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "msr-safe"

Wed Jul  1 16:38:50 2026 rev:5 rq:1362757 version:1.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/msr-safe/msr-safe.changes        2026-06-30 
15:12:30.106149694 +0200
+++ /work/SRC/openSUSE:Factory/.msr-safe.new.11887/msr-safe.changes     
2026-07-01 16:39:30.135042748 +0200
@@ -1,0 +2,5 @@
+Tue Jun 30 04:32:17 UTC 2026 - Jiri Slaby <[email protected]>
+
+- add fix-build-warnings.patch to fix some warnings/errors
+
+-------------------------------------------------------------------

New:
----
  fix-build-warnings.patch

----------(New B)----------
  New:
- add fix-build-warnings.patch to fix some warnings/errors
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ msr-safe.spec ++++++
--- /var/tmp/diff_new_pack.tZuKzX/_old  2026-07-01 16:39:30.875068506 +0200
+++ /var/tmp/diff_new_pack.tZuKzX/_new  2026-07-01 16:39:30.879068645 +0200
@@ -32,6 +32,7 @@
 Patch1:         Fix-the-layout-changes-after-linux-6.patch
 Patch2:         Fixup-for-commit-1aaba11da9aa-driver-core-class-remo.patch
 Patch3:         kernel-7.2.patch
+Patch4:         fix-build-warnings.patch
 BuildRequires:  %{kernel_module_package_buildreqs}
 BuildRequires:  kernel-default-devel
 BuildRequires:  systemd-rpm-macros

++++++ fix-build-warnings.patch ++++++
From: Jiri Slaby <[email protected]>
Subject: Fix build warnings/errors

Include proper headers to avoid warnings like:
  msr_allowlist.c:53:5: warning: no previous prototype for 
`msr_allowlist_maskexists' [-Wmissing-prototypes]

It then turned out that some return types were wrong -- fix them too.

Signed-off-by: Jiri Slaby <[email protected]>
---
 msr_allowlist.c |    2 ++
 msr_allowlist.h |    2 +-
 msr_batch.c     |    2 --
 msr_safe.h      |    2 ++
 msr_version.c   |    2 ++
 msr_version.h   |    2 +-
 6 files changed, 8 insertions(+), 4 deletions(-)

--- a/msr_allowlist.c
+++ b/msr_allowlist.c
@@ -16,6 +16,8 @@
 #include <linux/uaccess.h>
 #include <linux/version.h>
 
+#include "msr_allowlist.h"
+
 #define MAX_WLIST_BSIZE ((128 * 1024) + 1) // "+1" for null character
 
 struct allowlist_entry
--- a/msr_allowlist.h
+++ b/msr_allowlist.h
@@ -20,7 +20,7 @@
 
 int msr_allowlist_init(int *majordev);
 
-int msr_allowlist_cleanup(int majordev);
+void msr_allowlist_cleanup(int majordev);
 
 int msr_allowlist_exists(void);
 
--- a/msr_batch.c
+++ b/msr_batch.c
@@ -73,8 +73,6 @@ static int msrbatch_apply_allowlist(stru
     return err;
 }
 
-extern int msr_safe_batch(struct msr_batch_array *oa);
-
 static long msrbatch_ioctl(struct file *f, unsigned int ioc, unsigned long arg)
 {
     int err = 0;
--- a/msr_safe.h
+++ b/msr_safe.h
@@ -36,4 +36,6 @@ struct msr_batch_array
 
 #define X86_IOC_MSR_BATCH   _IOWR('c', 0xA2, struct msr_batch_array)
 
+int msr_safe_batch(struct msr_batch_array *oa);
+
 #endif
--- a/msr_version.c
+++ b/msr_version.c
@@ -12,6 +12,8 @@
 #include <linux/module.h>
 #include <linux/uaccess.h>
 
+#include "msr_version.h"
+
 static struct class *cdev_class;
 static char cdev_created;
 static char cdev_registered;
--- a/msr_version.h
+++ b/msr_version.h
@@ -20,6 +20,6 @@
 
 int msr_version_init(int *majordev);
 
-int msr_version_cleanup(int majordev);
+void msr_version_cleanup(int majordev);
 
 #endif

Reply via email to