From: kbuild test robot <lkp@intel.com>
To: Icenowy Zheng <icenowy@outlook.com>
Cc: kbuild-all@01.org, gregkh@linuxfoundation.org,
devel@driverdev.osuosl.org, Icenowy Zheng <icenowy@outlook.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: esp8089: add new driver
Date: Sun, 19 Jun 2016 20:06:03 +0800 [thread overview]
Message-ID: <201606192052.SPDmTrgc%fengguang.wu@intel.com> (raw)
In-Reply-To: <BLU436-SMTP46405BB440DB05229192A1BC290@phx.gbl>
[-- Attachment #1: Type: text/plain, Size: 3214 bytes --]
Hi,
[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.7-rc3 next-20160617]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Icenowy-Zheng/staging-esp8089-add-new-driver/20160619-182134
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/string.h:2:0,
from include/linux/string.h:18,
from arch/x86/include/asm/page_32.h:34,
from arch/x86/include/asm/page.h:13,
from arch/x86/include/asm/thread_info.h:11,
from include/linux/thread_info.h:54,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/mm_types.h:8,
from include/linux/kmemcheck.h:4,
from include/linux/skbuff.h:18,
from include/linux/if_ether.h:23,
from include/linux/etherdevice.h:25,
from drivers/staging/esp8089/esp_mac80211.c:7:
drivers/staging/esp8089/esp_mac80211.c: In function 'beacon_tim_init':
>> arch/x86/include/asm/string_32.h:325:29: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
#define memset(s, c, count) __builtin_memset(s, c, count)
^
>> drivers/staging/esp8089/esp_mac80211.c:325:2: note: in expansion of macro 'memset'
memset(beacon_tim_saved, BEACON_TIM_SAVE_MAX, 0);
^~~~~~
drivers/staging/esp8089/esp_mac80211.c: At top level:
drivers/staging/esp8089/esp_mac80211.c:1377:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ampdu_action = esp_op_ampdu_action,
^~~~~~~~~~~~~~~~~~~
drivers/staging/esp8089/esp_mac80211.c:1377:18: note: (near initialization for 'esp_mac80211_ops.ampdu_action')
cc1: some warnings being treated as errors
vim +/memset +325 drivers/staging/esp8089/esp_mac80211.c
309 }
310 epub->vif = NULL;
311 evif->epub = NULL;
312
313 sip_cmd(epub, SIP_CMD_SETVIF, (u8 *) & svif,
314 sizeof(struct sip_cmd_setvif));
315
316 /* clean up tx/rx queue */
317
318 }
319
320 #define BEACON_TIM_SAVE_MAX 20
321 u8 beacon_tim_saved[BEACON_TIM_SAVE_MAX];
322 int beacon_tim_count;
323 static void beacon_tim_init(void)
324 {
> 325 memset(beacon_tim_saved, BEACON_TIM_SAVE_MAX, 0);
326 beacon_tim_count = 0;
327 }
328
329 static u8 beacon_tim_save(u8 this_tim)
330 {
331 u8 all_tim = 0;
332 int i;
333 beacon_tim_saved[beacon_tim_count] = this_tim;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 55069 bytes --]
next prev parent reply other threads:[~2016-06-19 12:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BLU436-SMTP46405BB440DB05229192A1BC290@phx.gbl>
2016-06-19 11:18 ` kbuild test robot
2016-06-19 12:06 ` kbuild test robot [this message]
2016-06-19 13:19 ` kbuild 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=201606192052.SPDmTrgc%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=icenowy@outlook.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
/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®