Hello community, here is the log from the commit of package kmod for openSUSE:Factory checked in at 2018-07-28 12:38:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmod (Old) and /work/SRC/openSUSE:Factory/.kmod.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmod" Sat Jul 28 12:38:04 2018 rev:51 rq:624075 version:25 Changes: -------- --- /work/SRC/openSUSE:Factory/kmod/kmod.changes 2018-06-22 13:13:52.330399714 +0200 +++ /work/SRC/openSUSE:Factory/.kmod.new/kmod.changes 2018-07-28 12:38:12.612173083 +0200 @@ -1,0 +2,5 @@ +Wed Jul 18 08:51:06 UTC 2018 - [email protected] + +- Add enum.patch. + +------------------------------------------------------------------- New: ---- enum.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmod.spec ++++++ --- /var/tmp/diff_new_pack.3XijQA/_old 2018-07-28 12:38:13.412174619 +0200 +++ /var/tmp/diff_new_pack.3XijQA/_new 2018-07-28 12:38:13.416174627 +0200 @@ -38,6 +38,7 @@ Patch6: libkmod-signature-Fix-crash-when-module-signature-is.patch Patch7: libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch Patch8: 0012-modprobe-print-unsupported-status.patch +Patch9: enum.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: asn1c BuildRequires: autoconf @@ -110,7 +111,7 @@ %prep %setup -q -n kmod-%version -%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -p1 +%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -P 8 -P 9 -p1 %build autoreconf -fi ++++++ enum.patch ++++++ >From d5840458e01184e068a0226ec636cb1a454a1386 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <[email protected]> Date: Wed, 18 Jul 2018 10:39:12 +0200 Subject: [PATCH] libkmod: drop _PAD enum constants When are enums ever mapped to something smaller than int, other than willful packing into a bitfield? [Remove it until there is a better reasoning for its existence.] --- libkmod/libkmod.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h index 352627e..4fb5ba8 100644 --- a/libkmod/libkmod.h +++ b/libkmod/libkmod.h @@ -71,8 +71,6 @@ enum kmod_index { KMOD_INDEX_MODULES_ALIAS, KMOD_INDEX_MODULES_SYMBOL, KMOD_INDEX_MODULES_BUILTIN, - /* Padding to make sure enum is not mapped to char */ - _KMOD_INDEX_PAD = (1 << 31), }; int kmod_dump_index(struct kmod_ctx *ctx, enum kmod_index type, int fd); @@ -210,8 +208,6 @@ enum kmod_module_initstate { KMOD_MODULE_LIVE, KMOD_MODULE_COMING, KMOD_MODULE_GOING, - /* Padding to make sure enum is not mapped to char */ - _KMOD_MODULE_PAD = (1 << 31), }; const char *kmod_module_initstate_str(enum kmod_module_initstate state); int kmod_module_get_initstate(const struct kmod_module *mod); -- 2.18.0
