Skip to content

Commit

Permalink
FS-Cache: Provide nop fscache_stat_d() if CONFIG_FSCACHE_STATS=n
Browse files Browse the repository at this point in the history
Provide nop fscache_stat_d() macro if CONFIG_FSCACHE_STATS=n lest errors like
the following occur:

	fs/fscache/cache.c: In function 'fscache_withdraw_cache':
	fs/fscache/cache.c:386: error: implicit declaration of function 'fscache_stat_d'
	fs/fscache/cache.c:386: error: 'fscache_n_cop_sync_cache' undeclared (first use in this function)
	fs/fscache/cache.c:386: error: (Each undeclared identifier is reported only once
	fs/fscache/cache.c:386: error: for each function it appears in.)
	fs/fscache/cache.c:392: error: 'fscache_n_cop_dissociate_pages' undeclared (first use in this function)

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Nov 20, 2009
1 parent 1c2ea8a commit 4fa9f4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/fscache/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ extern const struct file_operations fscache_stats_fops;

#define __fscache_stat(stat) (NULL)
#define fscache_stat(stat) do {} while (0)
#define fscache_stat_d(stat) do {} while (0)
#endif

/*
Expand Down

0 comments on commit 4fa9f4e

Please sign in to comment.