All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:maccess-fixups 2/8] arch/x86/mm/maccess.c:31:2: note: in expansion of macro 'if'
@ 2020-05-05 20:42 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-05 20:42 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git maccess-fixups
head:   e3856c252388cef173bdee11675b2970d9640a33
commit: d300c2379da66e0da428fdb9703a25e343814a6b [2/8] maccess: provide proper hooks for prohibiting probe_kernel_read & co
config: i386-randconfig-c001-20200502 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout d300c2379da66e0da428fdb9703a25e343814a6b
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   arch/x86/mm/maccess.c:29:6: error: conflicting types for 'probe_kernel_read_allowed'
    bool probe_kernel_read_allowed(const void *src, long count)
         ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/mm/maccess.c:3:0:
   include/linux/uaccess.h:304:6: note: previous declaration of 'probe_kernel_read_allowed' was here
    bool probe_kernel_read_allowed(const void *src, size_t size, bool strict);
         ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/current.h:5:0,
                    from include/linux/sched.h:12,
                    from include/linux/uaccess.h:5,
                    from arch/x86/mm/maccess.c:3:
   arch/x86/mm/maccess.c: In function 'probe_kernel_read_allowed':
   arch/x86/mm/maccess.c:31:6: error: 'strict' undeclared (first use in this function); did you mean 'strim'?
     if (strict)
         ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> arch/x86/mm/maccess.c:31:2: note: in expansion of macro 'if'
     if (strict)
     ^~
   arch/x86/mm/maccess.c:31:6: note: each undeclared identifier is reported only once for each function it appears in
     if (strict)
         ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> arch/x86/mm/maccess.c:31:2: note: in expansion of macro 'if'
     if (strict)
     ^~

vim +/if +31 arch/x86/mm/maccess.c

    28	
    29	bool probe_kernel_read_allowed(const void *src, long count)
    30	{
  > 31		if (strict)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2020-05-05 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 20:42 [hch-misc:maccess-fixups 2/8] arch/x86/mm/maccess.c:31:2: note: in expansion of macro 'if' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.