mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Modules updates for v4.12
Summary of modules changes for the 4.12 merge window: - Minor code cleanups - Fix section alignment for .init_array Signed-off-by: Jessica Yu <jeyu@redhat.com> -----BEGIN PGP SIGNATURE----- iQIcBAABCgAGBQJZClptAAoJEMBFfjjOO8FygIkP/iUB2+Ek2i5aD5w5cLpJ3Sm3 w5DnoSLLHATd64TmvtwIv1UUHJMkUv7Ls9soz7aegxETzp6E1RCRwGxH7FZfuEk7 T8wPiOzhr76rEylr0y7iSYjRv3j5x9PKY5mUejldeiUGIS5crGG14wvnVFzOPIJQ Y2J7pjCPKLgtDxIHfBZFV/ut8TEaepf3du/qGi8UDqxEexEiBixXq3VGOqP/YmYt earCKOU1EhHCIo7LDU4QvrK/6vWq1Ip7yzRtho/LHsgtNeRg5sQ9DO12HvylvXUo IRYLW2yKM9RZnw2XNVt4mHt6zCDTK3gshfLg5SiCBr4AWP5JMX4GLF/w+YpC11tt Ec2M9S9xqWuk5z6rhJyHcEsRgzfDRYRrz79c0wvH+fqKL6kwj7CSPudGkbFIQCXy LjDEe/Fk0RPDSUzHSDpQJWf3u3/mD5rwAcX3X673mRyc9mmm/HzNDOOxJV0EuO6G J2qhjO5a0vLlZ4tpd4uKUgoO9x8jc2Y3jV8wDDDRfOWwr6DD399l20/wnJ9VUkcN 55rQsmKCHEf+5SyGwXUcVsICy1jBg+rfg/SnSBhCrP07uGYz+iGSQ+FZ3xaBCj3f SY/9sAACA3Tn/tTJCY+ncj71oTigTRxU3aYlfqoiwIp/lIpC+gd567SUKssUQmi7 RhAC280Y6SNEB6iK2t7I =Z/Mw -----END PGP SIGNATURE----- Merge tag 'modules-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux Pull modules updates from Jessica Yu: - Minor code cleanups - Fix section alignment for .init_array * tag 'modules-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: kallsyms: Use bounded strnchr() when parsing string module: Unify the return value type of try_module_get module: set .init_array alignment to 8
This commit is contained in:
commit
a1be8edda4
3 changed files with 5 additions and 6 deletions
|
@ -583,7 +583,7 @@ extern bool try_module_get(struct module *module);
|
|||
extern void module_put(struct module *module);
|
||||
|
||||
#else /*!CONFIG_MODULE_UNLOAD*/
|
||||
static inline int try_module_get(struct module *module)
|
||||
static inline bool try_module_get(struct module *module)
|
||||
{
|
||||
return !module || module_is_live(module);
|
||||
}
|
||||
|
@ -680,9 +680,9 @@ static inline void __module_get(struct module *module)
|
|||
{
|
||||
}
|
||||
|
||||
static inline int try_module_get(struct module *module)
|
||||
static inline bool try_module_get(struct module *module)
|
||||
{
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void module_put(struct module *module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue