Re: RFH: Converting a driver from semaphore to mutex in 2.6.21

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, 12 Jul 2007, Pekka Enberg wrote:

On 7/12/07, Martijn Uffing <mp3project@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I must miss something really really obvious, but I really can't find it.

[snip]

drivers/i2c/chips/bt869.c:63: error: field `update_lock' has incomplete type

[snip]

@@ -59,7 +60,7 @@ struct bt869_data {
        struct i2c_client client;
        int sysctl_id;

-       struct semaphore update_lock;
+       struct mutex_debug update_lock;
                    ^^^^^^

s/struct mutex_debug/struct mutex/g. Follow-ups to
http://kernelnewbies.org/ please.

                                         Pekka


Yup that works, thanks!
I thought that since I had "CONFIG_DEBUG_MUTEXES=y" in my .config that struct mutex_debug should work. Apparently not.


Greetz
Martijn.



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux