]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-warnings.patch
-started update to 2.6.30; patches apply when using --without grsecurity
[packages/kernel.git] / kernel-warnings.patch
CommitLineData
2380c486
JR
1--- linux-2.6.27/arch/sparc/include/asm/spinlock_64.h~ 2007-02-04 19:44:54.000000000 +0100
2+++ linux-2.6.27/arch/sparc/include/asm/spinlock_64.h 2007-04-10 01:05:35.426190250 +0200
3@@ -105,7 +105,7 @@
4
5 /* Multi-reader locks, these are much saner than the 32-bit Sparc ones... */
6
7-static void inline __read_lock(raw_rwlock_t *lock)
8+static inline void __read_lock(raw_rwlock_t *lock)
9 {
10 unsigned long tmp1, tmp2;
11
12@@ -130,7 +130,7 @@
13 : "memory");
14 }
15
16-static int inline __read_trylock(raw_rwlock_t *lock)
17+static inline int __read_trylock(raw_rwlock_t *lock)
18 {
19 int tmp1, tmp2;
20
21@@ -152,7 +152,7 @@
22 return tmp1;
23 }
24
25-static void inline __read_unlock(raw_rwlock_t *lock)
26+static inline void __read_unlock(raw_rwlock_t *lock)
27 {
28 unsigned long tmp1, tmp2;
29
30@@ -169,7 +169,7 @@
31 : "memory");
32 }
33
34-static void inline __write_lock(raw_rwlock_t *lock)
35+static inline void __write_lock(raw_rwlock_t *lock)
36 {
37 unsigned long mask, tmp1, tmp2;
38
39@@ -196,7 +196,7 @@
40 : "memory");
41 }
42
43-static void inline __write_unlock(raw_rwlock_t *lock)
44+static inline void __write_unlock(raw_rwlock_t *lock)
45 {
46 __asm__ __volatile__(
47 " membar #LoadStore | #StoreStore\n"
48@@ -206,7 +206,7 @@
49 : "memory");
50 }
51
52-static int inline __write_trylock(raw_rwlock_t *lock)
53+static inline int __write_trylock(raw_rwlock_t *lock)
54 {
55 unsigned long mask, tmp1, tmp2, result;
56
57--- linux-2.6.20/arch/powerpc/kernel/prom_init.c~ 2007-02-04 19:44:54.000000000 +0100
58+++ linux-2.6.20/arch/powerpc/kernel/prom_init.c 2007-04-10 01:59:33.712570500 +0200
59@@ -429,14 +429,14 @@
60 }
61 }
62
63-static int inline prom_getprop(phandle node, const char *pname,
64+static inline int prom_getprop(phandle node, const char *pname,
65 void *value, size_t valuelen)
66 {
67 return call_prom("getprop", 4, 1, node, ADDR(pname),
68 (u32)(unsigned long) value, (u32) valuelen);
69 }
70
71-static int inline prom_getproplen(phandle node, const char *pname)
72+static inline int prom_getproplen(phandle node, const char *pname)
73 {
74 return call_prom("getproplen", 2, 1, node, ADDR(pname));
75 }
2380c486
JR
76--- linux-2.6.24-rc8/fs/ocfs2/dir.c.org 2008-01-23 08:32:50.134566450 +0100
77+++ linux-2.6.24-rc8/fs/ocfs2/dir.c 2008-01-23 08:32:57.441604337 +0100
78@@ -126,7 +126,7 @@
79 /*
80 * Returns 0 if not found, -1 on failure, and 1 on success
81 */
82-static int inline ocfs2_search_dirblock(struct buffer_head *bh,
83+static inline int ocfs2_search_dirblock(struct buffer_head *bh,
84 struct inode *dir,
85 const char *name, int namelen,
86 unsigned long offset,
87--- linux-2.6.20/drivers/media/video/cx88/cx88.h~ 2007-04-10 01:58:14.000000000 +0200
88+++ linux-2.6.20/drivers/media/video/cx88/cx88.h 2007-04-10 02:17:05.442299500 +0200
89@@ -89,13 +89,13 @@
90 /* ----------------------------------------------------------- */
91 /* tv norms */
92
93-static unsigned int inline norm_maxw(v4l2_std_id norm)
94+static inline unsigned int norm_maxw(v4l2_std_id norm)
95 {
96 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 720 : 768;
97 }
98
99
100-static unsigned int inline norm_maxh(v4l2_std_id norm)
101+static inline unsigned int norm_maxh(v4l2_std_id norm)
102 {
103 return (norm & V4L2_STD_625_50) ? 576 : 480;
104 }
105--- linux-2.6.20/drivers/isdn/hardware/eicon/platform.h~ 2007-02-04 19:44:54.000000000 +0100
106+++ linux-2.6.20/drivers/isdn/hardware/eicon/platform.h 2007-04-10 02:20:13.490051750 +0200
107@@ -219,7 +219,7 @@
108 /*
109 ** I/O Port utilities
110 */
111-int diva_os_register_io_port (void *adapter, int register, unsigned long port,
112+int diva_os_register_io_port (void *adapter, register int, unsigned long port,
113 unsigned long length, const char* name, int id);
114 /*
115 ** I/O port access abstraction
116@@ -287,13 +287,13 @@
117 ** atomic operation, fake because we use threads
118 */
119 typedef int diva_os_atomic_t;
120-static diva_os_atomic_t __inline__
121+static __inline__ diva_os_atomic_t
122 diva_os_atomic_increment(diva_os_atomic_t* pv)
123 {
124 *pv += 1;
125 return (*pv);
126 }
127-static diva_os_atomic_t __inline__
128+static __inline__ diva_os_atomic_t
129 diva_os_atomic_decrement(diva_os_atomic_t* pv)
130 {
131 *pv -= 1;
This page took 0.118582 seconds and 4 git commands to generate.