[powerpc:next-test 167/234] arch/powerpc/kernel/eeh_event.c:124:23: error: implicit declaration of function 'stack_trace_save'; did you mean 'stack_depot_save'?
kbuild test robot
lkp at intel.com
Fri Sep 13 14:06:42 AEST 2019
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/powerpc/linux.git next-test
head: 4fead715c62a5196fa57218a1992e5eb8437dd8a
commit: 25baf3d81614b0b8ca8958f4d6f111ccaaaad578 [167/234] powerpc/eeh: Defer printing stack trace
config: powerpc-skiroot_defconfig (attached as .config)
compiler: powerpc64le-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 25baf3d81614b0b8ca8958f4d6f111ccaaaad578
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kernel/eeh_event.c: In function '__eeh_send_failure_event':
>> arch/powerpc/kernel/eeh_event.c:124:23: error: implicit declaration of function 'stack_trace_save'; did you mean 'stack_depot_save'? [-Werror=implicit-function-declaration]
pe->trace_entries = stack_trace_save(pe->stack_trace,
^~~~~~~~~~~~~~~~
stack_depot_save
cc1: all warnings being treated as errors
vim +124 arch/powerpc/kernel/eeh_event.c
93
94 /**
95 * eeh_send_failure_event - Generate a PCI error event
96 * @pe: EEH PE
97 *
98 * This routine can be called within an interrupt context;
99 * the actual event will be delivered in a normal context
100 * (from a workqueue).
101 */
102 int __eeh_send_failure_event(struct eeh_pe *pe)
103 {
104 unsigned long flags;
105 struct eeh_event *event;
106
107 event = kzalloc(sizeof(*event), GFP_ATOMIC);
108 if (!event) {
109 pr_err("EEH: out of memory, event not handled\n");
110 return -ENOMEM;
111 }
112 event->pe = pe;
113
114 /*
115 * Mark the PE as recovering before inserting it in the queue.
116 * This prevents the PE from being free()ed by a hotplug driver
117 * while the PE is sitting in the event queue.
118 */
119 if (pe) {
120 /*
121 * Save the current stack trace so we can dump it from the
122 * event handler thread.
123 */
> 124 pe->trace_entries = stack_trace_save(pe->stack_trace,
125 ARRAY_SIZE(pe->stack_trace), 0);
126
127 eeh_pe_state_mark(pe, EEH_PE_RECOVERING);
128 }
129
130 /* We may or may not be called in an interrupt context */
131 spin_lock_irqsave(&eeh_eventlist_lock, flags);
132 list_add(&event->list, &eeh_eventlist);
133 spin_unlock_irqrestore(&eeh_eventlist_lock, flags);
134
135 /* For EEH deamon to knick in */
136 complete(&eeh_eventlist_event);
137
138 return 0;
139 }
140
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 20466 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20190913/2b8c44b7/attachment-0001.gz>
More information about the Linuxppc-dev
mailing list