From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754321AbcBNXLD (ORCPT ); Sun, 14 Feb 2016 18:11:03 -0500 Received: from mail5.windriver.com ([192.103.53.11]:44317 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753414AbcBNXK5 (ORCPT ); Sun, 14 Feb 2016 18:10:57 -0500 From: Paul Gortmaker To: CC: Paul Gortmaker , "Bryan O'Donoghue" , Ed Wildgoose , "H. Peter Anvin" , Ingo Molnar , Philip Prindeville , Thomas Gleixner , Subject: [PATCH 0/5] x86: remove modular references from non modular code Date: Sun, 14 Feb 2016 18:09:51 -0500 Message-ID: <1455491396-30977-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.6.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org My audit of i386 allmodconfig found these instances of non-modular code needlessly using the modular equivalents of their built-in counterparts. In fixing that, we get rid of some dead code, make the mandate of the remaining code more clear, and leave behind better examples for future platform code to copy/emulate. Several of them are trivial, in that there is no binary output change. A couple others have dead code removal so the binary output will be slightly smaller. We've done a direct mapping of module_init --> device_initcall in each instance, so there is no initcall reordering risks here. Overall, in all cases, the runtime should be completely unchanged. Where others have deployed module_param() already, we have to leave it, because there is no equivalent builtin_param (not yet) and we have to remain compatible with existing bootarg users. Paul. --- Cc: Bryan O'Donoghue Cc: Ed Wildgoose Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Philip Prindeville Cc: Thomas Gleixner Cc: x86@kernel.org Paul Gortmaker (5): x86: make platform/intel-quark/imr.c explicitly non-modular x86: make platform/intel-quark/imr_selftest.c explicitly non-modular x86: make platform/geode/geos.c explicitly non-modular x86: make platform/geode/alix.c explicitly non-modular x86: make platform/geode/net5501.c explicitly non-modular arch/x86/platform/geode/alix.c | 14 +++++------ arch/x86/platform/geode/geos.c | 8 +------ arch/x86/platform/geode/net5501.c | 8 +------ arch/x86/platform/intel-quark/imr.c | 35 ++-------------------------- arch/x86/platform/intel-quark/imr_selftest.c | 15 ++---------- 5 files changed, 13 insertions(+), 67 deletions(-) -- 2.6.1