tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: a7705e54e1c895713a09e17bdcfaf507f80de3a0 commit: 71ddc43ed7c712b386adeb3a16a616fa3a9e52c8 [32/56] staging: rtl8192e: Replace struct rtllib_hdr_3addr in structs of rtllib.h config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230917/202309171733.Gl96cmYd-lkp@xxxxxxxxx/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230917/202309171733.Gl96cmYd-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202309171733.Gl96cmYd-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): In file included from drivers/staging/rtl8192e/dot11d.h:11, from drivers/staging/rtl8192e/dot11d.c:8: >> drivers/staging/rtl8192e/rtllib.h:735:1: warning: alignment 1 of 'struct rtllib_authentication' is less than 2 [-Wpacked-not-aligned] 735 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:740:1: warning: alignment 1 of 'struct rtllib_disauth' is less than 2 [-Wpacked-not-aligned] 740 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:745:1: warning: alignment 1 of 'struct rtllib_disassoc' is less than 2 [-Wpacked-not-aligned] 745 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:751:1: warning: alignment 1 of 'struct rtllib_probe_request' is less than 2 [-Wpacked-not-aligned] 751 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:762:1: warning: alignment 1 of 'struct rtllib_probe_response' is less than 2 [-Wpacked-not-aligned] 762 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:773:1: warning: alignment 1 of 'struct rtllib_assoc_request_frame' is less than 2 [-Wpacked-not-aligned] 773 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:781:1: warning: alignment 1 of 'struct rtllib_assoc_response_frame' is less than 2 [-Wpacked-not-aligned] 781 | } __packed; | ^ -- In file included from drivers/staging/rtl8192e/rtllib_wx.c:19: >> drivers/staging/rtl8192e/rtllib.h:735:1: warning: alignment 1 of 'struct rtllib_authentication' is less than 2 [-Wpacked-not-aligned] 735 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:740:1: warning: alignment 1 of 'struct rtllib_disauth' is less than 2 [-Wpacked-not-aligned] 740 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:745:1: warning: alignment 1 of 'struct rtllib_disassoc' is less than 2 [-Wpacked-not-aligned] 745 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:751:1: warning: alignment 1 of 'struct rtllib_probe_request' is less than 2 [-Wpacked-not-aligned] 751 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:762:1: warning: alignment 1 of 'struct rtllib_probe_response' is less than 2 [-Wpacked-not-aligned] 762 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:773:1: warning: alignment 1 of 'struct rtllib_assoc_request_frame' is less than 2 [-Wpacked-not-aligned] 773 | } __packed; | ^ >> drivers/staging/rtl8192e/rtllib.h:781:1: warning: alignment 1 of 'struct rtllib_assoc_response_frame' is less than 2 [-Wpacked-not-aligned] 781 | } __packed; | ^ drivers/staging/rtl8192e/rtllib_wx.c: In function 'rtl819x_translate_scan': drivers/staging/rtl8192e/rtllib_wx.c:69:51: warning: '%s' directive output may be truncated writing up to 15 bytes into a region of size 6 [-Wformat-truncation=] 69 | snprintf(iwe.u.name, IFNAMSIZ, "IEEE802.11%s", proto_name); | ^~ ~~~~~~~~~~ drivers/staging/rtl8192e/rtllib_wx.c:69:9: note: 'snprintf' output between 11 and 26 bytes into a destination of size 16 69 | snprintf(iwe.u.name, IFNAMSIZ, "IEEE802.11%s", proto_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from drivers/staging/rtl8192e/rtl8192e/rtl_core.h:35, from drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:10: >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:735:1: warning: alignment 1 of 'struct rtllib_authentication' is less than 2 [-Wpacked-not-aligned] 735 | } __packed; | ^ >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:740:1: warning: alignment 1 of 'struct rtllib_disauth' is less than 2 [-Wpacked-not-aligned] 740 | } __packed; | ^ >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:745:1: warning: alignment 1 of 'struct rtllib_disassoc' is less than 2 [-Wpacked-not-aligned] 745 | } __packed; | ^ >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:751:1: warning: alignment 1 of 'struct rtllib_probe_request' is less than 2 [-Wpacked-not-aligned] 751 | } __packed; | ^ >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:762:1: warning: alignment 1 of 'struct rtllib_probe_response' is less than 2 [-Wpacked-not-aligned] 762 | } __packed; | ^ >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:773:1: warning: alignment 1 of 'struct rtllib_assoc_request_frame' is less than 2 [-Wpacked-not-aligned] 773 | } __packed; | ^ >> drivers/staging/rtl8192e/rtl8192e/../rtllib.h:781:1: warning: alignment 1 of 'struct rtllib_assoc_response_frame' is less than 2 [-Wpacked-not-aligned] 781 | } __packed; | ^ vim +735 drivers/staging/rtl8192e/rtllib.h 94a799425eee82 Larry Finger 2011-08-23 727 94a799425eee82 Larry Finger 2011-08-23 728 struct rtllib_authentication { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 729 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 730 __le16 algorithm; 94a799425eee82 Larry Finger 2011-08-23 731 __le16 transaction; 94a799425eee82 Larry Finger 2011-08-23 732 __le16 status; 94a799425eee82 Larry Finger 2011-08-23 733 /*challenge*/ 5979afa2c4d1c8 Gustavo A. R. Silva 2020-02-20 734 struct rtllib_info_element info_element[]; 8567829a6cfe13 Larry Finger 2011-08-25 @735 } __packed; 94a799425eee82 Larry Finger 2011-08-23 736 94a799425eee82 Larry Finger 2011-08-23 737 struct rtllib_disauth { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 738 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 739 __le16 reason; 8567829a6cfe13 Larry Finger 2011-08-25 @740 } __packed; 94a799425eee82 Larry Finger 2011-08-23 741 94a799425eee82 Larry Finger 2011-08-23 742 struct rtllib_disassoc { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 743 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 744 __le16 reason; 8567829a6cfe13 Larry Finger 2011-08-25 @745 } __packed; 94a799425eee82 Larry Finger 2011-08-23 746 94a799425eee82 Larry Finger 2011-08-23 747 struct rtllib_probe_request { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 748 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 749 /* SSID, supported rates */ 5979afa2c4d1c8 Gustavo A. R. Silva 2020-02-20 750 struct rtllib_info_element info_element[]; 8567829a6cfe13 Larry Finger 2011-08-25 @751 } __packed; 94a799425eee82 Larry Finger 2011-08-23 752 94a799425eee82 Larry Finger 2011-08-23 753 struct rtllib_probe_response { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 754 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 755 u32 time_stamp[2]; 94a799425eee82 Larry Finger 2011-08-23 756 __le16 beacon_interval; 94a799425eee82 Larry Finger 2011-08-23 757 __le16 capability; 94a799425eee82 Larry Finger 2011-08-23 758 /* SSID, supported rates, FH params, DS params, 14b40d92881533 Mateusz Kulikowski 2015-04-01 759 * CF params, IBSS params, TIM (if beacon), RSN 14b40d92881533 Mateusz Kulikowski 2015-04-01 760 */ 5979afa2c4d1c8 Gustavo A. R. Silva 2020-02-20 761 struct rtllib_info_element info_element[]; 8567829a6cfe13 Larry Finger 2011-08-25 @762 } __packed; 94a799425eee82 Larry Finger 2011-08-23 763 94a799425eee82 Larry Finger 2011-08-23 764 /* Alias beacon for probe_response */ 94a799425eee82 Larry Finger 2011-08-23 765 #define rtllib_beacon rtllib_probe_response 94a799425eee82 Larry Finger 2011-08-23 766 94a799425eee82 Larry Finger 2011-08-23 767 struct rtllib_assoc_request_frame { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 768 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 769 __le16 capability; 94a799425eee82 Larry Finger 2011-08-23 770 __le16 listen_interval; 94a799425eee82 Larry Finger 2011-08-23 771 /* SSID, supported rates, RSN */ 5979afa2c4d1c8 Gustavo A. R. Silva 2020-02-20 772 struct rtllib_info_element info_element[]; 8567829a6cfe13 Larry Finger 2011-08-25 @773 } __packed; 94a799425eee82 Larry Finger 2011-08-23 774 94a799425eee82 Larry Finger 2011-08-23 775 struct rtllib_assoc_response_frame { 71ddc43ed7c712 Philipp Hortmann 2023-09-15 776 struct ieee80211_hdr_3addr header; 94a799425eee82 Larry Finger 2011-08-23 777 __le16 capability; 94a799425eee82 Larry Finger 2011-08-23 778 __le16 status; 94a799425eee82 Larry Finger 2011-08-23 779 __le16 aid; 5979afa2c4d1c8 Gustavo A. R. Silva 2020-02-20 780 struct rtllib_info_element info_element[]; /* supported rates */ 8567829a6cfe13 Larry Finger 2011-08-25 @781 } __packed; 94a799425eee82 Larry Finger 2011-08-23 782 :::::: The code at line 735 was first introduced by commit :::::: 8567829a6cfe13e2a8b366794fffa54e5fd06e9f staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XII :::::: TO: Larry Finger <Larry.Finger@xxxxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel