lkml.org 
[lkml]   [2018]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next] ASoC: Intel: remove set but not used variable 'stage_type'
Hi YueHaibing,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20181224]

url: https://github.com/0day-ci/linux/commits/YueHaibing/ASoC-Intel-remove-set-but-not-used-variable-stage_type/20181225-195025
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

arch/x86/kvm/vmx/nested.c:58:6: warning: symbol 'init_vmcs_shadow_fields' was not declared. Should it be static?
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (110011 becomes 11)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100790 becomes 790)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100790 becomes 790)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a000a becomes a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100490 becomes 490)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100310 becomes 310)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80a08 becomes a08)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80688 becomes 688)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80608 becomes 608)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80108 becomes 108)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80388 becomes 388)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100390 becomes 390)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80208 becomes 208)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80288 becomes 288)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a000a becomes a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100010 becomes 10)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80488 becomes 488)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100710 becomes 710)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100090 becomes 90)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20402 becomes 402)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80508 becomes 508)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80b88 becomes b88)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100790 becomes 790)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100490 becomes 490)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100310 becomes 310)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20482 becomes 482)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100590 becomes 590)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100610 becomes 610)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100690 becomes 690)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120912 becomes 912)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100590 becomes 590)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20002 becomes 2)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20082 becomes 82)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20102 becomes 102)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20182 becomes 182)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20202 becomes 202)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20282 becomes 282)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20302 becomes 302)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (20382 becomes 382)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120012 becomes 12)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120092 becomes 92)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120112 becomes 112)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120192 becomes 192)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120212 becomes 212)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120292 becomes 292)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120312 becomes 312)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120392 becomes 392)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120412 becomes 412)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120492 becomes 492)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120512 becomes 512)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120692 becomes 692)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120712 becomes 712)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120792 becomes 792)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120812 becomes 812)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120892 becomes 892)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a019a becomes 19a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a021a becomes 21a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a029a becomes 29a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a031a becomes 31a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a039a becomes 39a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a041a becomes 41a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a049a becomes 49a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a051a becomes 51a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a059a becomes 59a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a061a becomes 61a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120a92 becomes a92)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a089a becomes 89a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a091a becomes 91a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a099a becomes 99a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a028a becomes 28a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a030a becomes 30a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a038a becomes 38a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a040a becomes 40a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80b08 becomes b08)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100190 becomes 190)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100210 becomes 210)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80708 becomes 708)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80788 becomes 788)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80808 becomes 808)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80888 becomes 888)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100410 becomes 410)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100510 becomes 510)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120592 becomes 592)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (120612 becomes 612)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a008a becomes 8a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a008a becomes 8a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (180018 becomes 18)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a010a becomes 10a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (a010a becomes 10a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80408 becomes 408)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (80c88 becomes c88)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (180118 becomes 118)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (180198 becomes 198)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100410 becomes 410)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (100510 becomes 510)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1a081a becomes 81a)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1b009b becomes 9b)
>> arch/x86/kvm/vmx/evmcs.h:80:30: warning: cast truncates bits from constant value (1b011b becomes 11b)
arch/x86/kvm/vmx/evmcs.h:80:30: warning: too many warnings

vim +80 arch/x86/kvm/vmx/evmcs.h

75edce8a arch/x86/kvm/vmx/evmcs.h Sean Christopherson 2018-12-03 76
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 77 static __always_inline int get_evmcs_offset(unsigned long field,
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 78 u16 *clean_field)
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 79 {
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 @80 unsigned int index = ROL16(field, 6);
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 81 const struct evmcs_field *evmcs_field;
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 82
75edce8a arch/x86/kvm/vmx/evmcs.h Sean Christopherson 2018-12-03 83 if (unlikely(index >= nr_evmcs_1_fields)) {
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 84 WARN_ONCE(1, "KVM: accessing unsupported EVMCS field %lx\n",
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 85 field);
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 86 return -ENOENT;
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 87 }
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 88
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 89 evmcs_field = &vmcs_field_to_evmcs_1[index];
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 90
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 91 if (clean_field)
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 92 *clean_field = evmcs_field->clean_field;
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 93
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 94 return evmcs_field->offset;
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 95 }
773e8a04 arch/x86/kvm/vmx_evmcs.h Vitaly Kuznetsov 2018-03-20 96

:::::: The code at line 80 was first introduced by commit
:::::: 773e8a0425c923bc02668a2d6534a5ef5a43cc69 x86/kvm: use Enlightened VMCS when running on Hyper-V

:::::: TO: Vitaly Kuznetsov <vkuznets@redhat.com>
:::::: CC: Radim Krčmář <rkrcmar@redhat.com>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2018-12-25 16:01    [W:0.032 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site