Mark ERR_PTR and PTR_ERR as cold

These functions are almost always used in error paths, so mark them
appropriately.  That way GCC can do a better job without everyone
having to mark branches unlikely().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/err.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r 26af63083ccd include/linux/err.h
--- a/include/linux/err.h	Fri Jul 25 12:40:22 2008 +1000
+++ b/include/linux/err.h	Fri Jul 25 14:11:33 2008 +1000
@@ -19,12 +19,12 @@
 
 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
 
-static inline void *ERR_PTR(long error)
+static inline __cold void *ERR_PTR(long error)
 {
 	return (void *) error;
 }
 
-static inline long PTR_ERR(const void *ptr)
+static inline __cold long PTR_ERR(const void *ptr)
 {
 	return (long) ptr;
 }
