Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2
kmod
enum.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File enum.patch of Package kmod
From d5840458e01184e068a0226ec636cb1a454a1386 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jengelh@inai.de> 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor