lkml.org 
[lkml]   [2016]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] printk: Create pr_<level> functions
Hi,

[auto build test ERROR on v4.7-rc4]
[also build test ERROR on next-20160623]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Joe-Perches/printk-Create-pr_-level-functions/20160624-031211
config: i386-defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

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

>> kernel/printk/printk.c:1816:17: error: conflicting types for '__pr_emerg'
define_pr_level(__pr_emerg, LOGLEVEL_EMERG);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:257:39: note: previous declaration of '__pr_emerg' was here
asmlinkage __printf(1, 2) __cold void __pr_emerg(const char *fmt, ...);
^~~~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:
>> kernel/printk/printk.c:1816:17: error: conflicting types for '__pr_emerg'
define_pr_level(__pr_emerg, LOGLEVEL_EMERG);
^
include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
extern typeof(sym) sym; \
^~~
>> kernel/printk/printk.c:1814:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(func)
^~~~~~~~~~~~~
>> kernel/printk/printk.c:1816:1: note: in expansion of macro 'define_pr_level'
define_pr_level(__pr_emerg, LOGLEVEL_EMERG);
^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:257:39: note: previous declaration of '__pr_emerg' was here
asmlinkage __printf(1, 2) __cold void __pr_emerg(const char *fmt, ...);
^~~~~~~~~~
>> kernel/printk/printk.c:1817:17: error: conflicting types for '__pr_alert'
define_pr_level(__pr_alert, LOGLEVEL_ALERT);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:258:39: note: previous declaration of '__pr_alert' was here
asmlinkage __printf(1, 2) __cold void __pr_alert(const char *fmt, ...);
^~~~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:
>> kernel/printk/printk.c:1817:17: error: conflicting types for '__pr_alert'
define_pr_level(__pr_alert, LOGLEVEL_ALERT);
^
include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
extern typeof(sym) sym; \
^~~
>> kernel/printk/printk.c:1814:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(func)
^~~~~~~~~~~~~
kernel/printk/printk.c:1817:1: note: in expansion of macro 'define_pr_level'
define_pr_level(__pr_alert, LOGLEVEL_ALERT);
^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:258:39: note: previous declaration of '__pr_alert' was here
asmlinkage __printf(1, 2) __cold void __pr_alert(const char *fmt, ...);
^~~~~~~~~~
>> kernel/printk/printk.c:1818:17: error: conflicting types for '__pr_crit'
define_pr_level(__pr_crit, LOGLEVEL_CRIT);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:259:39: note: previous declaration of '__pr_crit' was here
asmlinkage __printf(1, 2) __cold void __pr_crit(const char *fmt, ...);
^~~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:
>> kernel/printk/printk.c:1818:17: error: conflicting types for '__pr_crit'
define_pr_level(__pr_crit, LOGLEVEL_CRIT);
^
include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
extern typeof(sym) sym; \
^~~
>> kernel/printk/printk.c:1814:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(func)
^~~~~~~~~~~~~
kernel/printk/printk.c:1818:1: note: in expansion of macro 'define_pr_level'
define_pr_level(__pr_crit, LOGLEVEL_CRIT);
^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:259:39: note: previous declaration of '__pr_crit' was here
asmlinkage __printf(1, 2) __cold void __pr_crit(const char *fmt, ...);
^~~~~~~~~
>> kernel/printk/printk.c:1819:17: error: conflicting types for '__pr_err'
define_pr_level(__pr_err, LOGLEVEL_ERR);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:260:39: note: previous declaration of '__pr_err' was here
asmlinkage __printf(1, 2) __cold void __pr_err(const char *fmt, ...);
^~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:
>> kernel/printk/printk.c:1819:17: error: conflicting types for '__pr_err'
define_pr_level(__pr_err, LOGLEVEL_ERR);
^
include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
extern typeof(sym) sym; \
^~~
>> kernel/printk/printk.c:1814:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(func)
^~~~~~~~~~~~~
kernel/printk/printk.c:1819:1: note: in expansion of macro 'define_pr_level'
define_pr_level(__pr_err, LOGLEVEL_ERR);
^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:260:39: note: previous declaration of '__pr_err' was here
asmlinkage __printf(1, 2) __cold void __pr_err(const char *fmt, ...);
^~~~~~~~
>> kernel/printk/printk.c:1820:17: error: conflicting types for '__pr_warn'
define_pr_level(__pr_warn, LOGLEVEL_WARNING);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:261:39: note: previous declaration of '__pr_warn' was here
asmlinkage __printf(1, 2) __cold void __pr_warn(const char *fmt, ...);
^~~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:
>> kernel/printk/printk.c:1820:17: error: conflicting types for '__pr_warn'
define_pr_level(__pr_warn, LOGLEVEL_WARNING);
^
include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
extern typeof(sym) sym; \
^~~
>> kernel/printk/printk.c:1814:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(func)
^~~~~~~~~~~~~
kernel/printk/printk.c:1820:1: note: in expansion of macro 'define_pr_level'
define_pr_level(__pr_warn, LOGLEVEL_WARNING);
^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:261:39: note: previous declaration of '__pr_warn' was here
asmlinkage __printf(1, 2) __cold void __pr_warn(const char *fmt, ...);
^~~~~~~~~
>> kernel/printk/printk.c:1821:17: error: conflicting types for '__pr_notice'
define_pr_level(__pr_notice, LOGLEVEL_NOTICE);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:262:39: note: previous declaration of '__pr_notice' was here
asmlinkage __printf(1, 2) __cold void __pr_notice(const char *fmt, ...);
^~~~~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:
>> kernel/printk/printk.c:1821:17: error: conflicting types for '__pr_notice'
define_pr_level(__pr_notice, LOGLEVEL_NOTICE);
^
include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
extern typeof(sym) sym; \
^~~
>> kernel/printk/printk.c:1814:1: note: in expansion of macro 'EXPORT_SYMBOL'
EXPORT_SYMBOL(func)
^~~~~~~~~~~~~
kernel/printk/printk.c:1821:1: note: in expansion of macro 'define_pr_level'
define_pr_level(__pr_notice, LOGLEVEL_NOTICE);
^~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:262:39: note: previous declaration of '__pr_notice' was here
asmlinkage __printf(1, 2) __cold void __pr_notice(const char *fmt, ...);
^~~~~~~~~~~
>> kernel/printk/printk.c:1822:17: error: conflicting types for '__pr_info'
define_pr_level(__pr_info, LOGLEVEL_NOTICE);
^
kernel/printk/printk.c:1806:6: note: in definition of macro 'define_pr_level'
void func(const char *fmt, ...) \
^~~~
In file included from include/linux/kernel.h:13:0,
from kernel/printk/printk.c:19:
include/linux/printk.h:263:39: note: previous declaration of '__pr_info' was here
asmlinkage __printf(1, 2) __cold void __pr_info(const char *fmt, ...);
^~~~~~~~~
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from kernel/printk/printk.c:19:

vim +/__pr_emerg +1816 kernel/printk/printk.c

1808 va_list args; \
1809 \
1810 va_start(args, fmt); \
1811 vprintk_default(loglevel, fmt, args); \
1812 va_end(args); \
1813 } \
> 1814 EXPORT_SYMBOL(func)
1815
> 1816 define_pr_level(__pr_emerg, LOGLEVEL_EMERG);
> 1817 define_pr_level(__pr_alert, LOGLEVEL_ALERT);
> 1818 define_pr_level(__pr_crit, LOGLEVEL_CRIT);
> 1819 define_pr_level(__pr_err, LOGLEVEL_ERR);
> 1820 define_pr_level(__pr_warn, LOGLEVEL_WARNING);
> 1821 define_pr_level(__pr_notice, LOGLEVEL_NOTICE);
> 1822 define_pr_level(__pr_info, LOGLEVEL_NOTICE);
1823
1824 int vprintk_default(int level, const char *fmt, va_list args)
1825 {

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2016-06-23 22:41    [W:0.046 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site