archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 11862/11865] include/linux/gfp.h:20:32: error: redefinition of typedef 'gfp_t' is a C11 feature
@ 2021-02-20  2:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-20  2:00 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 3727 bytes --]

tree: master
head:   abaf6f60176f1ae9d946d63e4db63164600b7b1a
commit: 784769f5b8efcd1920bde788a51e9ef69d1222b0 [11862/11865] Merge branch 'akpm-current/current'
config: x86_64-randconfig-r026-20210220 (attached as .config)
compiler: clang version 12.0.0 ( c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add linux-next
        git fetch --no-tags linux-next master
        git checkout 784769f5b8efcd1920bde788a51e9ef69d1222b0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <>

All errors (new ones prefixed by >>):

   In file included from <built-in>:3:
   In file included from drivers/gpu/drm/i915/display/intel_display_power.h:9:
   In file included from drivers/gpu/drm/i915/display/intel_display.h:28:
   In file included from include/drm/drm_util.h:36:
   In file included from include/linux/kgdb.h:19:
   In file included from include/linux/kprobes.h:29:
   In file included from include/linux/ftrace.h:12:
   In file included from include/linux/kallsyms.h:12:
   In file included from include/linux/mm.h:10:
>> include/linux/gfp.h:20:32: error: redefinition of typedef 'gfp_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
   typedef unsigned int __bitwise gfp_t;   // repeated here for kernel-doc
   include/linux/types.h:148:32: note: previous definition is here
   typedef unsigned int __bitwise gfp_t;
   1 error generated.

vim +/gfp_t +20 include/linux/gfp.h

^1da177e4c3f41 Linus Torvalds          2005-04-16  10  
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  11) /**
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  12)  * typedef gfp_t - Memory allocation flags.
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  13)  *
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  14)  * GFP flags are commonly used throughout Linux to indicate how memory
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  15)  * should be allocated.  The GFP acronym stands for "get free pages",
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  16)  * the underlying memory allocation function.  Not every GFP flag is
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  17)  * supported by every function which may allocate memory.  Most users
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  18)  * will want to use a plain ``GFP_KERNEL``.
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  19)  */
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19 @20) typedef unsigned int __bitwise gfp_t;	// repeated here for kernel-doc
e8805271b82793 Matthew Wilcox (Oracle  2021-02-19  21) 

:::::: The code at line 20 was first introduced by commit
:::::: e8805271b82793e6d1f3de786c2278e4d622bdb6 mm/gfp: add kernel-doc for gfp_t

:::::: TO: Matthew Wilcox (Oracle) <>
:::::: CC: Stephen Rothwell <>

0-DAY CI Kernel Test Service, Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33237 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-20  2:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20  2:00 [linux-next:master 11862/11865] include/linux/gfp.h:20:32: error: redefinition of typedef 'gfp_t' is a C11 feature 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;
as well as URLs for NNTP newsgroup(s).