From patchwork Wed Jul 18 08:43:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Engelhardt X-Patchwork-Id: 10531619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F9AB602CA for ; Wed, 18 Jul 2018 08:43:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F69C29100 for ; Wed, 18 Jul 2018 08:43:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4282829102; Wed, 18 Jul 2018 08:43:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B85829100 for ; Wed, 18 Jul 2018 08:43:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbeGRJUb (ORCPT ); Wed, 18 Jul 2018 05:20:31 -0400 Received: from a3.inai.de ([88.198.85.195]:49038 "EHLO a3.inai.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbeGRJUb (ORCPT ); Wed, 18 Jul 2018 05:20:31 -0400 Received: by a3.inai.de (Postfix, from userid 65534) id 1D1CD1FC7D96; Wed, 18 Jul 2018 10:43:41 +0200 (CEST) Received: from a4.inai.de (a4.inai.de [IPv6:2a01:4f8:222:6c9::f8]) by a3.inai.de (Postfix) with ESMTP id A4A033BB6502; Wed, 18 Jul 2018 10:43:40 +0200 (CEST) From: Jan Engelhardt To: lucas.demarchi@intel.com Cc: linux-modules@vger.kernel.org, jengelh@inai.de Subject: [PATCH] libkmod: drop _PAD enum constants Date: Wed, 18 Jul 2018 10:43:40 +0200 Message-Id: <20180718084340.4305-1-jengelh@inai.de> X-Mailer: git-send-email 2.18.0 Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP When are enums ever mapped to something smaller than int, other than willful packing into a bitfield? --- 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 = 1U << 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 = 1U << 31, }; const char *kmod_module_initstate_str(enum kmod_module_initstate state); int kmod_module_get_initstate(const struct kmod_module *mod);