From: kernel test robot <lkp@intel.com>
To: "D. Starke" <daniel.starke@siemens.com>,
linux-serial@vger.kernel.org, gregkh@linuxfoundation.org,
jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Daniel Starke <daniel.starke@siemens.com>
Subject: Re: [PATCH 1/3] tty: n_gsm: add ioctl for DLC specific parameter configuration
Date: Tue, 28 Feb 2023 18:51:56 +0800 [thread overview]
Message-ID: <202302281856.S9Lz4gHB-lkp@intel.com> (raw)
In-Reply-To: <20230228062957.3150-1-daniel.starke@siemens.com>
Hi Starke,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tty/tty-testing]
[also build test WARNING on tty/tty-next tty/tty-linus]
[cannot apply to v6.2]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/D-Starke/tty-n_gsm-allow-window-size-configuration/20230228-143349
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
patch link: https://lore.kernel.org/r/20230228062957.3150-1-daniel.starke%40siemens.com
patch subject: [PATCH 1/3] tty: n_gsm: add ioctl for DLC specific parameter configuration
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230228/202302281856.S9Lz4gHB-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/06d7556b46ca2395b18cb700f19ee5de37d8383b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review D-Starke/tty-n_gsm-allow-window-size-configuration/20230228-143349
git checkout 06d7556b46ca2395b18cb700f19ee5de37d8383b
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302281856.S9Lz4gHB-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/tty/n_gsm.c: In function 'gsmld_ioctl':
>> drivers/tty/n_gsm.c:3720:26: warning: unused variable 'dlci' [-Wunused-variable]
3720 | struct gsm_dlci *dlci;
| ^~~~
vim +/dlci +3720 drivers/tty/n_gsm.c
3713
3714 static int gsmld_ioctl(struct tty_struct *tty, unsigned int cmd,
3715 unsigned long arg)
3716 {
3717 struct gsm_config c;
3718 struct gsm_config_ext ce;
3719 struct gsm_mux *gsm = tty->disc_data;
> 3720 struct gsm_dlci *dlci;
3721 unsigned int base;
3722
3723 switch (cmd) {
3724 case GSMIOC_GETCONF:
3725 gsm_copy_config_values(gsm, &c);
3726 if (copy_to_user((void __user *)arg, &c, sizeof(c)))
3727 return -EFAULT;
3728 return 0;
3729 case GSMIOC_SETCONF:
3730 if (copy_from_user(&c, (void __user *)arg, sizeof(c)))
3731 return -EFAULT;
3732 return gsm_config(gsm, &c);
3733 case GSMIOC_GETFIRST:
3734 base = mux_num_to_base(gsm);
3735 return put_user(base + 1, (__u32 __user *)arg);
3736 case GSMIOC_GETCONF_EXT:
3737 gsm_copy_config_ext_values(gsm, &ce);
3738 if (copy_to_user((void __user *)arg, &ce, sizeof(ce)))
3739 return -EFAULT;
3740 return 0;
3741 case GSMIOC_SETCONF_EXT:
3742 if (copy_from_user(&ce, (void __user *)arg, sizeof(ce)))
3743 return -EFAULT;
3744 return gsm_config_ext(gsm, &ce);
3745 default:
3746 return n_tty_ioctl_helper(tty, cmd, arg);
3747 }
3748 }
3749
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
prev parent reply other threads:[~2023-02-28 10:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-28 6:29 D. Starke
2023-02-28 6:29 ` [PATCH 2/3] tty: n_gsm: allow window size configuration D. Starke
2023-02-28 6:29 ` [PATCH 3/3] tty: n_gsm: add ioctl for DLC config via ldisc handle D. Starke
2023-02-28 6:58 ` [PATCH 1/3] tty: n_gsm: add ioctl for DLC specific parameter configuration Jiri Slaby
2023-02-28 7:08 ` Starke, Daniel
2023-02-28 10:51 ` kernel test robot [this message]
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=202302281856.S9Lz4gHB-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel.starke@siemens.com \
--cc=gregkh@linuxfoundation.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=oe-kbuild-all@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
all inboxes | Powered by JetHome®