From: kernel test robot <lkp@intel.com>
To: Piyush Mehta <piyush.mehta@xilinx.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-arm-kernel@lists.infradead.org,
Michal Simek <monstr@monstr.eu>,
Manish Narani <manish.narani@xilinx.com>
Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS_2022.1_update 404/1093] drivers/usb/dwc3/dwc3-xilinx.c:508:6: warning: no previous prototype for function 'dwc3_xilinx_wakeup_capable'
Date: Sat, 14 May 2022 07:56:52 +0800 [thread overview]
Message-ID: <202205140742.L4RaDuSY-lkp@intel.com> (raw)
Hi Piyush,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS_2022.1_update
head: 5ead03b6e64b5072737c653bb20ebcd88704e3d1
commit: db6b55a74c709a27fdf6d175f890568dc8945424 [404/1093] usb: dwc3: Added remote wake-up in xilinx glue driver
config: arm64-randconfig-r031-20220512 (https://download.01.org/0day-ci/archive/20220514/202205140742.L4RaDuSY-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 38189438b69ca27b4c6ce707c52dbd217583d046)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/db6b55a74c709a27fdf6d175f890568dc8945424
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS_2022.1_update
git checkout db6b55a74c709a27fdf6d175f890568dc8945424
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/usb/dwc3/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/dwc3/dwc3-xilinx.c:508:6: warning: no previous prototype for function 'dwc3_xilinx_wakeup_capable' [-Wmissing-prototypes]
void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/dwc3-xilinx.c:508:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
^
static
1 warning generated.
vim +/dwc3_xilinx_wakeup_capable +508 drivers/usb/dwc3/dwc3-xilinx.c
506
507 /* xilinx feature support functions */
> 508 void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
509 {
510 struct device_node *node = of_node_get(dev->parent->of_node);
511
512 /* check for valid parent node */
513 while (node) {
514 if (of_device_is_compatible(node, "xlnx,zynqmp-dwc3") ||
515 of_device_is_compatible(node, "xlnx,versal-dwc3"))
516 break;
517
518 /* get the next parent node */
519 node = of_get_next_parent(node);
520 }
521
522 if (node) {
523 struct platform_device *pdev_parent;
524 struct dwc3_xlnx *priv_data;
525
526 pdev_parent = of_find_device_by_node(node);
527 priv_data = platform_get_drvdata(pdev_parent);
528
529 /* Set wakeup capable as true or false */
530 priv_data->wakeup_capable = wakeup;
531
532 /* Allow D3 state if wakeup capable only */
533 priv_data->enable_d3_suspend = wakeup;
534 }
535 }
536
--
0-DAY CI Kernel Test Service
https://01.org/lkp
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Piyush Mehta <piyush.mehta@xilinx.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-arm-kernel@lists.infradead.org,
Michal Simek <monstr@monstr.eu>,
Manish Narani <manish.narani@xilinx.com>
Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS_2022.1_update 404/1093] drivers/usb/dwc3/dwc3-xilinx.c:508:6: warning: no previous prototype for function 'dwc3_xilinx_wakeup_capable'
Date: Sat, 14 May 2022 07:56:52 +0800 [thread overview]
Message-ID: <202205140742.L4RaDuSY-lkp@intel.com> (raw)
Hi Piyush,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS_2022.1_update
head: 5ead03b6e64b5072737c653bb20ebcd88704e3d1
commit: db6b55a74c709a27fdf6d175f890568dc8945424 [404/1093] usb: dwc3: Added remote wake-up in xilinx glue driver
config: arm64-randconfig-r031-20220512 (https://download.01.org/0day-ci/archive/20220514/202205140742.L4RaDuSY-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 38189438b69ca27b4c6ce707c52dbd217583d046)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/db6b55a74c709a27fdf6d175f890568dc8945424
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS_2022.1_update
git checkout db6b55a74c709a27fdf6d175f890568dc8945424
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/usb/dwc3/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/dwc3/dwc3-xilinx.c:508:6: warning: no previous prototype for function 'dwc3_xilinx_wakeup_capable' [-Wmissing-prototypes]
void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
^
drivers/usb/dwc3/dwc3-xilinx.c:508:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
^
static
1 warning generated.
vim +/dwc3_xilinx_wakeup_capable +508 drivers/usb/dwc3/dwc3-xilinx.c
506
507 /* xilinx feature support functions */
> 508 void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
509 {
510 struct device_node *node = of_node_get(dev->parent->of_node);
511
512 /* check for valid parent node */
513 while (node) {
514 if (of_device_is_compatible(node, "xlnx,zynqmp-dwc3") ||
515 of_device_is_compatible(node, "xlnx,versal-dwc3"))
516 break;
517
518 /* get the next parent node */
519 node = of_get_next_parent(node);
520 }
521
522 if (node) {
523 struct platform_device *pdev_parent;
524 struct dwc3_xlnx *priv_data;
525
526 pdev_parent = of_find_device_by_node(node);
527 priv_data = platform_get_drvdata(pdev_parent);
528
529 /* Set wakeup capable as true or false */
530 priv_data->wakeup_capable = wakeup;
531
532 /* Allow D3 state if wakeup capable only */
533 priv_data->enable_d3_suspend = wakeup;
534 }
535 }
536
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-05-13 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 23:56 kernel test robot [this message]
2022-05-13 23:56 ` [xilinx-xlnx:xlnx_rebase_v5.15_LTS_2022.1_update 404/1093] drivers/usb/dwc3/dwc3-xilinx.c:508:6: warning: no previous prototype for function 'dwc3_xilinx_wakeup_capable' kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202205140742.L4RaDuSY-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=manish.narani@xilinx.com \
--cc=monstr@monstr.eu \
--cc=piyush.mehta@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.