diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-11-29 11:33:03 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-11-29 11:33:03 -0500 |
commit | dd36f2673573fc027945d488342f2f70664f0448 (patch) | |
tree | 28481965d88905509ed2a3ed4111a8359137b87e /drivers/mtd | |
parent | 9c74034f8fc5d93fbe5656421cbbdc4c76ddda28 (diff) |
[MTD] Use EXPORT_SYMBOL_GPL() for exported symbols.
While we're fixing up the newly-added symbol, change the neighbouring ones
too, for consistency and also to reflect the author's interpretation of
the GPL -- which is that _no_ non-GPL modules are permitted. The author
always intended his code to be released under the GPL, and believes that
any new interpretation of 'EXPORT_SYMBOL' as being any different from
'EXPORT_SYMBOL_GPL' is entirely invalid; the GPL requires that _all_
exports have the semantics of the new 'EXPORT_SYMBOL_GPL', which means the
extra four characters are entirely redundant.
But since those four extra characters trigger the check for illegal
modules in a way that just EXPORT_SYMBOL does not, it's useful to change
anyway. This action in no way indicates an admission that there is any
legal distinction between the two states, and in particular does not
indicate that the author believes that non-GPL modules may use symbols
exported with EXPORT_SYMBOL alone.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/mtdcore.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 60f237f91bb2..7070110aba2a 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c | |||
@@ -298,7 +298,7 @@ void put_mtd_device(struct mtd_info *mtd) | |||
298 | } | 298 | } |
299 | 299 | ||
300 | /* default_mtd_writev - default mtd writev method for MTD devices that | 300 | /* default_mtd_writev - default mtd writev method for MTD devices that |
301 | * dont implement their own | 301 | * don't implement their own |
302 | */ | 302 | */ |
303 | 303 | ||
304 | int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, | 304 | int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, |
@@ -326,14 +326,14 @@ int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, | |||
326 | return ret; | 326 | return ret; |
327 | } | 327 | } |
328 | 328 | ||
329 | EXPORT_SYMBOL(add_mtd_device); | 329 | EXPORT_SYMBOL_GPL(add_mtd_device); |
330 | EXPORT_SYMBOL(del_mtd_device); | 330 | EXPORT_SYMBOL_GPL(del_mtd_device); |
331 | EXPORT_SYMBOL(get_mtd_device); | 331 | EXPORT_SYMBOL_GPL(get_mtd_device); |
332 | EXPORT_SYMBOL(get_mtd_device_nm); | 332 | EXPORT_SYMBOL_GPL(get_mtd_device_nm); |
333 | EXPORT_SYMBOL(put_mtd_device); | 333 | EXPORT_SYMBOL_GPL(put_mtd_device); |
334 | EXPORT_SYMBOL(register_mtd_user); | 334 | EXPORT_SYMBOL_GPL(register_mtd_user); |
335 | EXPORT_SYMBOL(unregister_mtd_user); | 335 | EXPORT_SYMBOL_GPL(unregister_mtd_user); |
336 | EXPORT_SYMBOL(default_mtd_writev); | 336 | EXPORT_SYMBOL_GPL(default_mtd_writev); |
337 | 337 | ||
338 | #ifdef CONFIG_PROC_FS | 338 | #ifdef CONFIG_PROC_FS |
339 | 339 | ||