Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kernel/relay.c: make functions static

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
01c55ed3 bb90110d

+6 -7
+6 -7
kernel/relay.c
··· 80 80 * 81 81 * Caller should already have grabbed mmap_sem. 82 82 */ 83 - int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) 83 + static int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) 84 84 { 85 85 unsigned long length = vma->vm_end - vma->vm_start; 86 86 struct file *filp = vma->vm_file; ··· 145 145 * 146 146 * Returns channel buffer if successful, %NULL otherwise. 147 147 */ 148 - struct rchan_buf *relay_create_buf(struct rchan *chan) 148 + static struct rchan_buf *relay_create_buf(struct rchan *chan) 149 149 { 150 150 struct rchan_buf *buf = kzalloc(sizeof(struct rchan_buf), GFP_KERNEL); 151 151 if (!buf) ··· 175 175 * 176 176 * Should only be called from kref_put(). 177 177 */ 178 - void relay_destroy_channel(struct kref *kref) 178 + static void relay_destroy_channel(struct kref *kref) 179 179 { 180 180 struct rchan *chan = container_of(kref, struct rchan, kref); 181 181 kfree(chan); ··· 185 185 * relay_destroy_buf - destroy an rchan_buf struct and associated buffer 186 186 * @buf: the buffer struct 187 187 */ 188 - void relay_destroy_buf(struct rchan_buf *buf) 188 + static void relay_destroy_buf(struct rchan_buf *buf) 189 189 { 190 190 struct rchan *chan = buf->chan; 191 191 unsigned int i; ··· 210 210 * rchan_buf_struct and the channel buffer. Should only be called from 211 211 * kref_put(). 212 212 */ 213 - void relay_remove_buf(struct kref *kref) 213 + static void relay_remove_buf(struct kref *kref) 214 214 { 215 215 struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); 216 216 buf->chan->cb->remove_buf_file(buf->dentry); ··· 223 223 * 224 224 * Returns 1 if the buffer is empty, 0 otherwise. 225 225 */ 226 - int relay_buf_empty(struct rchan_buf *buf) 226 + static int relay_buf_empty(struct rchan_buf *buf) 227 227 { 228 228 return (buf->subbufs_produced - buf->subbufs_consumed) ? 0 : 1; 229 229 } 230 - EXPORT_SYMBOL_GPL(relay_buf_empty); 231 230 232 231 /** 233 232 * relay_buf_full - boolean, is the channel buffer full?