public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org,
	"Paul Gortmaker" <paul.gortmaker@windriver.com>,
	"Alexandre Courbot" <gnurou@gmail.com>,
	"Arve Hjønnevåg" <arve@android.com>,
	"Chris Rorvick" <chris@rorvick.com>,
	"Felipe Balbi" <balbi@ti.com>,
	"Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com>,
	"Haneen Mohammed" <hamohammed.sa@gmail.com>,
	"Markus Elfring" <elfring@users.sourceforge.net>,
	"Peter Chen" <peter.chen@freescale.com>,
	"Riley Andrews" <riandrews@android.com>,
	"Roberta Dobrescu" <roberta.dobrescu@gmail.com>,
	"Robert Baldyga" <r.baldyga@samsung.com>,
	"Stephen Warren" <swarren@wwwdotorg.org>,
	"Tapasweni Pathak" <tapaswenipathak@gmail.com>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Vincenzo Scotti" <vinc94@gmail.com>,
	devel@driverdev.osuosl.org, linux-tegra@vger.kernel.org
Subject: [PATCH 0/7] staging: make non-modular code explicitly non-modular
Date: Sun, 11 Oct 2015 19:03:14 -0400	[thread overview]
Message-ID: <1444604601-2896-1-git-send-email-paul.gortmaker@windriver.com> (raw)

[resending; forgot to add lkml to Cc: -- sorry for those who get this 2x]

In a previous merge window, we made changes to allow better
delineation between modular and non-modular code in commit
0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init
from init.h to module.h").  This allows us to now ensure module code
looks modular and non-modular code does not accidentally look modular
just to avoid suffering build breakage.

Here we target code that is, by nature of their Makefile and/or
Kconfig settings, only available to be built-in, but implicitly
presenting itself as being possibly modular by way of using modular
headers, macros, and functions.

The goal here is to remove that illusion of modularity from these
files, but in a way that leaves the actual runtime unchanged.
In doing so, we remove code that has never been tested and adds
no value to the tree.  And we continue the process of expecting a
level of consistency between the Kconfig/Makefile of code and the
code in use itself.

There are two exceptions to unchanged runtime here:  The first is
in emxx_udc.c driver: one previously could use sysfs to unbind the
driver which would try and use a .remove function that the linker
should have dropped as it was __exit.  We simply disable
unbind/bind for this driver.  The second is for Tegra ION memory
manager; it clearly was intended to be tristate but the makefile
did not allow it to be; that is now fixed.

Build tested on staging-testing from Sat, on ARM, since the majority
of drivers here are Android related. 

Paul.
--

Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: "Arve Hjønnevåg" <arve@android.com>
Cc: Chris Rorvick <chris@rorvick.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com>
Cc: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: Markus Elfring <elfring@users.sourceforge.net>
Cc: Peter Chen <peter.chen@freescale.com>
Cc: Riley Andrews <riandrews@android.com>
Cc: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Cc: Robert Baldyga <r.baldyga@samsung.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Tapasweni Pathak <tapaswenipathak@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Vincenzo Scotti <vinc94@gmail.com>
Cc: devel@driverdev.osuosl.org
Cc: linux-tegra@vger.kernel.org

-- 
2.6.1
Paul Gortmaker (7):
  drivers/staging: make android ashmem.c explicitly non-modular
  drivers/staging: make android ion_page_pool.c explicitly non-modular
  drivers/staging: make android tegra_ion.c properly tristate
  drivers/staging: make android sw_sync.c explicitly non-modular
  drivers/staging: make android lowmemorykiller.c explicitly non-modular
  drivers/staging: make android timed_output.c explicitly non-modular
  drivers/staging: make emxx_udc.c explicitly non-modular

 drivers/staging/android/ashmem.c            | 20 +++-------------
 drivers/staging/android/ion/ion_page_pool.c | 10 ++------
 drivers/staging/android/ion/tegra/Makefile  |  2 +-
 drivers/staging/android/lowmemorykiller.c   | 18 ++++++--------
 drivers/staging/android/sw_sync.c           | 11 ++-------
 drivers/staging/android/timed_output.c      | 16 +++----------
 drivers/staging/emxx_udc/emxx_udc.c         | 37 ++++-------------------------
 7 files changed, 22 insertions(+), 92 deletions(-)

-- 
2.6.1


             reply	other threads:[~2015-10-11 23:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-11 23:03 Paul Gortmaker [this message]
2015-10-11 23:03 ` [PATCH 1/7] drivers/staging: make android ashmem.c explicitly non-modular Paul Gortmaker
2015-10-11 23:03 ` [PATCH 2/7] drivers/staging: make android ion_page_pool.c " Paul Gortmaker
2015-10-11 23:03 ` [PATCH 3/7] drivers/staging: make android tegra_ion.c properly tristate Paul Gortmaker
2015-10-11 23:03 ` [PATCH 4/7] drivers/staging: make android sw_sync.c explicitly non-modular Paul Gortmaker
2015-10-11 23:03 ` [PATCH 5/7] drivers/staging: make android lowmemorykiller.c " Paul Gortmaker
2015-10-11 23:03 ` [PATCH 6/7] drivers/staging: make android timed_output.c " Paul Gortmaker
2015-10-11 23:03 ` [PATCH 7/7] drivers/staging: make emxx_udc.c " Paul Gortmaker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444604601-2896-1-git-send-email-paul.gortmaker@windriver.com \
    --to=paul.gortmaker@windriver.com \
    --cc=arve@android.com \
    --cc=balbi@ti.com \
    --cc=chris@rorvick.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=elfring@users.sourceforge.net \
    --cc=gnurou@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=hgujulan@visteon.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=peter.chen@freescale.com \
    --cc=r.baldyga@samsung.com \
    --cc=riandrews@android.com \
    --cc=roberta.dobrescu@gmail.com \
    --cc=swarren@wwwdotorg.org \
    --cc=tapaswenipathak@gmail.com \
    --cc=thierry.reding@gmail.com \
    --cc=vinc94@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox