[xlnx:master 20/33] drivers/usb/dwc3/core.h:1421:6: warning: no previous prototype for function 'dwc3_mask_phy_reset'
kernel test robot
lkp at intel.com
Tue Apr 20 04:30:25 BST 2021
tree: https://github.com/Xilinx/linux-xlnx master
head: 5fd22595ae63ccd63022971d869da5cb90447a29
commit: 31d7800cc8d815f78d1bfa30655799f5733a4f59 [20/33] usb: dwc3: Add support for masking phy reset signal
config: x86_64-randconfig-r025-20210419 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2b50f5a4343f8fb06acaa5c36355bcf58092c9cd)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -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
# https://github.com/Xilinx/linux-xlnx/commit/31d7800cc8d815f78d1bfa30655799f5733a4f59
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx master
git checkout 31d7800cc8d815f78d1bfa30655799f5733a4f59
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/usb/dwc3/core.c:11:
In file included from include/linux/clk.h:17:
In file included from include/linux/notifier.h:15:
In file included from include/linux/rwsem.h:16:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:81:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:38:
In file included from arch/x86/include/asm/thread_info.h:53:
arch/x86/include/asm/cpufeature.h:164:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
asm_volatile_goto("1: jmp 6f\n"
^
arch/x86/include/asm/cpufeature.h:195:4: error: expected ')'
: : [feature] "i" (bit),
^
arch/x86/include/asm/cpufeature.h:164:19: note: to match this '('
asm_volatile_goto("1: jmp 6f\n"
^
In file included from drivers/usb/dwc3/core.c:36:
drivers/usb/dwc3/core.h:1413:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/core.h:1413:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
static
drivers/usb/dwc3/core.h:1415:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
void dwc3_set_simple_data(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1415:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_set_simple_data(struct dwc3 *dwc)
^
static
drivers/usb/dwc3/core.h:1417:6: warning: no previous prototype for function 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1417:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
static
drivers/usb/dwc3/core.h:1419:5: warning: no previous prototype for function 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
^
drivers/usb/dwc3/core.h:1419:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
^
static
>> drivers/usb/dwc3/core.h:1421:6: warning: no previous prototype for function 'dwc3_mask_phy_reset' [-Wmissing-prototypes]
void dwc3_mask_phy_reset(struct device *dev, bool mask)
^
drivers/usb/dwc3/core.h:1421:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_mask_phy_reset(struct device *dev, bool mask)
^
static
5 warnings and 2 errors generated.
--
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/trace.h:17:
In file included from include/linux/tracepoint.h:18:
In file included from include/linux/srcu.h:33:
In file included from include/linux/rcupdate.h:40:
In file included from include/linux/preempt.h:81:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:38:
In file included from arch/x86/include/asm/thread_info.h:53:
arch/x86/include/asm/cpufeature.h:164:2: error: implicit declaration of function 'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
asm_volatile_goto("1: jmp 6f\n"
^
arch/x86/include/asm/cpufeature.h:195:4: error: expected ')'
: : [feature] "i" (bit),
^
arch/x86/include/asm/cpufeature.h:164:19: note: to match this '('
asm_volatile_goto("1: jmp 6f\n"
^
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/trace.h:19:
drivers/usb/dwc3/core.h:1413:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/core.h:1413:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
static
drivers/usb/dwc3/core.h:1415:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
void dwc3_set_simple_data(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1415:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_set_simple_data(struct dwc3 *dwc)
^
static
drivers/usb/dwc3/core.h:1417:6: warning: no previous prototype for function 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1417:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
static
drivers/usb/dwc3/core.h:1419:5: warning: no previous prototype for function 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
^
drivers/usb/dwc3/core.h:1419:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
^
static
>> drivers/usb/dwc3/core.h:1421:6: warning: no previous prototype for function 'dwc3_mask_phy_reset' [-Wmissing-prototypes]
void dwc3_mask_phy_reset(struct device *dev, bool mask)
^
drivers/usb/dwc3/core.h:1421:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_mask_phy_reset(struct device *dev, bool mask)
^
static
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/./trace.h:341:
In file included from include/trace/define_trace.h:96:
In file included from include/trace/trace_events.h:20:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:18:
In file included from include/uapi/linux/bpf_perf_event.h:11:
In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1:
In file included from include/uapi/asm-generic/bpf_perf_event.h:4:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:83:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/./trace.h:341:
In file included from include/trace/define_trace.h:96:
In file included from include/trace/trace_events.h:20:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:18:
In file included from include/uapi/linux/bpf_perf_event.h:11:
In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1:
In file included from include/uapi/asm-generic/bpf_perf_event.h:4:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:83:25: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set->sig[3] | set->sig[2] |
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/./trace.h:341:
In file included from include/trace/define_trace.h:96:
In file included from include/trace/trace_events.h:20:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:18:
In file included from include/uapi/linux/bpf_perf_event.h:11:
In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1:
In file included from include/uapi/asm-generic/bpf_perf_event.h:4:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:84:4: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
set->sig[1] | set->sig[0]) == 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/./trace.h:341:
In file included from include/trace/define_trace.h:96:
In file included from include/trace/trace_events.h:20:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:18:
In file included from include/uapi/linux/bpf_perf_event.h:11:
In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1:
In file included from include/uapi/asm-generic/bpf_perf_event.h:4:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:86:11: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set->sig[1] | set->sig[0]) == 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/./trace.h:341:
In file included from include/trace/define_trace.h:96:
In file included from include/trace/trace_events.h:20:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:18:
In file included from include/uapi/linux/bpf_perf_event.h:11:
In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1:
In file included from include/uapi/asm-generic/bpf_perf_event.h:4:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:99:11: warning: array index 3 is past the end of the array (which contains 1 element) [-Warray-bounds]
return (set1->sig[3] == set2->sig[3]) &&
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/trace.c:11:
In file included from drivers/usb/dwc3/./trace.h:341:
In file included from include/trace/define_trace.h:96:
In file included from include/trace/trace_events.h:20:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:18:
In file included from include/uapi/linux/bpf_perf_event.h:11:
In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1:
In file included from include/uapi/asm-generic/bpf_perf_event.h:4:
--
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:159:3: note: expanded from macro '_SIG_SET_OP'
set->sig[2] = op(set->sig[2]); \
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:13:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:169:1: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:160:27: note: expanded from macro '_SIG_SET_OP'
case 2: set->sig[1] = op(set->sig[1]); \
^ ~
include/linux/signal.h:168:24: note: expanded from macro '_sig_not'
#define _sig_not(x) (~(x))
^
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:13:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:169:1: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
_SIG_SET_OP(signotset, _sig_not)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/signal.h:160:10: note: expanded from macro '_SIG_SET_OP'
case 2: set->sig[1] = op(set->sig[1]); \
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:13:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:180:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:13:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:192:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = -1;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:13:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:222:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = 0;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:13:
In file included from include/linux/ptrace.h:7:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:234:10: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
case 2: set->sig[1] = -1;
^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
unsigned long sig[_NSIG_WORDS];
^
In file included from drivers/usb/dwc3/debugfs.c:23:
drivers/usb/dwc3/core.h:1413:6: warning: no previous prototype for function 'dwc3_simple_wakeup_capable' [-Wmissing-prototypes]
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/core.h:1413:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
^
static
drivers/usb/dwc3/core.h:1415:6: warning: no previous prototype for function 'dwc3_set_simple_data' [-Wmissing-prototypes]
void dwc3_set_simple_data(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1415:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_set_simple_data(struct dwc3 *dwc)
^
static
drivers/usb/dwc3/core.h:1417:6: warning: no previous prototype for function 'dwc3_simple_check_quirks' [-Wmissing-prototypes]
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
drivers/usb/dwc3/core.h:1417:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_simple_check_quirks(struct dwc3 *dwc)
^
static
drivers/usb/dwc3/core.h:1419:5: warning: no previous prototype for function 'dwc3_set_usb_core_power' [-Wmissing-prototypes]
int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
^
drivers/usb/dwc3/core.h:1419:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
^
static
>> drivers/usb/dwc3/core.h:1421:6: warning: no previous prototype for function 'dwc3_mask_phy_reset' [-Wmissing-prototypes]
void dwc3_mask_phy_reset(struct device *dev, bool mask)
^
drivers/usb/dwc3/core.h:1421:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_mask_phy_reset(struct device *dev, bool mask)
^
static
54 warnings and 2 errors generated.
vim +/dwc3_mask_phy_reset +1421 drivers/usb/dwc3/core.h
1402
1403 #if IS_ENABLED(CONFIG_USB_DWC3_OF_SIMPLE)
1404 int dwc3_enable_hw_coherency(struct device *dev);
1405 void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup);
1406 void dwc3_set_simple_data(struct dwc3 *dwc);
1407 void dwc3_simple_check_quirks(struct dwc3 *dwc);
1408 int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on);
1409 void dwc3_mask_phy_reset(struct device *dev, bool mask);
1410 #else
1411 static inline int dwc3_enable_hw_coherency(struct device *dev)
1412 { return 1; }
1413 void dwc3_simple_wakeup_capable(struct device *dev, bool wakeup)
1414 { ; }
1415 void dwc3_set_simple_data(struct dwc3 *dwc)
1416 { ; }
1417 void dwc3_simple_check_quirks(struct dwc3 *dwc)
1418 { ; }
> 1419 int dwc3_set_usb_core_power(struct dwc3 *dwc, bool on)
1420 { ; }
> 1421 void dwc3_mask_phy_reset(struct device *dev, bool mask)
1422 { ; }
1423 #endif
1424
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35940 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210420/56b48fe5/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list