]> git.baikalelectronics.ru Git - kernel.git/commit
asm/sections: add helpers to check for section data
authorThierry Reding <treding@nvidia.com>
Sat, 16 Jan 2016 00:58:18 +0000 (16:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2016 19:17:24 +0000 (11:17 -0800)
commit9b617b635b0f7a4b0e75b34bd4829e8ca6a1b31e
tree1c0ba4cc67a030a54f2e1cb8082846f260578352
parentdf916f59aac45e692c6cd8d594040dc314c09b53
asm/sections: add helpers to check for section data

Add a helper to check if an object (given an address and a size) is part
of a section (given beginning and end addresses).  For convenience, also
provide a helper that performs this check for __init data using the
__init_begin and __init_end limits.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/sections.h