lshw uses deprecated PCMCIA ioctl interface

Bug #90709 reported by James Tait
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lshw (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: lshw

When using the lshw tool to get a list of the hardware in my system, I get the following warning in /var/log/syslog:

Mar 8 15:18:13 ferrari kernel: [25713.197235] pcmcia: Detected deprecated PCMCIA ioctl usage from process: lshw.
Mar 8 15:18:13 ferrari kernel: [25713.197239] pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
Mar 8 15:18:13 ferrari kernel: [25713.197242] pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.

I'm not familiar with the lshw code or the pcmcia-cs package and the work going on there in Debian and being merged into Ubuntu, nor do I have the pcmcia-cs package installed. Having taken a brief look at the lshw code, I noticed the following in src/core/pcmcia.cc:

/* parts of this code come from the excellent pcmcia-cs package written by
 * David A. Hinds <email address hidden>.
 */

plus ioctl() usage in the get_tuple(), pcmcia_ident() and scan_pcmcia() functions. I'm no kernel hacker, so I don't know what the correct solution to this is, but the promise of breakage suggests that this should be addressed.

Revision history for this message
Ghe Rivero (ghe.rivero) wrote :
Changed in lshw:
status: New → In Progress
Revision history for this message
Charles Kozler (ckozleriii) wrote :

That revolving upstream was created 2 years ago, assigned and accepted a year ago, and untouched as of now (from what I can see).

I too noticed this after I upgraded my kernel from 2.6.27-9 to 2.6.27-10.

dmesg reports:

[ 3569.423509] pcmcia: Detected deprecated PCMCIA ioctl usage from process: lshw.
[ 3569.423515] pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
[ 3569.423517] pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details.

To recreate, just run lshw

Revision history for this message
NoOp (glgxg) wrote :

Same issue/message in karmic 2.6.31-14-generic. lshw version 02.14-1.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.