[chrome-os:chromeos-4.4 16/34] sound/soc/codecs/max98357a.c:47:3: error: implicit declaration of function 'mdelay'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 54c764fdd34196bcea7e02985cac4e4dc801593e
commit: 544bc70072f2f0d2d0aeee6999a00b1bfcd47b4a [16/34] BACKPORT: UPSTREAM: ASoC: max98357a: use mdelay for sdmode-delay
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 7.5.0
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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout 544bc70072f2f0d2d0aeee6999a00b1bfcd47b4a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-4.4 HEAD 54c764fdd34196bcea7e02985cac4e4dc801593e builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from sound/soc/codecs/max98357a.c:25:0:
include/sound/pcm.h: In function 'snd_pcm_chmap_substream':
include/sound/pcm.h:1372:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s->number == idx)
^~
sound/soc/codecs/max98357a.c: In function 'max98357a_daiops_trigger':
>> sound/soc/codecs/max98357a.c:47:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]
mdelay(max98357a->sdmode_delay);
^~~~~~
cc1: some warnings being treated as errors
vim +/mdelay +47 sound/soc/codecs/max98357a.c
34
35 static int max98357a_daiops_trigger(struct snd_pcm_substream *substream,
36 int cmd, struct snd_soc_dai *dai)
37 {
38 struct max98357a_priv *max98357a = snd_soc_dai_get_drvdata(dai);
39
40 if (!max98357a->sdmode)
41 return 0;
42
43 switch (cmd) {
44 case SNDRV_PCM_TRIGGER_START:
45 case SNDRV_PCM_TRIGGER_RESUME:
46 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
> 47 mdelay(max98357a->sdmode_delay);
48 gpiod_set_value(max98357a->sdmode, 1);
49 break;
50 case SNDRV_PCM_TRIGGER_STOP:
51 case SNDRV_PCM_TRIGGER_SUSPEND:
52 case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
53 gpiod_set_value(max98357a->sdmode, 0);
54 break;
55 }
56
57 return 0;
58 }
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 2265/2770] drivers/net/wireless/ath/ath10k/htt_rx.c:1780:7: warning: variable 'more_frags' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec2618180c3450d06a6a4ba951d4c9a2c689b517
commit: a1166b2653db2f3de7338b9fb8a0f6e924b904ee [2265/2770] ath10k: add CCMP PN replay protection for fragmented frames for PCIe
config: h8300-randconfig-r035-20210513 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
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/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a1166b2653db2f3de7338b9fb8a0f6e924b904ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/net/wireless/ath/ath10k/htt_rx.c: In function 'ath10k_htt_rx_h_frag_pn_check':
>> drivers/net/wireless/ath/ath10k/htt_rx.c:1780:7: warning: variable 'more_frags' set but not used [-Wunused-but-set-variable]
1780 | bool more_frags;
| ^~~~~~~~~~
vim +/more_frags +1780 drivers/net/wireless/ath/ath10k/htt_rx.c
1770
1771 static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar,
1772 struct sk_buff *skb,
1773 u16 peer_id,
1774 u16 offset,
1775 enum htt_rx_mpdu_encrypt_type enctype)
1776 {
1777 struct ath10k_peer *peer;
1778 union htt_rx_pn_t *last_pn, new_pn = {0};
1779 struct ieee80211_hdr *hdr;
> 1780 bool more_frags;
1781 u8 tid, frag_number;
1782 u32 seq;
1783
1784 peer = ath10k_peer_find_by_id(ar, peer_id);
1785 if (!peer) {
1786 ath10k_dbg(ar, ATH10K_DBG_HTT, "invalid peer for frag pn check\n");
1787 return false;
1788 }
1789
1790 hdr = (struct ieee80211_hdr *)(skb->data + offset);
1791 if (ieee80211_is_data_qos(hdr->frame_control))
1792 tid = ieee80211_get_tid(hdr);
1793 else
1794 tid = ATH10K_TXRX_NON_QOS_TID;
1795
1796 last_pn = &peer->frag_tids_last_pn[tid];
1797 new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, offset, enctype);
1798 more_frags = ieee80211_has_morefrags(hdr->frame_control);
1799 frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
1800 seq = (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
1801
1802 if (frag_number == 0) {
1803 last_pn->pn48 = new_pn.pn48;
1804 peer->frag_tids_seq[tid] = seq;
1805 } else {
1806 if (seq != peer->frag_tids_seq[tid])
1807 return false;
1808
1809 if (new_pn.pn48 != last_pn->pn48 + 1)
1810 return false;
1811
1812 last_pn->pn48 = new_pn.pn48;
1813 }
1814
1815 return true;
1816 }
1817
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[jolsa-perf:bpf/graph 2/3] kernel/trace/fgraph.c:338:12: error: 'ftrace_graph_func' undeclared here (not in a function); did you mean 'ftrace_graph_ent'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/graph
head: 6d3a6d7a66654d84166f80193719450de17b8847
commit: 6b75d0dafcfbaafe55c543c044b2fcf0b91140de [2/3] x86/ftrace: Make function graph use ftrace directly
config: sparc64-randconfig-r004-20210513 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
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/jolsa/perf.git/commit/?id...
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/graph
git checkout 6b75d0dafcfbaafe55c543c044b2fcf0b91140de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/trace/fgraph.c:234:15: warning: no previous prototype for 'ftrace_return_to_handler' [-Wmissing-prototypes]
234 | unsigned long ftrace_return_to_handler(unsigned long frame_pointer)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/trace/fgraph.c:338:12: error: 'ftrace_graph_func' undeclared here (not in a function); did you mean 'ftrace_graph_ent'?
338 | .func = ftrace_graph_func,
| ^~~~~~~~~~~~~~~~~
| ftrace_graph_ent
>> kernel/trace/fgraph.c:341:8: error: expected '}' before 'FTRACE_OPS_GRAPH_STUB'
341 | FTRACE_OPS_GRAPH_STUB,
| ^~~~~~~~~~~~~~~~~~~~~
kernel/trace/fgraph.c:337:38: note: to match this '{'
337 | static struct ftrace_ops graph_ops = {
| ^
kernel/trace/fgraph.c:349:6: warning: no previous prototype for 'ftrace_graph_sleep_time_control' [-Wmissing-prototypes]
349 | void ftrace_graph_sleep_time_control(bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +338 kernel/trace/fgraph.c
336
337 static struct ftrace_ops graph_ops = {
> 338 .func = ftrace_graph_func,
339 .flags = FTRACE_OPS_FL_INITIALIZED |
340 FTRACE_OPS_FL_PID
> 341 FTRACE_OPS_GRAPH_STUB,
342 #ifdef FTRACE_GRAPH_TRAMP_ADDR
343 .trampoline = FTRACE_GRAPH_TRAMP_ADDR,
344 /* trampoline_size is only needed for dynamically allocated tramps */
345 #endif
346 ASSIGN_OPS_HASH(graph_ops, &global_ops.local_hash)
347 };
348
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 2317/2770] cdc-wdm.c:undefined reference to `wwan_port_get_drvdata'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec2618180c3450d06a6a4ba951d4c9a2c689b517
commit: cac6fb015f719104e60b1c68c15ca5b734f57b9c [2317/2770] usb: class: cdc-wdm: WWAN framework integration
config: arm64-randconfig-r025-20210513 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout cac6fb015f719104e60b1c68c15ca5b734f57b9c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_stop':
>> cdc-wdm.c:(.text+0x2e4): undefined reference to `wwan_port_get_drvdata'
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_tx':
cdc-wdm.c:(.text+0x344): undefined reference to `wwan_port_get_drvdata'
>> aarch64-linux-ld: cdc-wdm.c:(.text+0x444): undefined reference to `wwan_port_txoff'
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_start':
cdc-wdm.c:(.text+0x46c): undefined reference to `wwan_port_get_drvdata'
>> aarch64-linux-ld: cdc-wdm.c:(.text+0x4e8): undefined reference to `wwan_port_txon'
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_wwan_port_tx_complete':
>> cdc-wdm.c:(.text+0x52c): undefined reference to `wwan_port_txon'
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_in_callback':
cdc-wdm.c:(.text+0xe4c): undefined reference to `wwan_port_rx'
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_disconnect':
>> cdc-wdm.c:(.text+0x3040): undefined reference to `wwan_remove_port'
aarch64-linux-ld: drivers/usb/class/cdc-wdm.o: in function `wdm_create':
>> cdc-wdm.c:(.text+0x3630): undefined reference to `wwan_create_port'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 2605/2770] mm/kasan/report.c:233:2: error: implicit declaration of function 'dump_stack_lvl'; did you mean 'dump_stack'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec2618180c3450d06a6a4ba951d4c9a2c689b517
commit: 9fb7170c7fba3f6099d57b3d028c500df70a9980 [2605/2770] kasan: use dump_stack_lvl(KERN_ERR) to print stacks
config: arm64-randconfig-r014-20210513 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 9fb7170c7fba3f6099d57b3d028c500df70a9980
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/kasan/report.c: In function 'print_address_description':
>> mm/kasan/report.c:233:2: error: implicit declaration of function 'dump_stack_lvl'; did you mean 'dump_stack'? [-Werror=implicit-function-declaration]
233 | dump_stack_lvl(KERN_ERR);
| ^~~~~~~~~~~~~~
| dump_stack
cc1: some warnings being treated as errors
vim +233 mm/kasan/report.c
228
229 static void print_address_description(void *addr, u8 tag)
230 {
231 struct page *page = kasan_addr_to_page(addr);
232
> 233 dump_stack_lvl(KERN_ERR);
234 pr_err("\n");
235
236 if (page && PageSlab(page)) {
237 struct kmem_cache *cache = page->slab_cache;
238 void *object = nearest_obj(cache, page, addr);
239
240 describe_object(cache, object, addr, tag);
241 }
242
243 if (kernel_or_module_addr(addr) && !init_task_stack_addr(addr)) {
244 pr_err("The buggy address belongs to the variable:\n");
245 pr_err(" %pS\n", addr);
246 }
247
248 if (page) {
249 pr_err("The buggy address belongs to the page:\n");
250 dump_page(page, "kasan: bad access detected");
251 }
252
253 kasan_print_address_stack_frame(addr);
254 }
255
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[xlnx:xlnx_rebase_v5.4 1171/1757] drivers/irqchip/irq-xilinx-intc.c:295:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'generic_handle_irq'?
by kernel test robot
Hi Michal,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: f09edce8c39b74223461bf2175649535ebe8b213
commit: e310970affe01f4432b5a022438bae976c7f324f [1171/1757] irqchip: xilinx: Enable generic irq multi handler
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/e310970affe01f4432b5a022438ba...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout e310970affe01f4432b5a022438bae976c7f324f
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
drivers/irqchip/irq-xilinx-intc.c: In function 'xilinx_intc_of_init':
>> drivers/irqchip/irq-xilinx-intc.c:295:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'generic_handle_irq'? [-Werror=implicit-function-declaration]
295 | set_handle_irq(xil_intc_handle_irq);
| ^~~~~~~~~~~~~~
| generic_handle_irq
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for UIO_DMEM_GENIRQ
Depends on UIO && HAS_DMA
Selected by
- UIO_XILINX_AI_ENGINE && UIO
vim +295 drivers/irqchip/irq-xilinx-intc.c
194
195 static int __init xilinx_intc_of_init(struct device_node *intc,
196 struct device_node *parent)
197 {
198 int ret, irq;
199 struct xintc_irq_chip *irqc;
200 struct irq_chip *intc_dev;
201 u32 cpu_id = 0;
202
203 ret = of_property_read_u32(intc, "cpu-id", &cpu_id);
204 if (ret < 0)
205 pr_err("%s: %pOF: cpu_id not found\n", __func__, intc);
206
207 /* No parent means it is primary intc */
208 if (!parent) {
209 irqc = per_cpu_ptr(&primary_intc, cpu_id);
210 if (irqc->base) {
211 pr_err("%pOF: %s: cpu %d has already irq controller\n",
212 intc, __func__, cpu_id);
213 return -EINVAL;
214 }
215 } else {
216 irqc = kzalloc(sizeof(*irqc), GFP_KERNEL);
217 if (!irqc)
218 return -ENOMEM;
219 }
220
221 irqc->base = of_iomap(intc, 0);
222 BUG_ON(!irqc->base);
223
224 ret = of_property_read_u32(intc, "xlnx,num-intr-inputs", &irqc->nr_irq);
225 if (ret < 0) {
226 pr_err("irq-xilinx: unable to read xlnx,num-intr-inputs\n");
227 goto error;
228 }
229
230 ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask);
231 if (ret < 0) {
232 pr_warn("irq-xilinx: unable to read xlnx,kind-of-intr\n");
233 irqc->intr_mask = 0;
234 }
235
236 if (irqc->intr_mask >> irqc->nr_irq)
237 pr_warn("irq-xilinx: mismatch in kind-of-intr param\n");
238
239 pr_info("irq-xilinx: %pOF: num_irq=%d, edge=0x%x\n",
240 intc, irqc->nr_irq, irqc->intr_mask);
241
242 intc_dev = kzalloc(sizeof(*intc_dev), GFP_KERNEL);
243 if (!intc_dev) {
244 ret = -ENOMEM;
245 goto error;
246 }
247
248 intc_dev->name = intc->full_name;
249 intc_dev->irq_unmask = intc_enable_or_unmask,
250 intc_dev->irq_mask = intc_disable_or_mask,
251 intc_dev->irq_ack = intc_ack,
252 intc_dev->irq_mask_ack = intc_mask_ack,
253 irqc->intc_dev = intc_dev;
254
255 irqc->write_fn = xintc_write;
256 irqc->read_fn = xintc_read;
257 /*
258 * Disable all external interrupts until they are
259 * explicity requested.
260 */
261 irqc->write_fn(irqc->base + IER, 0);
262
263 /* Acknowledge any pending interrupts just in case. */
264 irqc->write_fn(irqc->base + IAR, 0xffffffff);
265
266 /* Turn on the Master Enable. */
267 irqc->write_fn(irqc->base + MER, MER_HIE | MER_ME);
268 if (!(irqc->read_fn(irqc->base + MER) & (MER_HIE | MER_ME))) {
269 irqc->write_fn = xintc_write_be;
270 irqc->read_fn = xintc_read_be;
271 irqc->write_fn(irqc->base + MER, MER_HIE | MER_ME);
272 }
273
274 irqc->root_domain = irq_domain_add_linear(intc, irqc->nr_irq,
275 &xintc_irq_domain_ops, irqc);
276 if (!irqc->root_domain) {
277 pr_err("irq-xilinx: Unable to create IRQ domain\n");
278 ret = -EINVAL;
279 goto err_alloc;
280 }
281
282 if (parent) {
283 irq = irq_of_parse_and_map(intc, 0);
284 if (irq) {
285 irq_set_chained_handler_and_data(irq,
286 xil_intc_irq_handler,
287 irqc);
288 } else {
289 pr_err("irq-xilinx: interrupts property not in DT\n");
290 ret = -EINVAL;
291 goto err_alloc;
292 }
293 } else {
294 irq_set_default_host(irqc->root_domain);
> 295 set_handle_irq(xil_intc_handle_irq);
296 }
297
298 return 0;
299
300 err_alloc:
301 kfree(intc_dev);
302 error:
303 iounmap(irqc->base);
304 if (parent)
305 kfree(irqc);
306 return ret;
307
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[chrome-os:chromeos-4.19 31/39] drivers/net/wireless/ath/ath10k/htt_rx.c:1556:7: error: variable 'more_frags' set but not used
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: fd9257f21c8e6b27d0de6e42b32d1136266c8701
commit: 318ac899ffacd36596e01c9a784fe1bd007aa6e4 [31/39] FROMGIT: ath10k: add CCMP PN replay protection for fragmented frames for PCIe
config: arm64-chromiumos-arm64-customedconfig-chrome-os:chromeos-4.19:1c68c68e817969a1e15b79c9aa4d7561b21a509d (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.19
git checkout 318ac899ffacd36596e01c9a784fe1bd007aa6e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/wireless/ath/ath10k/core.h:18,
from drivers/net/wireless/ath/ath10k/htt_rx.c:8:
drivers/net/wireless/ath/ath10k/htt.h:1764:1: error: alignment 1 of 'struct ath10k_htt_txbuf_32' is less than 4 [-Werror=packed-not-aligned]
1764 | } __packed;
| ^
drivers/net/wireless/ath/ath10k/htt.h:1771:1: error: alignment 1 of 'struct ath10k_htt_txbuf_64' is less than 4 [-Werror=packed-not-aligned]
1771 | } __packed;
| ^
drivers/net/wireless/ath/ath10k/htt_rx.c: In function 'ath10k_htt_rx_h_frag_pn_check':
>> drivers/net/wireless/ath/ath10k/htt_rx.c:1556:7: error: variable 'more_frags' set but not used [-Werror=unused-but-set-variable]
1556 | bool more_frags;
| ^~~~~~~~~~
cc1: all warnings being treated as errors
vim +/more_frags +1556 drivers/net/wireless/ath/ath10k/htt_rx.c
1546
1547 static bool ath10k_htt_rx_h_frag_pn_check(struct ath10k *ar,
1548 struct sk_buff *skb,
1549 u16 peer_id,
1550 u16 offset,
1551 enum htt_rx_mpdu_encrypt_type enctype)
1552 {
1553 struct ath10k_peer *peer;
1554 union htt_rx_pn_t *last_pn, new_pn = {0};
1555 struct ieee80211_hdr *hdr;
> 1556 bool more_frags;
1557 u8 tid, frag_number;
1558 u32 seq;
1559
1560 peer = ath10k_peer_find_by_id(ar, peer_id);
1561 if (!peer) {
1562 ath10k_dbg(ar, ATH10K_DBG_HTT, "invalid peer for frag pn check\n");
1563 return false;
1564 }
1565
1566 hdr = (struct ieee80211_hdr *)(skb->data + offset);
1567 if (ieee80211_is_data_qos(hdr->frame_control))
1568 tid = ieee80211_get_tid(hdr);
1569 else
1570 tid = ATH10K_TXRX_NON_QOS_TID;
1571
1572 last_pn = &peer->frag_tids_last_pn[tid];
1573 new_pn.pn48 = ath10k_htt_rx_h_get_pn(ar, skb, offset, enctype);
1574 more_frags = ieee80211_has_morefrags(hdr->frame_control);
1575 frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
1576 seq = (__le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
1577
1578 if (frag_number == 0) {
1579 last_pn->pn48 = new_pn.pn48;
1580 peer->frag_tids_seq[tid] = seq;
1581 } else {
1582 if (seq != peer->frag_tids_seq[tid])
1583 return false;
1584
1585 if (new_pn.pn48 != last_pn->pn48 + 1)
1586 return false;
1587
1588 last_pn->pn48 = new_pn.pn48;
1589 }
1590
1591 return true;
1592 }
1593
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[intel-tdx:guest 51/63] drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158.
by Dan Carpenter
tree: https://github.com/intel/tdx.git guest
head: 8c20c364d1f52e432181d142054b1c2efa0ae6d3
commit: 62c2d9fae275d5bf50f869e8cfb71d2ca1f71363 [51/63] ACPI: Add SVKL table support
config: x86_64-randconfig-m001-20210513 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158.
vim +165 drivers/acpi/svkl.c
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 141 static int __init acpi_svkl_init(void)
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 142 {
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 143 acpi_status status = AE_OK;
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 144 int ret;
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 145
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 146 ret = misc_register(&acpi_svkl_dev);
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 147 if (ret) {
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 148 pr_err("SVKL: can't misc_register on minor=%d\n",
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 149 MISC_DYNAMIC_MINOR);
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 150 return ret;
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 151 }
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 152
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 153 mutex_init(&svkl_lock);
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 154
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 155 status = acpi_get_table(ACPI_SIG_SVKL, 0, &svkl_tbl_hdr);
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 156 if (ACPI_FAILURE(status) || !svkl_tbl_hdr) {
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 157 pr_err("get table failed\n");
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 158 return -ENODEV;
Static checker expected misc_unregister() before the return.
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 159 }
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 160
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 161 dump_svkl_header();
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 162
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 163 pr_info("ACPI: SVKL module loaded\n");
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 164
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 @165 return 0;
62c2d9fae275d5 Kuppuswamy Sathyanarayanan 2020-06-19 166 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months