* [2.6 patch] fs/qnx4/: make some code static
@ 2005-02-24 23:37 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-02-24 23:37 UTC (permalink / raw)
To: Andrew Morton; +Cc: al, linux-kernel
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 8 Jan 2005
fs/qnx4/bitmap.c | 4 ++--
fs/qnx4/inode.c | 8 ++++----
include/linux/qnx4_fs.h | 2 --
3 files changed, 6 insertions(+), 8 deletions(-)
--- linux-2.6.10-mm2-full/fs/qnx4/bitmap.c.old 2005-01-08 17:14:26.000000000 +0100
+++ linux-2.6.10-mm2-full/fs/qnx4/bitmap.c 2005-01-08 17:14:38.000000000 +0100
@@ -28,8 +28,8 @@
return 0;
}
-void count_bits(register const char *bmPart, register int size,
- int *const tf)
+static void count_bits(register const char *bmPart, register int size,
+ int *const tf)
{
char b;
int tot = *tf;
--- linux-2.6.10-mm2-full/include/linux/qnx4_fs.h.old 2005-01-08 17:15:37.000000000 +0100
+++ linux-2.6.10-mm2-full/include/linux/qnx4_fs.h 2005-01-08 17:15:52.000000000 +0100
@@ -114,7 +114,6 @@
extern unsigned long qnx4_count_free_blocks(struct super_block *sb);
extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
-extern struct buffer_head *qnx4_getblk(struct inode *, int, int);
extern struct buffer_head *qnx4_bread(struct inode *, int, int);
extern struct inode_operations qnx4_file_inode_operations;
@@ -130,7 +129,6 @@
extern int qnx4_rmdir(struct inode *dir, struct dentry *dentry);
extern int qnx4_sync_file(struct file *file, struct dentry *dentry, int);
extern int qnx4_sync_inode(struct inode *inode);
-extern int qnx4_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create);
static inline struct qnx4_sb_info *qnx4_sb(struct super_block *sb)
{
--- linux-2.6.10-mm2-full/fs/qnx4/inode.c.old 2005-01-08 17:15:01.000000000 +0100
+++ linux-2.6.10-mm2-full/fs/qnx4/inode.c 2005-01-08 17:16:08.000000000 +0100
@@ -162,8 +162,8 @@
return 0;
}
-struct buffer_head *qnx4_getblk(struct inode *inode, int nr,
- int create)
+static struct buffer_head *qnx4_getblk(struct inode *inode, int nr,
+ int create)
{
struct buffer_head *result = NULL;
@@ -212,7 +212,7 @@
return NULL;
}
-int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
+static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
{
unsigned long phys;
@@ -447,7 +447,7 @@
{
return generic_block_bmap(mapping,block,qnx4_get_block);
}
-struct address_space_operations qnx4_aops = {
+static struct address_space_operations qnx4_aops = {
.readpage = qnx4_readpage,
.writepage = qnx4_writepage,
.sync_page = block_sync_page,
^ permalink raw reply [flat|nested] 2+ messages in thread
* [2.6 patch] fs/qnx4/: make some code static
@ 2005-01-08 22:03 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-01-08 22:03 UTC (permalink / raw)
To: al; +Cc: linux-kernel
The patch below makes some needlessly global code static.
diffstat output:
fs/qnx4/bitmap.c | 4 ++--
fs/qnx4/inode.c | 8 ++++----
include/linux/qnx4_fs.h | 2 --
3 files changed, 6 insertions(+), 8 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-mm2-full/fs/qnx4/bitmap.c.old 2005-01-08 17:14:26.000000000 +0100
+++ linux-2.6.10-mm2-full/fs/qnx4/bitmap.c 2005-01-08 17:14:38.000000000 +0100
@@ -28,8 +28,8 @@
return 0;
}
-void count_bits(register const char *bmPart, register int size,
- int *const tf)
+static void count_bits(register const char *bmPart, register int size,
+ int *const tf)
{
char b;
int tot = *tf;
--- linux-2.6.10-mm2-full/include/linux/qnx4_fs.h.old 2005-01-08 17:15:37.000000000 +0100
+++ linux-2.6.10-mm2-full/include/linux/qnx4_fs.h 2005-01-08 17:15:52.000000000 +0100
@@ -114,7 +114,6 @@
extern unsigned long qnx4_count_free_blocks(struct super_block *sb);
extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
-extern struct buffer_head *qnx4_getblk(struct inode *, int, int);
extern struct buffer_head *qnx4_bread(struct inode *, int, int);
extern struct inode_operations qnx4_file_inode_operations;
@@ -130,7 +129,6 @@
extern int qnx4_rmdir(struct inode *dir, struct dentry *dentry);
extern int qnx4_sync_file(struct file *file, struct dentry *dentry, int);
extern int qnx4_sync_inode(struct inode *inode);
-extern int qnx4_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh, int create);
static inline struct qnx4_sb_info *qnx4_sb(struct super_block *sb)
{
--- linux-2.6.10-mm2-full/fs/qnx4/inode.c.old 2005-01-08 17:15:01.000000000 +0100
+++ linux-2.6.10-mm2-full/fs/qnx4/inode.c 2005-01-08 17:16:08.000000000 +0100
@@ -162,8 +162,8 @@
return 0;
}
-struct buffer_head *qnx4_getblk(struct inode *inode, int nr,
- int create)
+static struct buffer_head *qnx4_getblk(struct inode *inode, int nr,
+ int create)
{
struct buffer_head *result = NULL;
@@ -212,7 +212,7 @@
return NULL;
}
-int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
+static int qnx4_get_block( struct inode *inode, sector_t iblock, struct buffer_head *bh, int create )
{
unsigned long phys;
@@ -447,7 +447,7 @@
{
return generic_block_bmap(mapping,block,qnx4_get_block);
}
-struct address_space_operations qnx4_aops = {
+static struct address_space_operations qnx4_aops = {
.readpage = qnx4_readpage,
.writepage = qnx4_writepage,
.sync_page = block_sync_page,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-24 23:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 23:37 [2.6 patch] fs/qnx4/: make some code static Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-01-08 22:03 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).