]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix test_and_change_bit comment
authorAndrew Morton <akpm@osdl.org>
Mon, 12 Apr 2004 08:01:57 +0000 (01:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 12 Apr 2004 08:01:57 +0000 (01:01 -0700)
From: Paul Jackson <pj@sgi.com>

I've read over the code in each case, built and ran a test case for i386 in
particular, and studied the other uses and definitions of
test_and_change_bit().  Everything I see recommends this change.

- Fix test_and_change_bit() comment: returns old value, not new one.

include/asm-cris/bitops.h
include/asm-i386/bitops.h
include/asm-ia64/bitops.h
include/asm-mips/bitops.h
include/asm-x86_64/bitops.h

index 10de1ccd1e01137385972d91549584f6d03f86ac..f7401036610e0284268c2c7d1064526965f9f793 100644 (file)
@@ -169,7 +169,7 @@ extern inline int __test_and_clear_bit(int nr, void *addr)
        return retval;
 }
 /**
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
  * @nr: Bit to change
  * @addr: Address to count from
  *
index c39edc67d1111c699b1ecec177ec8419c1dd1b4e..114ac7ac36809cd68eeb0135681c3ece0f1d9d8e 100644 (file)
@@ -212,7 +212,7 @@ static __inline__ int __test_and_change_bit(int nr, volatile unsigned long *addr
 }
 
 /**
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
  * @nr: Bit to change
  * @addr: Address to count from
  *
index 502f51a1a0ee9e45d3194da00181bca6d46a62de..bd39859c2d2a069739d38ca31786b428fd15ecad 100644 (file)
@@ -236,7 +236,7 @@ __test_and_clear_bit(int nr, volatile void * addr)
 }
 
 /**
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
  * @nr: Bit to set
  * @addr: Address to count from
  *
index 8a3d1a32505bf1da9f58ccd5ccf5fb6c178377ea..cb06e891d0aa3f1147acbbe948995e26772121a6 100644 (file)
@@ -296,7 +296,7 @@ static inline int __test_and_clear_bit(unsigned long nr,
 }
 
 /*
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
  * @nr: Bit to change
  * @addr: Address to count from
  *
@@ -567,7 +567,7 @@ static inline int __test_and_clear_bit(unsigned long nr,
 }
 
 /*
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
  * @nr: Bit to change
  * @addr: Address to count from
  *
index bb086405d2d42d9c7967b622a808221d0bf58a79..5ce5dcef4f35bf056f521ba3837cb84e376dc955 100644 (file)
@@ -204,7 +204,7 @@ static __inline__ int __test_and_change_bit(int nr, volatile void * addr)
 }
 
 /**
- * test_and_change_bit - Change a bit and return its new value
+ * test_and_change_bit - Change a bit and return its old value
  * @nr: Bit to change
  * @addr: Address to count from
  *