All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] module: add within_module() and change return type
@ 2014-07-22 12:28 Petr Mladek
  2014-07-22 12:28 ` [PATCH 1/2] module: add within_module() function Petr Mladek
  2014-07-22 12:28 ` [PATCH 2/2] module: return bool from within_module*() Petr Mladek
  0 siblings, 2 replies; 5+ messages in thread
From: Petr Mladek @ 2014-07-22 12:28 UTC (permalink / raw)
  To: Rusty Russell
  Cc: Jiri Slaby, Steven Rostedt, Jiri Kosina, linux-kernel, Petr Mladek

The condition (within_module_init() || within_module_core()) is used on several
locations. We would like to use it also in kGraft when patching modules.

This small patch set introduces within_module() to do the check in one call.
It also modifies the return type from int to bool for all three functions.
It seems to be more appropriate.

The patch set is against linux-next, top commit 594a8bbcd415c ("Add linux-next
specific files for 20140721").

Petr Mladek (2):
  module: add within_module() function
  module: return bool from within_module*()

 include/linux/module.h | 11 +++++++++--
 kernel/module.c        | 12 ++++--------
 2 files changed, 13 insertions(+), 10 deletions(-)

-- 
1.8.4


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

end of thread, other threads:[~2014-07-23  5:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-22 12:28 [PATCH 0/2] module: add within_module() and change return type Petr Mladek
2014-07-22 12:28 ` [PATCH 1/2] module: add within_module() function Petr Mladek
2014-07-22 12:40   ` Steven Rostedt
2014-07-22 12:28 ` [PATCH 2/2] module: return bool from within_module*() Petr Mladek
2014-07-23  5:39   ` Rusty Russell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.