diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-09-13 04:25:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-13 11:22:27 -0400 |
commit | c352ec8ab87b065cd2edda171811f49ac7d0d5cd (patch) | |
tree | f7efa2c669b314687dafa74a6d6082a19d4bc7a7 /drivers | |
parent | db84502b0229ed3075ca74b7d34eb8c609de3200 (diff) |
[PATCH] pcmcia: warn on IOCTL usage
More visible user information of scheduled feature removal.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index 39ba6406fd54..80969f7e7a0b 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -376,6 +376,7 @@ static int ds_open(struct inode *inode, struct file *file) | |||
376 | socket_t i = iminor(inode); | 376 | socket_t i = iminor(inode); |
377 | struct pcmcia_socket *s; | 377 | struct pcmcia_socket *s; |
378 | user_info_t *user; | 378 | user_info_t *user; |
379 | static int warning_printed = 0; | ||
379 | 380 | ||
380 | ds_dbg(0, "ds_open(socket %d)\n", i); | 381 | ds_dbg(0, "ds_open(socket %d)\n", i); |
381 | 382 | ||
@@ -407,6 +408,17 @@ static int ds_open(struct inode *inode, struct file *file) | |||
407 | s->user = user; | 408 | s->user = user; |
408 | file->private_data = user; | 409 | file->private_data = user; |
409 | 410 | ||
411 | if (!warning_printed) { | ||
412 | printk(KERN_INFO "pcmcia: Detected deprecated PCMCIA ioctl " | ||
413 | "usage.\n"); | ||
414 | printk(KERN_INFO "pcmcia: This interface will soon be removed from " | ||
415 | "the kernel; please expect breakage unless you upgrade " | ||
416 | "to new tools.\n"); | ||
417 | printk(KERN_INFO "pcmcia: see http://www.kernel.org/pub/linux/" | ||
418 | "utils/kernel/pcmcia/pcmcia.html for details.\n"); | ||
419 | warning_printed = 1; | ||
420 | } | ||
421 | |||
410 | if (s->pcmcia_state.present) | 422 | if (s->pcmcia_state.present) |
411 | queue_event(user, CS_EVENT_CARD_INSERTION); | 423 | queue_event(user, CS_EVENT_CARD_INSERTION); |
412 | return 0; | 424 | return 0; |