diff options
| author | Jeff Layton <[email protected]> | 2024-02-12 12:24:05 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-02-12 13:08:18 +0000 |
| commit | 582a3bf999df662c0e0fa4717ce7559f16d7b93b (patch) | |
| tree | 2637285806c9b68d475b86a9a4aa3e50c524bae6 /fs/btrfs/dev-replace.c | |
| parent | smb: remove redundant check (diff) | |
| download | kernel-582a3bf999df662c0e0fa4717ce7559f16d7b93b.tar.gz kernel-582a3bf999df662c0e0fa4717ce7559f16d7b93b.zip | |
filelock: always define for_each_file_lock()
...and eliminate the stub version when CONFIG_FILE_LOCKING is disabled.
This silences the following warning that crept in recently:
fs/ceph/locks.c: In function 'ceph_count_locks':
fs/ceph/locks.c:380:27: error: unused variable 'lock' [-Werror=unused-variable]
380 | struct file_lock *lock;
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 75cabec0111b ("filelock: add some new helper functions")
Signed-off-by: Jeff Layton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
