]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Use the pre-processor to compile out quotactl_cmd_write when !CONFIG_BLOCK
authorLee Jones <lee.jones@linaro.org>
Sat, 3 Nov 2012 22:02:28 +0000 (23:02 +0100)
committerJan Kara <jack@suse.cz>
Thu, 13 Dec 2012 15:33:24 +0000 (16:33 +0100)
commit534794d540913e3d61c42deee8e8736436de6cc7
tree79b57b4e228cf35906e2a2a377fb0b5e167f5f1d
parentd9f44eec58dee3a12fd33a035cde9768bc27c5d7
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>
fs/quota/quota.c