diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 18:07:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 18:07:37 -0400 |
commit | 8d7804a2f03dbd34940fcb426450c730adf29dae (patch) | |
tree | 749f33776e38f734b81c2a93275b6bf76e96f74e /include/linux/module.h | |
parent | d87823813fe498fdd47894bd28e460a9dee8d771 (diff) | |
parent | 0e6c861f73ec42ab5c89fda9892f2173c7aaf6cf (diff) |
Merge tag 'driver-core-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core updates from Greg KH:
"Here is the driver core / firmware changes for 4.2-rc1.
A number of small changes all over the place in the driver core, and
in the firmware subsystem. Nothing really major, full details in the
shortlog. Some of it is a bit of churn, given that the platform
driver probing changes was found to not work well, so they were
reverted.
All of these have been in linux-next for a while with no reported
issues"
* tag 'driver-core-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (31 commits)
Revert "base/platform: Only insert MEM and IO resources"
Revert "base/platform: Continue on insert_resource() error"
Revert "of/platform: Use platform_device interface"
Revert "base/platform: Remove code duplication"
firmware: add missing kfree for work on async call
fs: sysfs: don't pass count == 0 to bin file readers
base:dd - Fix for typo in comment to function driver_deferred_probe_trigger().
base/platform: Remove code duplication
of/platform: Use platform_device interface
base/platform: Continue on insert_resource() error
base/platform: Only insert MEM and IO resources
firmware: use const for remaining firmware names
firmware: fix possible use after free on name on asynchronous request
firmware: check for file truncation on direct firmware loading
firmware: fix __getname() missing failure check
drivers: of/base: move of_init to driver_init
drivers/base: cacheinfo: fix annoying typo when DT nodes are absent
sysfs: disambiguate between "error code" and "failure" in comments
driver-core: fix build for !CONFIG_MODULES
driver-core: make __device_attach() static
...
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 255fca74de7d..7ffe0851d244 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -257,6 +257,8 @@ struct module { | |||
257 | bool sig_ok; | 257 | bool sig_ok; |
258 | #endif | 258 | #endif |
259 | 259 | ||
260 | bool async_probe_requested; | ||
261 | |||
260 | /* symbols that will be GPL-only in the near future. */ | 262 | /* symbols that will be GPL-only in the near future. */ |
261 | const struct kernel_symbol *gpl_future_syms; | 263 | const struct kernel_symbol *gpl_future_syms; |
262 | const unsigned long *gpl_future_crcs; | 264 | const unsigned long *gpl_future_crcs; |
@@ -508,6 +510,11 @@ int unregister_module_notifier(struct notifier_block *nb); | |||
508 | 510 | ||
509 | extern void print_modules(void); | 511 | extern void print_modules(void); |
510 | 512 | ||
513 | static inline bool module_requested_async_probing(struct module *module) | ||
514 | { | ||
515 | return module && module->async_probe_requested; | ||
516 | } | ||
517 | |||
511 | #else /* !CONFIG_MODULES... */ | 518 | #else /* !CONFIG_MODULES... */ |
512 | 519 | ||
513 | /* Given an address, look for it in the exception tables. */ | 520 | /* Given an address, look for it in the exception tables. */ |
@@ -618,6 +625,12 @@ static inline int unregister_module_notifier(struct notifier_block *nb) | |||
618 | static inline void print_modules(void) | 625 | static inline void print_modules(void) |
619 | { | 626 | { |
620 | } | 627 | } |
628 | |||
629 | static inline bool module_requested_async_probing(struct module *module) | ||
630 | { | ||
631 | return false; | ||
632 | } | ||
633 | |||
621 | #endif /* CONFIG_MODULES */ | 634 | #endif /* CONFIG_MODULES */ |
622 | 635 | ||
623 | #ifdef CONFIG_SYSFS | 636 | #ifdef CONFIG_SYSFS |