lkml.org 
[lkml]   [2014]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] module: add within_module() and change return type
Date
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



\
 
 \ /
  Last update: 2014-07-22 18:21    [W:0.034 / U:2.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site