Skip to content

Commit 46b5132

Browse files
committed
Merge tag 'v7.0-rc5-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: - Fix rebuild of mapping table * tag 'v7.0-rc5-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: smb/client: ensure smb2_mapping_table rebuild on cmd changes
2 parents d813f42 + 34420cb commit 46b5132

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

fs/smb/client/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ cifs-$(CONFIG_CIFS_COMPRESSION) += compress.o compress/lz77.o
4848
# Build the SMB2 error mapping table from smb2status.h
4949
#
5050
$(obj)/smb2_mapping_table.c: $(src)/../common/smb2status.h \
51-
$(src)/gen_smb2_mapping
52-
$(call cmd,gen_smb2_mapping)
51+
$(src)/gen_smb2_mapping FORCE
52+
$(call if_changed,gen_smb2_mapping)
5353

5454
$(obj)/smb2maperror.o: $(obj)/smb2_mapping_table.c
5555

@@ -58,4 +58,5 @@ quiet_cmd_gen_smb2_mapping = GEN $@
5858

5959
obj-$(CONFIG_SMB_KUNIT_TESTS) += smb2maperror_test.o
6060

61-
clean-files += smb2_mapping_table.c
61+
# Let Kbuild handle tracking and cleaning
62+
targets += smb2_mapping_table.c

0 commit comments

Comments
 (0)