From: kernel test robot <lkp@intel.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [jirislaby:devel 8/19] drivers/tty/mxser.c:1784:30: warning: unused variable 'mxser_ops'
Date: Wed, 8 Dec 2021 23:53:32 +0800 [thread overview]
Message-ID: <202112082345.v46Z3TI4-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: e07aaf938405b723f435206c00fcc50a11a70399
commit: f22cec00dbd414f61389ec805a29e70e55b9d84a [8/19] mxser: switch to uart_driver
config: i386-buildonly-randconfig-r002-20211208 (https://download.01.org/0day-ci/archive/20211208/202112082345.v46Z3TI4-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commit/?id=f22cec00dbd414f61389ec805a29e70e55b9d84a
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout f22cec00dbd414f61389ec805a29e70e55b9d84a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/tty/
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/tty/mxser.c:377:13: warning: unused function 'mxser_must_no_sw_flow_control' [-Wunused-function]
static void mxser_must_no_sw_flow_control(unsigned long baseio)
^
drivers/tty/mxser.c:591:13: warning: unused function 'mxser_change_speed' [-Wunused-function]
static void mxser_change_speed(struct tty_struct *tty,
^
drivers/tty/mxser.c:1394:13: warning: unused function 'mxser_start' [-Wunused-function]
static void mxser_start(struct tty_struct *tty)
^
>> drivers/tty/mxser.c:1784:30: warning: unused variable 'mxser_ops' [-Wunused-const-variable]
static const struct uart_ops mxser_ops = {
^
4 warnings generated.
vim +/mxser_ops +1784 drivers/tty/mxser.c
1783
> 1784 static const struct uart_ops mxser_ops = {
1785 .tx_empty = mxser_tx_empty,
1786 //.get_mctrl = mxser_get_mctrl,
1787 //.set_mctrl = mxser_set_mctrl,
1788 .stop_tx = mxser_stop_tx,
1789 .start_tx = mxser_start_tx,
1790 .stop_rx = mxser_stop_rx,
1791 .break_ctl = mxser_break_ctl,
1792 //.startup = mxser_startup,
1793 //.shutdown = mxser_shutdown,
1794 .set_termios = mxser_set_termios,
1795 //.pm = mxser_pm,
1796 //.type = mxser_type,
1797 //.release_port = mxser_release_port,
1798 //.request_port = mxser_request_port,
1799 //.config_port = mxser_config_port,
1800 //.verify_port = mxser_verify_port,
1801 };
1802
1803
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-12-08 15:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202112082345.v46Z3TI4-lkp@intel.com \
--to=lkp@intel.com \
--cc=jslaby@suse.cz \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).