tree:
https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git
serdev-ngsm-pending-v5.7
head: 4eda51fea6be98ca5a4023a988b102bf3629b295
commit: ae348e86a0abccb615c8875a95d63f10268f1c4f [20/29] gnss: motmdm: Add support for
Motorola Mapphone MDM6600 modem
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
git checkout ae348e86a0abccb615c8875a95d63f10268f1c4f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> drivers/gnss/motmdm.c:71:5: warning: no previous prototype for
function 'motmdm_gnss_send_command' [-Wmissing-prototypes]
int
motmdm_gnss_send_command(struct motmdm_gnss_data *ddata,
^
drivers/gnss/motmdm.c:71:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
int motmdm_gnss_send_command(struct motmdm_gnss_data *ddata,
^
static
1 warning generated.
vim +/motmdm_gnss_send_command +71 drivers/gnss/motmdm.c
62
63 /*
64 * Note that multiple commands can be sent in series with responses coming
65 * out-of-order. For GNSS, we don't need to care about the out-of-order
66 * responses, and can assume we have at most one command active at a time.
67 * For the commands, can use just a jiffies base packet ID and let the modem
68 * sort out the ID conflicts with the modem's unsolicited message ID
69 * numbering.
70 */
71 int motmdm_gnss_send_command(struct motmdm_gnss_data *ddata,
72 const u8 *buf, int len)
73 {
74 struct gnss_device *gdev = ddata->gdev;
75 const int timeout_ms = 1000;
76 unsigned char cmd[128];
77 int ret, cmdlen;
78
79 cmdlen = len + 5 + 1;
80 if (cmdlen > 128)
81 return -EINVAL;
82
83 mutex_lock(&ddata->mutex);
84 memset(ddata->buf, 0, ddata->len);
85 ddata->parsed = false;
86 snprintf(cmd, cmdlen, "U%04li%s", jiffies % 10000, buf);
87 ret = serdev_ngsm_write(ddata->modem, &ddata->dlci, cmd, cmdlen);
88 if (ret < 0)
89 goto out_unlock;
90
91 ret = wait_event_timeout(ddata->read_queue, ddata->parsed,
92 msecs_to_jiffies(timeout_ms));
93 if (ret == 0) {
94 ret = -ETIMEDOUT;
95 goto out_unlock;
96 } else if (ret < 0) {
97 goto out_unlock;
98 }
99
100 if (!strstr(ddata->buf, ":OK")) {
101 dev_err(&gdev->dev, "command %s error %s\n",
102 cmd, ddata->buf);
103 ret = -EPIPE;
104 }
105
106 ret = len;
107
108 out_unlock:
109 mutex_unlock(&ddata->mutex);
110
111 return ret;
112 }
113
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org