Re: [PATCH trivial] include: asm-generic: Notice about 80 columns in pgtable-no*.h

From: kbuild test robot
Date: Tue Dec 15 2015 - 10:49:08 EST


Hi Chen,

[auto build test ERROR on v4.4-rc5]
[also build test ERROR on next-20151215]

url: https://github.com/0day-ci/linux/commits/Chen-Gang/include-asm-generic-Notice-about-80-columns-in-pgtable-no-h/20151215-221607
config: arm-shannon_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All error/warnings (new ones prefixed by >>):

In file included from arch/arm/include/asm/pgtable.h:33:0,
from include/linux/mm.h:55,
from arch/arm/mm/fault.c:13:
arch/arm/mm/fault.c: In function 'do_translation_fault':
>> arch/arm/include/asm/pgtable-2level.h:187:27: error: expected expression before 'do'
#define set_pud(pud,pudp) do { } while (0)
^
include/asm-generic/pgtable-nopud.h:36:36: note: in expansion of macro 'set_pud'
#define set_pgd(pgdptr, pgdval) (set_pud((pud_t *)(pgdptr), \
^
>> arch/arm/mm/fault.c:444:3: note: in expansion of macro 'set_pgd'
set_pgd(pgd, *pgd_k);
^

vim +/set_pgd +444 arch/arm/mm/fault.c

^1da177e Linus Torvalds 2005-04-16 428 pmd_t *pmd, *pmd_k;
^1da177e Linus Torvalds 2005-04-16 429
^1da177e Linus Torvalds 2005-04-16 430 if (addr < TASK_SIZE)
^1da177e Linus Torvalds 2005-04-16 431 return do_page_fault(addr, fsr, regs);
^1da177e Linus Torvalds 2005-04-16 432
5e27fb78 Anfei 2010-06-08 433 if (user_mode(regs))
5e27fb78 Anfei 2010-06-08 434 goto bad_area;
5e27fb78 Anfei 2010-06-08 435
^1da177e Linus Torvalds 2005-04-16 436 index = pgd_index(addr);
^1da177e Linus Torvalds 2005-04-16 437
^1da177e Linus Torvalds 2005-04-16 438 pgd = cpu_get_pgd() + index;
^1da177e Linus Torvalds 2005-04-16 439 pgd_k = init_mm.pgd + index;
^1da177e Linus Torvalds 2005-04-16 440
^1da177e Linus Torvalds 2005-04-16 441 if (pgd_none(*pgd_k))
^1da177e Linus Torvalds 2005-04-16 442 goto bad_area;
^1da177e Linus Torvalds 2005-04-16 443 if (!pgd_present(*pgd))
^1da177e Linus Torvalds 2005-04-16 @444 set_pgd(pgd, *pgd_k);
^1da177e Linus Torvalds 2005-04-16 445
516295e5 Russell King 2010-11-21 446 pud = pud_offset(pgd, addr);
516295e5 Russell King 2010-11-21 447 pud_k = pud_offset(pgd_k, addr);
516295e5 Russell King 2010-11-21 448
516295e5 Russell King 2010-11-21 449 if (pud_none(*pud_k))
516295e5 Russell King 2010-11-21 450 goto bad_area;
516295e5 Russell King 2010-11-21 451 if (!pud_present(*pud))
516295e5 Russell King 2010-11-21 452 set_pud(pud, *pud_k);

:::::: The code at line 444 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data