]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-warnings.patch
- up to 2.6.17.28
[packages/kernel.git] / kernel-warnings.patch
CommitLineData
1b3b3426
PS
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
d86a4939 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 }
d86a4939 76--- linux-2.6.20/include/linux/cpuset.h~ 2007-02-04 19:44:54.000000000 +0100
77+++ linux-2.6.20/include/linux/cpuset.h 2007-04-10 02:06:13.121532000 +0200
78@@ -33,13 +33,13 @@
79 extern int __cpuset_zone_allowed_softwall(struct zone *z, gfp_t gfp_mask);
80 extern int __cpuset_zone_allowed_hardwall(struct zone *z, gfp_t gfp_mask);
81
82-static int inline cpuset_zone_allowed_softwall(struct zone *z, gfp_t gfp_mask)
83+static inline int cpuset_zone_allowed_softwall(struct zone *z, gfp_t gfp_mask)
84 {
85 return number_of_cpusets <= 1 ||
86 __cpuset_zone_allowed_softwall(z, gfp_mask);
87 }
88
89-static int inline cpuset_zone_allowed_hardwall(struct zone *z, gfp_t gfp_mask)
90+static inline int cpuset_zone_allowed_hardwall(struct zone *z, gfp_t gfp_mask)
91 {
92 return number_of_cpusets <= 1 ||
93 __cpuset_zone_allowed_hardwall(z, gfp_mask);
ad5f2795
AM
94--- linux-2.6.24-rc8/fs/ocfs2/dir.c.org 2008-01-23 08:32:50.134566450 +0100
95+++ linux-2.6.24-rc8/fs/ocfs2/dir.c 2008-01-23 08:32:57.441604337 +0100
96@@ -126,7 +126,7 @@
d86a4939 97 /*
98 * Returns 0 if not found, -1 on failure, and 1 on success
99 */
100-static int inline ocfs2_search_dirblock(struct buffer_head *bh,
101+static inline int ocfs2_search_dirblock(struct buffer_head *bh,
102 struct inode *dir,
103 const char *name, int namelen,
104 unsigned long offset,
d86a4939 105--- linux-2.6.20/drivers/media/video/cx88/cx88.h~ 2007-04-10 01:58:14.000000000 +0200
106+++ linux-2.6.20/drivers/media/video/cx88/cx88.h 2007-04-10 02:17:05.442299500 +0200
107@@ -89,13 +89,13 @@
a857d3db 108 /* ----------------------------------------------------------- */
109 /* tv norms */
d86a4939 110
a857d3db 111-static unsigned int inline norm_maxw(v4l2_std_id norm)
112+static inline unsigned int norm_maxw(v4l2_std_id norm)
d86a4939 113 {
a857d3db 114 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 720 : 768;
d86a4939 115 }
116
117
a857d3db 118-static unsigned int inline norm_maxh(v4l2_std_id norm)
119+static inline unsigned int norm_maxh(v4l2_std_id norm)
d86a4939 120 {
a857d3db 121 return (norm & V4L2_STD_625_50) ? 576 : 480;
d86a4939 122 }
123--- linux-2.6.20/drivers/isdn/hardware/eicon/platform.h~ 2007-02-04 19:44:54.000000000 +0100
124+++ linux-2.6.20/drivers/isdn/hardware/eicon/platform.h 2007-04-10 02:20:13.490051750 +0200
125@@ -219,7 +219,7 @@
126 /*
127 ** I/O Port utilities
128 */
129-int diva_os_register_io_port (void *adapter, int register, unsigned long port,
130+int diva_os_register_io_port (void *adapter, register int, unsigned long port,
131 unsigned long length, const char* name, int id);
132 /*
133 ** I/O port access abstraction
134@@ -287,13 +287,13 @@
135 ** atomic operation, fake because we use threads
136 */
137 typedef int diva_os_atomic_t;
138-static diva_os_atomic_t __inline__
139+static __inline__ diva_os_atomic_t
140 diva_os_atomic_increment(diva_os_atomic_t* pv)
141 {
142 *pv += 1;
143 return (*pv);
144 }
145-static diva_os_atomic_t __inline__
146+static __inline__ diva_os_atomic_t
147 diva_os_atomic_decrement(diva_os_atomic_t* pv)
148 {
149 *pv -= 1;
This page took 0.19632 seconds and 4 git commands to generate.