drivers/media/platform/imx-jpeg/mxc-jpeg.c:652:12: warning: taking address of packed member 'height' of class or structure 'mxc_jpeg_sof' may result in an unaligned pointer value
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40226a3d96ef8ab8980f032681c8bfd46d63874e
commit: 2db16c6ed72ce644d5639b3ed15e5817442db4ba media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder
date: 4 months ago
config: mips-randconfig-r004-20210714 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2db16c6ed72ce644d5639b3ed15e5817442db4ba
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/imx-jpeg/mxc-jpeg.c:652:12: warning: taking address of packed member 'height' of class or structure 'mxc_jpeg_sof' may result in an unaligned pointer value [-Waddress-of-packed-member]
_bswap16(&sof->height);
^~~~~~~~~~~
>> drivers/media/platform/imx-jpeg/mxc-jpeg.c:654:12: warning: taking address of packed member 'width' of class or structure 'mxc_jpeg_sof' may result in an unaligned pointer value [-Waddress-of-packed-member]
_bswap16(&sof->width);
^~~~~~~~~~
>> drivers/media/platform/imx-jpeg/mxc-jpeg.c:681:12: warning: taking address of packed member 'length' of class or structure 'mxc_jpeg_sof' may result in an unaligned pointer value [-Waddress-of-packed-member]
_bswap16(&sof->length);
^~~~~~~~~~~
>> drivers/media/platform/imx-jpeg/mxc-jpeg.c:713:12: warning: taking address of packed member 'length' of class or structure 'mxc_jpeg_sos' may result in an unaligned pointer value [-Waddress-of-packed-member]
_bswap16(&sos->length);
^~~~~~~~~~~
4 warnings generated.
vim +652 drivers/media/platform/imx-jpeg/mxc-jpeg.c
643
644 static int mxc_jpeg_fixup_sof(struct mxc_jpeg_sof *sof,
645 u32 fourcc,
646 u16 w, u16 h)
647 {
648 int sof_length;
649
650 sof->precision = 8; /* TODO allow 8/12 bit precision*/
651 sof->height = h;
> 652 _bswap16(&sof->height);
653 sof->width = w;
> 654 _bswap16(&sof->width);
655
656 switch (fourcc) {
657 case V4L2_PIX_FMT_NV12:
658 sof->components_no = 3;
659 sof->comp[0].v = 0x2;
660 sof->comp[0].h = 0x2;
661 break;
662 case V4L2_PIX_FMT_YUYV:
663 sof->components_no = 3;
664 sof->comp[0].v = 0x1;
665 sof->comp[0].h = 0x2;
666 break;
667 case V4L2_PIX_FMT_YUV24:
668 case V4L2_PIX_FMT_RGB24:
669 default:
670 sof->components_no = 3;
671 break;
672 case V4L2_PIX_FMT_ARGB32:
673 sof->components_no = 4;
674 break;
675 case V4L2_PIX_FMT_GREY:
676 sof->components_no = 1;
677 break;
678 }
679 sof_length = 8 + 3 * sof->components_no;
680 sof->length = sof_length;
> 681 _bswap16(&sof->length);
682
683 return sof_length; /* not swaped */
684 }
685
686 static int mxc_jpeg_fixup_sos(struct mxc_jpeg_sos *sos,
687 u32 fourcc)
688 {
689 int sos_length;
690 u8 *sof_u8 = (u8 *)sos;
691
692 switch (fourcc) {
693 case V4L2_PIX_FMT_NV12:
694 sos->components_no = 3;
695 break;
696 case V4L2_PIX_FMT_YUYV:
697 sos->components_no = 3;
698 break;
699 case V4L2_PIX_FMT_YUV24:
700 case V4L2_PIX_FMT_RGB24:
701 default:
702 sos->components_no = 3;
703 break;
704 case V4L2_PIX_FMT_ARGB32:
705 sos->components_no = 4;
706 break;
707 case V4L2_PIX_FMT_GREY:
708 sos->components_no = 1;
709 break;
710 }
711 sos_length = 6 + 2 * sos->components_no;
712 sos->length = sos_length;
> 713 _bswap16(&sos->length);
714
715 /* SOS ignorable bytes, not so ignorable after all */
716 sof_u8[sos_length - 1] = 0x0;
717 sof_u8[sos_length - 2] = 0x3f;
718 sof_u8[sos_length - 3] = 0x0;
719
720 return sos_length; /* not swaped */
721 }
722
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[hyperv-linux:hyperv-next 3/5] ld: mshyperv.c:undefined reference to `hv_root_partition'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git hyperv-next
head: 0d9f8d427756841b79df5da8bed98dc113299637
commit: 325d7a85e1ea52c5ca82b246c332e08939b085df [3/5] Drivers: hv: Make portions of Hyper-V init code be arch neutral
config: x86_64-randconfig-c002-20210713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git/commit/?...
git remote add hyperv-linux https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
git fetch --no-tags hyperv-linux hyperv-next
git checkout 325d7a85e1ea52c5ca82b246c332e08939b085df
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/kernel/cpu/mshyperv.o: in function `ms_hyperv_init_platform':
mshyperv.c:(.init.text+0x130): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x147): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x153): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x15e): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x16c): undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.o:mshyperv.c:(.init.text+0x17b): more undefined references to `ms_hyperv' follow
ld: arch/x86/kernel/cpu/mshyperv.o: in function `ms_hyperv_init_platform':
mshyperv.c:(.init.text+0x25d): undefined reference to `hv_root_partition'
>> ld: mshyperv.c:(.init.text+0x26f): undefined reference to `hv_root_partition'
ld: mshyperv.c:(.init.text+0x2d6): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x2e1): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x2eb): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x2f6): undefined reference to `ms_hyperv'
ld: mshyperv.c:(.init.text+0x32e): undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.o:mshyperv.c:(.init.text+0x339): more undefined references to `ms_hyperv' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[hyperv-linux:hyperv-next 3/5] arch/x86/kernel/cpu/mshyperv.c:262: undefined reference to `ms_hyperv'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git hyperv-next
head: 0d9f8d427756841b79df5da8bed98dc113299637
commit: 325d7a85e1ea52c5ca82b246c332e08939b085df [3/5] Drivers: hv: Make portions of Hyper-V init code be arch neutral
config: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git/commit/?...
git remote add hyperv-linux https://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
git fetch --no-tags hyperv-linux hyperv-next
git checkout 325d7a85e1ea52c5ca82b246c332e08939b085df
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/kernel/cpu/mshyperv.o: in function `ms_hyperv_init_platform':
>> arch/x86/kernel/cpu/mshyperv.c:262: undefined reference to `ms_hyperv'
>> ld: arch/x86/kernel/cpu/mshyperv.c:263: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:264: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:265: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:269: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.o:arch/x86/kernel/cpu/mshyperv.c:269: more undefined references to `ms_hyperv' follow
ld: arch/x86/kernel/cpu/mshyperv.o: in function `ms_hyperv_init_platform':
>> arch/x86/kernel/cpu/mshyperv.c:291: undefined reference to `hv_root_partition'
ld: arch/x86/kernel/cpu/mshyperv.c:310: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:310: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:316: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:317: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.c:320: undefined reference to `ms_hyperv'
ld: arch/x86/kernel/cpu/mshyperv.o:arch/x86/kernel/cpu/mshyperv.c:318: more undefined references to `ms_hyperv' follow
vim +262 arch/x86/kernel/cpu/mshyperv.c
f7c0f50f1857c1 Andrea Parri 2019-10-15 258
a2a47c6c3d1a7c Ky Srinivasan 2010-05-06 259 /*
e08cae4181af94 H. Peter Anvin 2010-05-07 260 * Extract the features and hints
a2a47c6c3d1a7c Ky Srinivasan 2010-05-06 261 */
e08cae4181af94 H. Peter Anvin 2010-05-07 @262 ms_hyperv.features = cpuid_eax(HYPERV_CPUID_FEATURES);
6dc2a774cb4fdb Sunil Muthuswamy 2021-03-23 @263 ms_hyperv.priv_high = cpuid_ebx(HYPERV_CPUID_FEATURES);
cc2dd4027a43bb Denis V. Lunev 2015-08-01 264 ms_hyperv.misc_features = cpuid_edx(HYPERV_CPUID_FEATURES);
e08cae4181af94 H. Peter Anvin 2010-05-07 265 ms_hyperv.hints = cpuid_eax(HYPERV_CPUID_ENLIGHTMENT_INFO);
a2a47c6c3d1a7c Ky Srinivasan 2010-05-06 266
a6c776a952175e Vineeth Pillai 2021-06-03 267 hv_max_functions_eax = cpuid_eax(HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS);
a6c776a952175e Vineeth Pillai 2021-06-03 268
6dc2a774cb4fdb Sunil Muthuswamy 2021-03-23 269 pr_info("Hyper-V: privilege flags low 0x%x, high 0x%x, hints 0x%x, misc 0x%x\n",
6dc2a774cb4fdb Sunil Muthuswamy 2021-03-23 270 ms_hyperv.features, ms_hyperv.priv_high, ms_hyperv.hints,
6dc2a774cb4fdb Sunil Muthuswamy 2021-03-23 271 ms_hyperv.misc_features);
6f4151c89b7d03 K. Y. Srinivasan 2011-09-07 272
415bd1cd3a4289 Vitaly Kuznetsov 2018-03-20 273 ms_hyperv.max_vp_index = cpuid_eax(HYPERV_CPUID_IMPLEMENT_LIMITS);
415bd1cd3a4289 Vitaly Kuznetsov 2018-03-20 274 ms_hyperv.max_lp_index = cpuid_ebx(HYPERV_CPUID_IMPLEMENT_LIMITS);
dd018597a074bc Vitaly Kuznetsov 2017-06-25 275
dd018597a074bc Vitaly Kuznetsov 2017-06-25 276 pr_debug("Hyper-V: max %u virtual processors, %u logical processors\n",
dd018597a074bc Vitaly Kuznetsov 2017-06-25 277 ms_hyperv.max_vp_index, ms_hyperv.max_lp_index);
dd018597a074bc Vitaly Kuznetsov 2017-06-25 278
e997720202b363 Wei Liu 2021-02-03 279 /*
e997720202b363 Wei Liu 2021-02-03 280 * Check CPU management privilege.
e997720202b363 Wei Liu 2021-02-03 281 *
e997720202b363 Wei Liu 2021-02-03 282 * To mirror what Windows does we should extract CPU management
e997720202b363 Wei Liu 2021-02-03 283 * features and use the ReservedIdentityBit to detect if Linux is the
e997720202b363 Wei Liu 2021-02-03 284 * root partition. But that requires negotiating CPU management
e997720202b363 Wei Liu 2021-02-03 285 * interface (a process to be finalized).
e997720202b363 Wei Liu 2021-02-03 286 *
e997720202b363 Wei Liu 2021-02-03 287 * For now, use the privilege flag as the indicator for running as
e997720202b363 Wei Liu 2021-02-03 288 * root.
e997720202b363 Wei Liu 2021-02-03 289 */
e997720202b363 Wei Liu 2021-02-03 290 if (cpuid_ebx(HYPERV_CPUID_FEATURES) & HV_CPU_MANAGEMENT) {
e997720202b363 Wei Liu 2021-02-03 @291 hv_root_partition = true;
e997720202b363 Wei Liu 2021-02-03 292 pr_info("Hyper-V: running as root partition\n");
e997720202b363 Wei Liu 2021-02-03 293 }
e997720202b363 Wei Liu 2021-02-03 294
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 295 /*
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 296 * Extract host information.
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 297 */
a6c776a952175e Vineeth Pillai 2021-06-03 298 if (hv_max_functions_eax >= HYPERV_CPUID_VERSION) {
415bd1cd3a4289 Vitaly Kuznetsov 2018-03-20 299 hv_host_info_eax = cpuid_eax(HYPERV_CPUID_VERSION);
415bd1cd3a4289 Vitaly Kuznetsov 2018-03-20 300 hv_host_info_ebx = cpuid_ebx(HYPERV_CPUID_VERSION);
415bd1cd3a4289 Vitaly Kuznetsov 2018-03-20 301 hv_host_info_ecx = cpuid_ecx(HYPERV_CPUID_VERSION);
415bd1cd3a4289 Vitaly Kuznetsov 2018-03-20 302 hv_host_info_edx = cpuid_edx(HYPERV_CPUID_VERSION);
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 303
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 304 pr_info("Hyper-V Host Build:%d-%d.%d-%d-%d.%d\n",
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 305 hv_host_info_eax, hv_host_info_ebx >> 16,
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 306 hv_host_info_ebx & 0xFFFF, hv_host_info_ecx,
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 307 hv_host_info_edx >> 24, hv_host_info_edx & 0xFFFFFF);
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 308 }
8de8af7e0873c4 K. Y. Srinivasan 2017-01-19 309
e1471463180ddc Joseph Salisbury 2020-09-26 310 if (ms_hyperv.features & HV_ACCESS_FREQUENCY_MSRS &&
71c2a2d0a81f09 Vitaly Kuznetsov 2017-06-22 311 ms_hyperv.misc_features & HV_FEATURE_FREQUENCY_MSRS_AVAILABLE) {
71c2a2d0a81f09 Vitaly Kuznetsov 2017-06-22 312 x86_platform.calibrate_tsc = hv_get_tsc_khz;
71c2a2d0a81f09 Vitaly Kuznetsov 2017-06-22 313 x86_platform.calibrate_cpu = hv_get_tsc_khz;
71c2a2d0a81f09 Vitaly Kuznetsov 2017-06-22 314 }
71c2a2d0a81f09 Vitaly Kuznetsov 2017-06-22 315
6dc2a774cb4fdb Sunil Muthuswamy 2021-03-23 316 if (ms_hyperv.priv_high & HV_ISOLATION) {
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 317) ms_hyperv.isolation_config_a = cpuid_eax(HYPERV_CPUID_ISOLATION_CONFIG);
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 318) ms_hyperv.isolation_config_b = cpuid_ebx(HYPERV_CPUID_ISOLATION_CONFIG);
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 319)
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 320) pr_info("Hyper-V: Isolation Config: Group A 0x%x, Group B 0x%x\n",
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 321) ms_hyperv.isolation_config_a, ms_hyperv.isolation_config_b);
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 322) }
a6c76bb08dc7f7 Andrea Parri (Microsoft 2021-02-01 323)
a6c776a952175e Vineeth Pillai 2021-06-03 324 if (hv_max_functions_eax >= HYPERV_CPUID_NESTED_FEATURES) {
5431390b303962 Vitaly Kuznetsov 2018-03-20 325 ms_hyperv.nested_features =
5431390b303962 Vitaly Kuznetsov 2018-03-20 326 cpuid_eax(HYPERV_CPUID_NESTED_FEATURES);
a6c776a952175e Vineeth Pillai 2021-06-03 327 pr_info("Hyper-V: Nested features: 0x%x\n",
a6c776a952175e Vineeth Pillai 2021-06-03 328 ms_hyperv.nested_features);
5431390b303962 Vitaly Kuznetsov 2018-03-20 329 }
5431390b303962 Vitaly Kuznetsov 2018-03-20 330
a11589563e96bf Tianyu Lan 2020-04-06 331 /*
a11589563e96bf Tianyu Lan 2020-04-06 332 * Hyper-V expects to get crash register data or kmsg when
a11589563e96bf Tianyu Lan 2020-04-06 333 * crash enlightment is available and system crashes. Set
a11589563e96bf Tianyu Lan 2020-04-06 334 * crash_kexec_post_notifiers to be true to make sure that
a11589563e96bf Tianyu Lan 2020-04-06 335 * calling crash enlightment interface before running kdump
a11589563e96bf Tianyu Lan 2020-04-06 336 * kernel.
a11589563e96bf Tianyu Lan 2020-04-06 337 */
a11589563e96bf Tianyu Lan 2020-04-06 338 if (ms_hyperv.misc_features & HV_FEATURE_GUEST_CRASH_MSR_AVAILABLE)
a11589563e96bf Tianyu Lan 2020-04-06 339 crash_kexec_post_notifiers = true;
a11589563e96bf Tianyu Lan 2020-04-06 340
:::::: The code at line 262 was first introduced by commit
:::::: e08cae4181af9483b04ecfac48f01c8e5a5f27bf x86: Clean up the hypervisor layer
:::::: TO: H. Peter Anvin <hpa(a)zytor.com>
:::::: CC: H. Peter Anvin <hpa(a)zytor.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40226a3d96ef8ab8980f032681c8bfd46d63874e
commit: c368362c36d3d4cedbc9a1c9caa95960912cc429 mt76: fix iv and CCMP header insertion
date: 4 weeks ago
config: i386-randconfig-s002-20210714 (attached as .config)
compiler: gcc-10 (Debian 10.2.1-6) 10.2.1 20210110
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c368362c36d3d4cedbc9a1c9caa95960912cc429
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c: In function 'mt7915_mcu_get_cipher':
>> drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type' [-Wenum-conversion]
114 | return MT_CIPHER_NONE;
| ^~~~~~~~~~~~~~
vim +114 drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
c336318f57a92d Ryder Lee 2020-04-25 90
c368362c36d3d4 Ryder Lee 2021-06-17 91 static enum mcu_cipher_type
e57b7901469fc0 Ryder Lee 2020-04-25 92 mt7915_mcu_get_cipher(int cipher)
e57b7901469fc0 Ryder Lee 2020-04-25 93 {
e57b7901469fc0 Ryder Lee 2020-04-25 94 switch (cipher) {
e57b7901469fc0 Ryder Lee 2020-04-25 95 case WLAN_CIPHER_SUITE_WEP40:
c368362c36d3d4 Ryder Lee 2021-06-17 96 return MCU_CIPHER_WEP40;
e57b7901469fc0 Ryder Lee 2020-04-25 97 case WLAN_CIPHER_SUITE_WEP104:
c368362c36d3d4 Ryder Lee 2021-06-17 98 return MCU_CIPHER_WEP104;
e57b7901469fc0 Ryder Lee 2020-04-25 99 case WLAN_CIPHER_SUITE_TKIP:
c368362c36d3d4 Ryder Lee 2021-06-17 100 return MCU_CIPHER_TKIP;
e57b7901469fc0 Ryder Lee 2020-04-25 101 case WLAN_CIPHER_SUITE_AES_CMAC:
c368362c36d3d4 Ryder Lee 2021-06-17 102 return MCU_CIPHER_BIP_CMAC_128;
e57b7901469fc0 Ryder Lee 2020-04-25 103 case WLAN_CIPHER_SUITE_CCMP:
c368362c36d3d4 Ryder Lee 2021-06-17 104 return MCU_CIPHER_AES_CCMP;
e57b7901469fc0 Ryder Lee 2020-04-25 105 case WLAN_CIPHER_SUITE_CCMP_256:
c368362c36d3d4 Ryder Lee 2021-06-17 106 return MCU_CIPHER_CCMP_256;
e57b7901469fc0 Ryder Lee 2020-04-25 107 case WLAN_CIPHER_SUITE_GCMP:
c368362c36d3d4 Ryder Lee 2021-06-17 108 return MCU_CIPHER_GCMP;
e57b7901469fc0 Ryder Lee 2020-04-25 109 case WLAN_CIPHER_SUITE_GCMP_256:
c368362c36d3d4 Ryder Lee 2021-06-17 110 return MCU_CIPHER_GCMP_256;
e57b7901469fc0 Ryder Lee 2020-04-25 111 case WLAN_CIPHER_SUITE_SMS4:
c368362c36d3d4 Ryder Lee 2021-06-17 112 return MCU_CIPHER_WAPI;
e57b7901469fc0 Ryder Lee 2020-04-25 113 default:
e57b7901469fc0 Ryder Lee 2020-04-25 @114 return MT_CIPHER_NONE;
e57b7901469fc0 Ryder Lee 2020-04-25 115 }
e57b7901469fc0 Ryder Lee 2020-04-25 116 }
e57b7901469fc0 Ryder Lee 2020-04-25 117
:::::: The code at line 114 was first introduced by commit
:::::: e57b7901469fc0b021930b83a8094baaf3d81b09 mt76: add mac80211 driver for MT7915 PCIe-based chipsets
:::::: TO: Ryder Lee <ryder.lee(a)mediatek.com>
:::::: CC: Felix Fietkau <nbd(a)nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40226a3d96ef8ab8980f032681c8bfd46d63874e
commit: c368362c36d3d4cedbc9a1c9caa95960912cc429 mt76: fix iv and CCMP header insertion
date: 4 weeks ago
config: i386-allyesconfig (attached as .config)
compiler: gcc-10 (Debian 10.2.1-6) 10.2.1 20210110
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c368362c36d3d4cedbc9a1c9caa95960912cc429
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c: In function 'mt7921_mcu_get_cipher':
>> drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type' [-Wenum-conversion]
114 | return MT_CIPHER_NONE;
| ^~~~~~~~~~~~~~
vim +114 drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1c099ab44727c8 Sean Wang 2021-01-28 90
c368362c36d3d4 Ryder Lee 2021-06-17 91 static enum mcu_cipher_type
1c099ab44727c8 Sean Wang 2021-01-28 92 mt7921_mcu_get_cipher(int cipher)
1c099ab44727c8 Sean Wang 2021-01-28 93 {
1c099ab44727c8 Sean Wang 2021-01-28 94 switch (cipher) {
1c099ab44727c8 Sean Wang 2021-01-28 95 case WLAN_CIPHER_SUITE_WEP40:
c368362c36d3d4 Ryder Lee 2021-06-17 96 return MCU_CIPHER_WEP40;
1c099ab44727c8 Sean Wang 2021-01-28 97 case WLAN_CIPHER_SUITE_WEP104:
c368362c36d3d4 Ryder Lee 2021-06-17 98 return MCU_CIPHER_WEP104;
1c099ab44727c8 Sean Wang 2021-01-28 99 case WLAN_CIPHER_SUITE_TKIP:
c368362c36d3d4 Ryder Lee 2021-06-17 100 return MCU_CIPHER_TKIP;
1c099ab44727c8 Sean Wang 2021-01-28 101 case WLAN_CIPHER_SUITE_AES_CMAC:
c368362c36d3d4 Ryder Lee 2021-06-17 102 return MCU_CIPHER_BIP_CMAC_128;
1c099ab44727c8 Sean Wang 2021-01-28 103 case WLAN_CIPHER_SUITE_CCMP:
c368362c36d3d4 Ryder Lee 2021-06-17 104 return MCU_CIPHER_AES_CCMP;
1c099ab44727c8 Sean Wang 2021-01-28 105 case WLAN_CIPHER_SUITE_CCMP_256:
c368362c36d3d4 Ryder Lee 2021-06-17 106 return MCU_CIPHER_CCMP_256;
1c099ab44727c8 Sean Wang 2021-01-28 107 case WLAN_CIPHER_SUITE_GCMP:
c368362c36d3d4 Ryder Lee 2021-06-17 108 return MCU_CIPHER_GCMP;
1c099ab44727c8 Sean Wang 2021-01-28 109 case WLAN_CIPHER_SUITE_GCMP_256:
c368362c36d3d4 Ryder Lee 2021-06-17 110 return MCU_CIPHER_GCMP_256;
1c099ab44727c8 Sean Wang 2021-01-28 111 case WLAN_CIPHER_SUITE_SMS4:
c368362c36d3d4 Ryder Lee 2021-06-17 112 return MCU_CIPHER_WAPI;
1c099ab44727c8 Sean Wang 2021-01-28 113 default:
1c099ab44727c8 Sean Wang 2021-01-28 @114 return MT_CIPHER_NONE;
1c099ab44727c8 Sean Wang 2021-01-28 115 }
1c099ab44727c8 Sean Wang 2021-01-28 116 }
1c099ab44727c8 Sean Wang 2021-01-28 117
:::::: The code at line 114 was first introduced by commit
:::::: 1c099ab44727c8e42fe4de4d91b53cec3ef02860 mt76: mt7921: add MCU support
:::::: TO: Sean Wang <sean.wang(a)mediatek.com>
:::::: CC: Felix Fietkau <nbd(a)nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH rfc v5 2/4] page_pool: add interface to manipulate frag count in page pool
by kernel test robot
Hi Yunsheng,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on net/master linus/master v5.14-rc1 next-20210714]
[cannot apply to sparc-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Yunsheng-Lin/add-frag-page-suppo...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5e437416ff66981d8154687cfdf7de50b1d82bfc
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/247943d70c2069ca3fa3a272f3eb26b46...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yunsheng-Lin/add-frag-page-support-in-page-pool/20210714-173612
git checkout 247943d70c2069ca3fa3a272f3eb26b463e17f4d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/skbuff.h:40,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from arch/sparc/kernel/idprom.c:13:
include/net/page_pool.h: In function 'page_pool_get_dma_addr':
>> include/net/page_pool.h:209:7: error: left shift count >= width of type [-Werror=shift-count-overflow]
209 | ret <<= 32;
| ^~~
include/net/page_pool.h: In function 'page_pool_set_dma_addr':
>> include/net/page_pool.h:220:8: error: right shift count >= width of type [-Werror=shift-count-overflow]
220 | addr >>= 32;
| ^~~
cc1: all warnings being treated as errors
vim +209 include/net/page_pool.h
200
201 #define PAGE_POOL_DMA_USE_PP_FRAG_COUNT \
202 (sizeof(dma_addr_t) > sizeof(unsigned long))
203
204 static inline dma_addr_t page_pool_get_dma_addr(struct page *page)
205 {
206 dma_addr_t ret = page->dma_addr;
207
208 if (PAGE_POOL_DMA_USE_PP_FRAG_COUNT) {
> 209 ret <<= 32;
210 ret |= atomic_long_read(&page->pp_frag_count) & PAGE_MASK;
211 }
212
213 return ret;
214 }
215
216 static inline void page_pool_set_dma_addr(struct page *page, dma_addr_t addr)
217 {
218 if (PAGE_POOL_DMA_USE_PP_FRAG_COUNT) {
219 atomic_long_set(&page->pp_frag_count, addr & PAGE_MASK);
> 220 addr >>= 32;
221 }
222
223 page->dma_addr = addr;
224 }
225
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH 1/3] base: remove unused variable 'no_warn'
by kernel test robot
Hi Bill,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on scsi/for-next]
[also build test WARNING on linux/master driver-core/driver-core-testing mkp-scsi/for-next ipvs/master linus/master v5.14-rc1 next-20210714]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Bill-Wendling/Fix-clang-Wunused-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: powerpc-redwood_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/f6c4b007fc8c907719d883faae424f2cf...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bill-Wendling/Fix-clang-Wunused-but-set-variable-warnings/20210714-172029
git checkout f6c4b007fc8c907719d883faae424f2cf3bb100c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/base/module.c: In function 'module_add_driver':
>> drivers/base/module.c:61:2: warning: ignoring return value of 'sysfs_create_link', declared with attribute warn_unused_result [-Wunused-result]
61 | sysfs_create_link(&drv->p->kobj, &mk->kobj, "module");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/module.c:65:3: warning: ignoring return value of 'sysfs_create_link', declared with attribute warn_unused_result [-Wunused-result]
65 | sysfs_create_link(mk->drivers_dir, &drv->p->kobj, driver_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/sysfs_create_link +61 drivers/base/module.c
32
33 void module_add_driver(struct module *mod, struct device_driver *drv)
34 {
35 char *driver_name;
36 struct module_kobject *mk = NULL;
37
38 if (!drv)
39 return;
40
41 if (mod)
42 mk = &mod->mkobj;
43 else if (drv->mod_name) {
44 struct kobject *mkobj;
45
46 /* Lookup built-in module entry in /sys/modules */
47 mkobj = kset_find_obj(module_kset, drv->mod_name);
48 if (mkobj) {
49 mk = container_of(mkobj, struct module_kobject, kobj);
50 /* remember our module structure */
51 drv->p->mkobj = mk;
52 /* kset_find_obj took a reference */
53 kobject_put(mkobj);
54 }
55 }
56
57 if (!mk)
58 return;
59
60 /* Don't check return codes; these calls are idempotent */
> 61 sysfs_create_link(&drv->p->kobj, &mk->kobj, "module");
62 driver_name = make_driver_name(drv);
63 if (driver_name) {
64 module_create_drivers_dir(mk);
65 sysfs_create_link(mk->drivers_dir, &drv->p->kobj, driver_name);
66 kfree(driver_name);
67 }
68 }
69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH 1/3] Bluetooth: hci_h5: add WAKEUP_DISABLE flag
by kernel test robot
Hi Archie,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on next-20210714]
[cannot apply to bluetooth/master v5.14-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Archie-Pusaka/Bluetooth-hci_h5-a...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/865118c4aaa9efbd4776dee71bf3a1a26...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Archie-Pusaka/Bluetooth-hci_h5-add-WAKEUP_DISABLE-flag/20210714-151525
git checkout 865118c4aaa9efbd4776dee71bf3a1a263a6571e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/bluetooth/hci_h5.c: In function 'h5_serdev_probe':
>> drivers/bluetooth/hci_h5.c:804:18: warning: variable 'hdev' set but not used [-Wunused-but-set-variable]
804 | struct hci_dev *hdev;
| ^~~~
vim +/hdev +804 drivers/bluetooth/hci_h5.c
799
800 static int h5_serdev_probe(struct serdev_device *serdev)
801 {
802 struct device *dev = &serdev->dev;
803 struct h5 *h5;
> 804 struct hci_dev *hdev;
805 const struct h5_device_data *data;
806 int err;
807
808 h5 = devm_kzalloc(dev, sizeof(*h5), GFP_KERNEL);
809 if (!h5)
810 return -ENOMEM;
811
812 h5->hu = &h5->serdev_hu;
813 h5->serdev_hu.serdev = serdev;
814 serdev_device_set_drvdata(serdev, h5);
815
816 if (has_acpi_companion(dev)) {
817 const struct acpi_device_id *match;
818
819 match = acpi_match_device(dev->driver->acpi_match_table, dev);
820 if (!match)
821 return -ENODEV;
822
823 data = (const struct h5_device_data *)match->driver_data;
824 h5->vnd = data->vnd;
825 h5->id = (char *)match->id;
826
827 if (h5->vnd->acpi_gpio_map)
828 devm_acpi_dev_add_driver_gpios(dev,
829 h5->vnd->acpi_gpio_map);
830 } else {
831 data = of_device_get_match_data(dev);
832 if (!data)
833 return -ENODEV;
834
835 h5->vnd = data->vnd;
836 }
837
838
839 h5->enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_LOW);
840 if (IS_ERR(h5->enable_gpio))
841 return PTR_ERR(h5->enable_gpio);
842
843 h5->device_wake_gpio = devm_gpiod_get_optional(dev, "device-wake",
844 GPIOD_OUT_LOW);
845 if (IS_ERR(h5->device_wake_gpio))
846 return PTR_ERR(h5->device_wake_gpio);
847
848 err = hci_uart_register_device(&h5->serdev_hu, &h5p);
849 if (err)
850 return err;
851
852 hdev = h5->serdev_hu.hdev;
853
854 if (data->driver_info & H5_INFO_WAKEUP_DISABLE)
855 set_bit(H5_WAKEUP_DISABLE, &h5->flags);
856
857 return 0;
858 }
859
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v9 08/17] virtio_config: Add a return value to reset function
by kernel test robot
Hi Xie,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on vhost/linux-next]
[also build test ERROR on iommu/next uml/linux-next s390/features linus/master v5.14-rc1 next-20210714]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xie-Yongji/Introduce-VDUSE-vDPA-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/ade2af66f29301fe5d897bfddfabc27f5...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xie-Yongji/Introduce-VDUSE-vDPA-Device-in-Userspace/20210713-165009
git checkout ade2af66f29301fe5d897bfddfabc27f5f5cd678
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/virtio/virtio_mmio.c:537:12: error: initialization of 'int (*)(struct virtio_device *)' from incompatible pointer type 'void (*)(struct virtio_device *)' [-Werror=incompatible-pointer-types]
537 | .reset = vm_reset,
| ^~~~~~~~
drivers/virtio/virtio_mmio.c:537:12: note: (near initialization for 'virtio_mmio_config_ops.reset')
cc1: some warnings being treated as errors
vim +537 drivers/virtio/virtio_mmio.c
38e895487afc2e Sebastien Boeuf 2020-08-19 530
9350393239153c Stephen Hemminger 2013-02-10 531 static const struct virtio_config_ops virtio_mmio_config_ops = {
edfd52e6367270 Pawel Moll 2011-10-24 532 .get = vm_get,
edfd52e6367270 Pawel Moll 2011-10-24 533 .set = vm_set,
87e7bf1450c9f6 Michael S. Tsirkin 2015-03-12 534 .generation = vm_generation,
edfd52e6367270 Pawel Moll 2011-10-24 535 .get_status = vm_get_status,
edfd52e6367270 Pawel Moll 2011-10-24 536 .set_status = vm_set_status,
edfd52e6367270 Pawel Moll 2011-10-24 @537 .reset = vm_reset,
edfd52e6367270 Pawel Moll 2011-10-24 538 .find_vqs = vm_find_vqs,
edfd52e6367270 Pawel Moll 2011-10-24 539 .del_vqs = vm_del_vqs,
edfd52e6367270 Pawel Moll 2011-10-24 540 .get_features = vm_get_features,
edfd52e6367270 Pawel Moll 2011-10-24 541 .finalize_features = vm_finalize_features,
66846048f55c6c Rick Jones 2011-11-14 542 .bus_name = vm_bus_name,
38e895487afc2e Sebastien Boeuf 2020-08-19 543 .get_shm_region = vm_get_shm_region,
edfd52e6367270 Pawel Moll 2011-10-24 544 };
edfd52e6367270 Pawel Moll 2011-10-24 545
edfd52e6367270 Pawel Moll 2011-10-24 546
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months