* arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar
@ 2020-07-06 18:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-06 18:27 UTC (permalink / raw)
To: Will Deacon; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2597 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
commit: dee081bf8f824cabeb7c7495367d5dad0a444eb1 READ_ONCE: Drop pointer qualifiers when reading from scalar types
date: 3 months ago
config: arm64-randconfig-s032-20200706 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-14-g8fce3d7a-dirty
git checkout dee081bf8f824cabeb7c7495367d5dad0a444eb1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar
>> arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast from non-scalar
vim +88 arch/arm64/kernel/efi.c
f7d92489426579 Ard Biesheuvel 2015-11-30 84
8b1e0f81fb6fcf Anshuman Khandual 2019-07-11 85 static int __init set_permissions(pte_t *ptep, unsigned long addr, void *data)
bd264d046aad25 Ard Biesheuvel 2016-06-29 86 {
bd264d046aad25 Ard Biesheuvel 2016-06-29 87 efi_memory_desc_t *md = data;
20a004e7b017cc Will Deacon 2018-02-15 @88 pte_t pte = READ_ONCE(*ptep);
bd264d046aad25 Ard Biesheuvel 2016-06-29 89
bd264d046aad25 Ard Biesheuvel 2016-06-29 90 if (md->attribute & EFI_MEMORY_RO)
bd264d046aad25 Ard Biesheuvel 2016-06-29 91 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY));
bd264d046aad25 Ard Biesheuvel 2016-06-29 92 if (md->attribute & EFI_MEMORY_XP)
bd264d046aad25 Ard Biesheuvel 2016-06-29 93 pte = set_pte_bit(pte, __pgprot(PTE_PXN));
bd264d046aad25 Ard Biesheuvel 2016-06-29 94 set_pte(ptep, pte);
bd264d046aad25 Ard Biesheuvel 2016-06-29 95 return 0;
bd264d046aad25 Ard Biesheuvel 2016-06-29 96 }
bd264d046aad25 Ard Biesheuvel 2016-06-29 97
:::::: The code at line 88 was first introduced by commit
:::::: 20a004e7b017cce282a46ac5d02c2b9c6b9bb1fa arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables
:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: CC: Catalin Marinas <catalin.marinas@arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37441 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-06 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 18:27 arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®