bitops cleanup 3/4
Subsystems (4)
PATCH 1/1 bitops cleanup 3/4
Linus, please apply (no object code changes).
This changes everything arch specific PPC and i386 which should have been unsigned long (it doesn't *matter*, but bad habits get copied).
I left the devfs ones for Richard to submit separately, since they actually change the resulting code.
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
arch/ppc/platforms/pmac_pic.c +1 -1
@@ -492,7 +492,7 @@* and disables all interrupts except for the nominated one. * sleep_restore_intrs() restores the states of all interrupt enables. */ -unsigned int sleep_save_mask[2 ]; +unsigned long sleep_save_mask[2 ]; void __pmacpmac_sleep_save_intrs (int viaint)
drivers/macintosh/adb.c +2 -2
@@ -77,7 +77,7 @@static int adb_got_sleep =0 ;static int adb_inited =0 ;static pid_t adb_probe_task_pid; -static int adb_probe_task_flag; +static unsigned long adb_probe_task_flag;static wait_queue_head_t adb_probe_task_wq;static int sleepy_trackpad;int __adb_probe_sync;
@@ -439,7 +439,7 @@ }static struct adb_request adb_sreq; -static int adb_sreq_lock;// Use semaphore ! */ +static unsigned long adb_sreq_lock;// Use semaphore ! */ int adb_request(struct adb_request *req, void (*done)(struct adb_request *),
include/linux/devfs_fs_kernel.h +1 -1
@@ -54,7 +54,7 @@unsigned char sem_initialised;unsigned int num_free;/* Num free in bits */ unsigned int length;/* Array length in bytes */ -__u32 *bits; +unsigned long *bits;struct semaphore semaphore; };
include/linux/sunrpc/svcsock.h +1 -1
@@ -22,7 +22,7 @@struct svc_serv * sk_server;/* service for this socket */ unsigned char sk_inuse;/* use count */ -unsigned int sk_flags; +unsigned long sk_flags;#define SK_BUSY 0/* enqueued/receiving */ #define SK_CONN 1/* conn pending */ #define SK_CLOSE 2/* dead or dying */
include/asm-i386/thread_info.h +1 -1
@@ -23,7 +23,7 @@struct thread_info {struct task_struct *task;/* main task structure */ struct exec_domain *exec_domain;/* execution domain */ -__u32 flags;/* low level flags */ +unsigned long flags;/* low level flags */ __u32 cpu;/* current CPU */ __s32 preempt_count;/* 0 => preemptable, <0 => BUG */
Quoted 7 lines · Rusty Russell
Linus, please apply (no object code changes).
This changes everything arch specific PPC and i386 which should have been unsigned long (it doesn't *matter*, but bad habits get copied).
I left the devfs ones for Richard to submit separately, since they actually change the resulting code.
??? But you didn't leave the devfs ones alone: your patch changes a devfs file:
include/linux/devfs_fs_kernel.h line 60
Quoted 12 lines
diff -urN -I \$.*\$ --exclude TAGS -X
/home/rusty/current-dontdiff--minimallinux-2.5.7-pre1/include/linux/devfs_fs_kernel.hworking-2.5.7-pre1-bitops/include/linux/devfs_fs_kernel.hinclude/linux/devfs_fs_kernel.h +1
-1@@ -54,7 +54,7 @@unsigned char sem_initialised;unsigned int num_free;/* Num free in bits */ unsigned int length;/* Array length in bytes */ -__u32 *bits; +unsigned long *bits;struct semaphore semaphore; };
Anyway, I hope to have a devfs patch for 2.5.x ready before next week. I've got some other changes in the works, as well as the bitops changes, which I've already submitted for 2.4.x.
Regards, Richard.... Permanent: [email protected] Current: [email protected]
In message <[email protected]> you write:
Quoted 11 lines
Quoted 7 lines · Rusty Russell
Linus, please apply (no object code changes).
This changes everything arch specific PPC and i386 which should have been unsigned long (it doesn't *matter*, but bad habits get copied).
I left the devfs ones for Richard to submit separately, since they actually change the resulting code.
??? But you didn't leave the devfs ones alone: your patch changes a devfs file:
Sorry, my slip on dividing up the patches. It doesn't make a difference if that bit gets applied now anyway.
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.