This is a note to let you know that I've just added the patch titled cdc_ncm: Fix the build warning to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: cdc_ncm-fix-the-build-warning.patch and it can be found in the queue-4.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 5d0ab06b63fc9c727a7bb72c81321c0114be540b Mon Sep 17 00:00:00 2001 From: Alexander Bersenev <bay@xxxxxxxxxxxx> Date: Sat, 14 Mar 2020 10:33:24 +0500 Subject: cdc_ncm: Fix the build warning From: Alexander Bersenev <bay@xxxxxxxxxxxx> commit 5d0ab06b63fc9c727a7bb72c81321c0114be540b upstream. The ndp32->wLength is two bytes long, so replace cpu_to_le32 with cpu_to_le16. Fixes: 0fa81b304a79 ("cdc_ncm: Implement the 32-bit version of NCM Transfer Block") Signed-off-by: Alexander Bersenev <bay@xxxxxxxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/net/usb/cdc_ncm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c @@ -1176,7 +1176,7 @@ static struct usb_cdc_ncm_ndp32 *cdc_ncm ndp32 = ctx->delayed_ndp32; ndp32->dwSignature = sign; - ndp32->wLength = cpu_to_le32(sizeof(struct usb_cdc_ncm_ndp32) + sizeof(struct usb_cdc_ncm_dpe32)); + ndp32->wLength = cpu_to_le16(sizeof(struct usb_cdc_ncm_ndp32) + sizeof(struct usb_cdc_ncm_dpe32)); return ndp32; } Patches currently in stable-queue which might be from bay@xxxxxxxxxxxx are queue-4.14/cdc_ncm-fix-the-build-warning.patch queue-4.14/cdc_ncm-implement-the-32-bit-version-of-ncm-transfer-block.patch