[PATCH] smb: common: add header guards to fs/smb/common/smb2status.h

Stefan Metzmacher metze at samba.org
Wed Feb 4 16:09:13 UTC 2026


Am 03.02.26 um 16:34 schrieb Stefan Metzmacher:
> Hi Steve,
> 
> this is on top of your for-next branch as it depends on this
> patch from David:
> 
> cifs: Label SMB2 statuses with errors
> 
> While there I found that this patch:
> cifs: Autogenerate SMB2 error mapping table
> 
> Generates this error:
> client/smb2maperror.c:55:60: SPARSE: error: restricted __le32 degrades to integer
> David can you check?


This also breaks cifs.ko against a running kernel.

$(obj)/smb2_mapping_table.c: $(srctree)/fs/smb/common/smb2status.h

results in:

make[3]: *** No rule to make target '/usr/src/linux-headers-6.19.0-rc8-z-metze-perf.01+/fs/smb/common/smb2status.h', needed by 'smb2_mapping_table.c'.  Stop.
make[3]: *** Waiting for unfinished jobs....
   CC [M]  smb2ops.o
make[2]: *** [/usr/src/linux-headers-6.19.0-rc8-z-metze-perf.01+/Makefile:2061: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.19.0-rc8-z-metze-perf.01+/Makefile:249: __sub-make] Error 2
make[1]: Leaving directory '/root/cifs-backport/fs-smb/client'
make: *** [Makefile:249: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.19.0-rc8-z-metze-perf.01+'

metze



More information about the samba-technical mailing list