On Tuesday 27 July 2004 05:28, Srinivas G. wrote: > Hi, > > We developed a device driver for PCI card under SuSe 9.1 with kernel > version 2.6.5-7.71. It was working fine in the NON SMP environment. > It was compiled and running fine under NON SMP environment(non SMP > linux box). > > We tried to compile it on SMP Linux box with the same SuSe 9.1 having > the same kernel version 2.6.5-7.71. We got the following compilation > errors. The spin_lock's below are NOPs on a non-SMP kernel (assuming spinlock debugging is also disabled). That is why the errors didn't show up till you enabled SMP. > line 897: warning: passing arg 1 of '_raw_spin_lock' from > imcompatible pointer type > line 1051: error: Invalid type arguement of 'unary *' > > We have gone through the code at that particular line numbers. In > both the places we found the spin lock related information only. The > lines were showed below. > > line 897: spin_lock_irqsave(&tiDev->genFM[uiSocket].blkqueue->queue_lock,flags); What is the type of your 'queue_lock'? I suspect it isn't spinlock_t. > line 1051: spin_lock_init(gDisk->qlock); Looks like you are missing an '&'. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/