From: kbuild test robot <lkp@intel.com>
To: Qian Cai <cai@lca.pw>
Cc: kbuild-all@01.org, Roman Gushchin <guro@fb.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [rgushchin:fix_vmstats 21/221] include/asm-generic/5level-fixup.h:14:18: error: unknown type name 'pgd_t'; did you mean 'pid_t'?
Date: Tue, 13 Aug 2019 11:33:25 +0800 [thread overview]
Message-ID: <201908131117.SThHOrZO%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4704 bytes --]
tree: https://github.com/rgushchin/linux.git fix_vmstats
head: 4ec858b5201ae067607e82706b36588631c1b990
commit: 938dda772d9d05074bfe1baa0dc18873fbf4fedb [21/221] include/asm-generic/5level-fixup.h: fix variable 'p4d' set but not used
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 938dda772d9d05074bfe1baa0dc18873fbf4fedb
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/asm-generic/4level-fixup.h:38:0,
from arch/parisc/include/asm/pgtable.h:5,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from sound/core/pcm_memory.c:7:
>> include/asm-generic/5level-fixup.h:14:18: error: unknown type name 'pgd_t'; did you mean 'pid_t'?
#define p4d_t pgd_t
^
>> include/asm-generic/5level-fixup.h:24:28: note: in expansion of macro 'p4d_t'
static inline int p4d_none(p4d_t p4d)
^~~~~
>> include/asm-generic/5level-fixup.h:14:18: error: unknown type name 'pgd_t'; did you mean 'pid_t'?
#define p4d_t pgd_t
^
include/asm-generic/5level-fixup.h:29:27: note: in expansion of macro 'p4d_t'
static inline int p4d_bad(p4d_t p4d)
^~~~~
>> include/asm-generic/5level-fixup.h:14:18: error: unknown type name 'pgd_t'; did you mean 'pid_t'?
#define p4d_t pgd_t
^
include/asm-generic/5level-fixup.h:34:31: note: in expansion of macro 'p4d_t'
static inline int p4d_present(p4d_t p4d)
^~~~~
In file included from arch/parisc/include/asm/pgtable.h:583:0,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from sound/core/pcm_memory.c:7:
include/asm-generic/pgtable.h: In function 'p4d_none_or_clear_bad':
>> include/asm-generic/pgtable.h:578:6: error: implicit declaration of function 'p4d_none'; did you mean 'pgd_none'? [-Werror=implicit-function-declaration]
if (p4d_none(*p4d))
^~~~~~~~
pgd_none
In file included from include/linux/init.h:5:0,
from include/linux/io.h:10,
from sound/core/pcm_memory.c:7:
>> include/asm-generic/pgtable.h:580:15: error: implicit declaration of function 'p4d_bad'; did you mean 'pgd_bad'? [-Werror=implicit-function-declaration]
if (unlikely(p4d_bad(*p4d))) {
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
cc1: some warnings being treated as errors
vim +14 include/asm-generic/5level-fixup.h
505a60e225606f Kirill A. Shutemov 2017-03-09 13
505a60e225606f Kirill A. Shutemov 2017-03-09 @14 #define p4d_t pgd_t
505a60e225606f Kirill A. Shutemov 2017-03-09 15
505a60e225606f Kirill A. Shutemov 2017-03-09 16 #define pud_alloc(mm, p4d, address) \
505a60e225606f Kirill A. Shutemov 2017-03-09 17 ((unlikely(pgd_none(*(p4d))) && __pud_alloc(mm, p4d, address)) ? \
505a60e225606f Kirill A. Shutemov 2017-03-09 18 NULL : pud_offset(p4d, address))
505a60e225606f Kirill A. Shutemov 2017-03-09 19
505a60e225606f Kirill A. Shutemov 2017-03-09 20 #define p4d_alloc(mm, pgd, address) (pgd)
505a60e225606f Kirill A. Shutemov 2017-03-09 21 #define p4d_offset(pgd, start) (pgd)
938dda772d9d05 Qian Cai 2019-08-09 22
938dda772d9d05 Qian Cai 2019-08-09 23 #ifndef __ASSEMBLY__
938dda772d9d05 Qian Cai 2019-08-09 @24 static inline int p4d_none(p4d_t p4d)
938dda772d9d05 Qian Cai 2019-08-09 25 {
938dda772d9d05 Qian Cai 2019-08-09 26 return 0;
938dda772d9d05 Qian Cai 2019-08-09 27 }
938dda772d9d05 Qian Cai 2019-08-09 28
:::::: The code at line 14 was first introduced by commit
:::::: 505a60e225606fbd3d2eadc31ff793d939ba66f1 asm-generic: introduce 5level-fixup.h
:::::: TO: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 15667 bytes --]
next reply other threads:[~2019-08-13 3:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-13 3:33 kbuild test robot [this message]
2019-08-13 14:52 ` [rgushchin:fix_vmstats 21/221] include/asm-generic/5level-fixup.h:14:18: error: unknown type name 'pgd_t'; did you mean 'pid_t'? Qian Cai
2019-08-14 0:45 ` Roman Gushchin
2019-08-14 14:38 ` Qian Cai
2019-08-20 7:08 ` [kbuild-all] " Rong Chen
2019-08-22 0:32 ` Roman Gushchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201908131117.SThHOrZO%lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=cai@lca.pw \
--cc=guro@fb.com \
--cc=hannes@cmpxchg.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).