Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
* [PATCH 0/4] staging: tidspbridge: remove desgin-by-contract macros
@ 2012-02-06 23:39 Víctor Manuel Jáquez Leal
  2012-02-06 23:39 ` [PATCH 1/4] staging: tidspbridge: remove DBC_ENSURE and DBC_REQUIRED Víctor Manuel Jáquez Leal
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Víctor Manuel Jáquez Leal @ 2012-02-06 23:39 UTC (permalink / raw)
  To: Omar Ramirez Luna, Greg Kroah-Hartman
  Cc: linux-kernel, devel, linux-omap, Felipe Contreras

These patches removes all the design-by-contract (DBC) macros in the
tidspbridge.

Also it removes the config option CONFIG_TIDSPBRIDGE_DEBUG.

The patches are applied above these submitted patches:
http://thread.gmane.org/gmane.linux.kernel/1246081

The main reasons to remove these DBC macros are

* The kernel in general doesn't follow the DBC approach

* They only provide a needless verbosity, since they are available only
  when CONFIG_TIDSPBRIDGE_DEBUG is enabled. If they were useful they
  should be left for the dynamic debugging always. So, if they are not
  used, is dead code at the end, and should be removed.

* Deleting them means less code to maintain

As the Emperor Joseph II told to Mozart in the motion picture Amadeus:
"It's quality work. And there are simply too many notes, that's
all. Just cut a few and it will be perfect."

vmjl


Víctor Manuel Jáquez Leal (4):
  staging: tidspbridge: remove DBC_ENSURE and DBC_REQUIRED
  staging: tidspbridge: remove DBC_ASSERT macro
  staging: tidspbridge: remove dbc.h
  staging: tidspbridge: remove CONFIG_TIDSPBRIDGE_DEBUG

 drivers/staging/tidspbridge/Kconfig                |    6 -
 drivers/staging/tidspbridge/core/chnl_sm.c         |   34 +-----
 drivers/staging/tidspbridge/core/dsp-clock.c       |    3 -
 drivers/staging/tidspbridge/core/io_sm.c           |   29 +----
 drivers/staging/tidspbridge/core/msg_sm.c          |    3 -
 drivers/staging/tidspbridge/core/tiomap3430.c      |    9 --
 drivers/staging/tidspbridge/core/tiomap3430_pwr.c  |    1 -
 drivers/staging/tidspbridge/core/tiomap_io.c       |   18 ---
 drivers/staging/tidspbridge/gen/uuidutil.c         |    7 -
 .../staging/tidspbridge/include/dspbridge/dbc.h    |   46 -------
 .../staging/tidspbridge/include/dspbridge/io_sm.h  |    2 -
 drivers/staging/tidspbridge/pmgr/chnl.c            |   19 ---
 drivers/staging/tidspbridge/pmgr/cmm.c             |   68 +----------
 drivers/staging/tidspbridge/pmgr/cod.c             |   74 -----------
 drivers/staging/tidspbridge/pmgr/dbll.c            |  113 +-----------------
 drivers/staging/tidspbridge/pmgr/dev.c             |  132 --------------------
 drivers/staging/tidspbridge/pmgr/dmm.c             |   14 --
 drivers/staging/tidspbridge/pmgr/dspapi.c          |    7 -
 drivers/staging/tidspbridge/pmgr/io.c              |   17 ---
 drivers/staging/tidspbridge/pmgr/msg.c             |   17 ---
 drivers/staging/tidspbridge/rmgr/dbdcd.c           |   88 -------------
 drivers/staging/tidspbridge/rmgr/disp.c            |   44 -------
 drivers/staging/tidspbridge/rmgr/drv.c             |   48 -------
 drivers/staging/tidspbridge/rmgr/drv_interface.c   |    6 -
 drivers/staging/tidspbridge/rmgr/dspdrv.c          |    5 -
 drivers/staging/tidspbridge/rmgr/mgr.c             |   36 ------
 drivers/staging/tidspbridge/rmgr/nldr.c            |   71 -----------
 drivers/staging/tidspbridge/rmgr/node.c            |   98 ---------------
 drivers/staging/tidspbridge/rmgr/proc.c            |   91 --------------
 drivers/staging/tidspbridge/rmgr/rmm.c             |   36 ------
 drivers/staging/tidspbridge/rmgr/strm.c            |   86 +-------------
 31 files changed, 11 insertions(+), 1217 deletions(-)
 delete mode 100644 drivers/staging/tidspbridge/include/dspbridge/dbc.h

-- 
1.7.8.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-07  0:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-06 23:39 [PATCH 0/4] staging: tidspbridge: remove desgin-by-contract macros Víctor Manuel Jáquez Leal
2012-02-06 23:39 ` [PATCH 1/4] staging: tidspbridge: remove DBC_ENSURE and DBC_REQUIRED Víctor Manuel Jáquez Leal
2012-02-06 23:39 ` [PATCH 2/4] staging: tidspbridge: remove DBC_ASSERT macro Víctor Manuel Jáquez Leal
2012-02-06 23:39 ` [PATCH 3/4] staging: tidspbridge: remove dbc.h Víctor Manuel Jáquez Leal
2012-02-06 23:39 ` [PATCH 4/4] staging: tidspbridge: remove CONFIG_TIDSPBRIDGE_DEBUG Víctor Manuel Jáquez Leal
2012-02-07  0:02 ` [PATCH 0/4] staging: tidspbridge: remove desgin-by-contract macros Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox