[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201706020221.wKpGDQih%fengguang.wu@intel.com>
Date: Fri, 2 Jun 2017 02:59:22 +0800
From: kbuild test robot <lkp@...el.com>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: kbuild-all@...org, Thomas Gleixner <tglx@...utronix.de>,
Marc Zyngier <marc.zyngier@....com>,
Jonathan Corbet <corbet@....net>, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, Bartosz Golaszewski <brgl@...ev.pl>
Subject: Re: [PATCH 1/5] irq: generic-chip: provide irq_free_generic_chip()
Hi Bartosz,
[auto build test WARNING on linus/master]
[also build test WARNING on v4.12-rc3 next-20170601]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Bartosz-Golaszewski/irq-generic-chip-resource-management-improvements/20170601-055423
config: x86_64-randconfig-n0-06011738 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/linux/kasan.h:16:0,
from include/linux/slab.h:120,
from include/linux/irq.h:25,
from arch/x86/include/asm/hardirq.h:5,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from arch/x86/include/asm/mshyperv.h:5,
from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:20,
from arch/x86/entry/vdso/vdso32/vclock_gettime.c:32:
arch/x86/include/asm/pgtable.h: In function 'pte_flags_pkey':
>> arch/x86/include/asm/pgtable.h:1182:2: warning: left shift count >= width of type [enabled by default]
return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
^
>> arch/x86/include/asm/pgtable.h:1182:2: warning: left shift count >= width of type [enabled by default]
>> arch/x86/include/asm/pgtable.h:1182:2: warning: left shift count >= width of type [enabled by default]
>> arch/x86/include/asm/pgtable.h:1182:2: warning: left shift count >= width of type [enabled by default]
arch/x86/include/asm/pgtable.h:1182:2: warning: right shift count >= width of type [enabled by default]
vim +1182 arch/x86/include/asm/pgtable.h
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1166 }
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1167
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1168 static inline bool __pkru_allows_write(u32 pkru, u16 pkey)
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1169 {
845942969 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1170 int pkru_pkey_bits = pkey * PKRU_BITS_PER_PKEY;
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1171 /*
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1172 * Access-disable disables writes too so we need to check
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1173 * both bits here.
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1174 */
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1175 return !(pkru & ((PKRU_AD_BIT|PKRU_WD_BIT) << pkru_pkey_bits));
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1176 }
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1177
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1178 static inline u16 pte_flags_pkey(unsigned long pte_flags)
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1179 {
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1180 #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1181 /* ifdef to avoid doing 59-bit shift on 32-bit values */
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 @1182 return (pte_flags & _PAGE_PKEY_MASK) >> _PAGE_BIT_PKEY_BIT0;
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1183 #else
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1184 return 0;
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1185 #endif
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1186 }
33a709b25 arch/x86/include/asm/pgtable.h Dave Hansen 2016-02-12 1187
195466dc4 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-01-30 1188 #include <asm-generic/pgtable.h>
195466dc4 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-01-30 1189 #endif /* __ASSEMBLY__ */
195466dc4 include/asm-x86/pgtable.h Jeremy Fitzhardinge 2008-01-30 1190
:::::: The code at line 1182 was first introduced by commit
:::::: 33a709b25a760b91184bb335cf7d7c32b8123013 mm/gup, x86/mm/pkeys: Check VMAs and PTEs for protection keys
:::::: TO: Dave Hansen <dave.hansen@...ux.intel.com>
:::::: CC: Ingo Molnar <mingo@...nel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (27106 bytes)
Powered by blists - more mailing lists