diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-11-03 18:02:28 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-12-13 10:33:24 -0500 |
commit | 56df127855b593cc4b2e94ce8df5c609b0109b42 (patch) | |
tree | 79b57b4e228cf35906e2a2a377fb0b5e167f5f1d /fs/quota | |
parent | 4789775477718983b6f8c604a809b950c6a10052 (diff) |
quota: Use the pre-processor to compile out quotactl_cmd_write when !CONFIG_BLOCK
quotactl_cmd_write() is only ever invoked when BLOCK is configured. When
!CONFIG_BLOCK, the build warning below is displayed. Let's fix that.
fs/quota/quota.c:311:12: warning: ‘quotactl_cmd_write’ defined but not used [-Wunused-function]
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota')
-rw-r--r-- | fs/quota/quota.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index af1661f7a54f..c7314f1771f5 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c | |||
@@ -307,6 +307,8 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, | |||
307 | } | 307 | } |
308 | } | 308 | } |
309 | 309 | ||
310 | #ifdef CONFIG_BLOCK | ||
311 | |||
310 | /* Return 1 if 'cmd' will block on frozen filesystem */ | 312 | /* Return 1 if 'cmd' will block on frozen filesystem */ |
311 | static int quotactl_cmd_write(int cmd) | 313 | static int quotactl_cmd_write(int cmd) |
312 | { | 314 | { |
@@ -322,6 +324,8 @@ static int quotactl_cmd_write(int cmd) | |||
322 | return 1; | 324 | return 1; |
323 | } | 325 | } |
324 | 326 | ||
327 | #endif /* CONFIG_BLOCK */ | ||
328 | |||
325 | /* | 329 | /* |
326 | * look up a superblock on which quota ops will be performed | 330 | * look up a superblock on which quota ops will be performed |
327 | * - use the name of a block device to find the superblock thereon | 331 | * - use the name of a block device to find the superblock thereon |