From: kbuild test robot <lkp@intel.com>
To: Manjeet Pawar <manjeet.p@samsung.com>
Cc: kbuild-all@01.org, davem@davemloft.net,
paul.gortmaker@windriver.com, schmitzmic@gmail.com,
geert@linux-m68k.org, nico@fluxnic.net, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, manjeet.p@samsung.com,
akhilesh.k@samsung.com, pankaj.m@samsung.com
Subject: Re: [PATCH 1/1] smsc: Enabling SMSC LAN911 driver for ARM64 as well.
Date: Tue, 12 Jan 2016 06:32:13 +0800 [thread overview]
Message-ID: <201601120631.QdgufFO2%fengguang.wu@intel.com> (raw)
In-Reply-To: <1452502945-27765-1-git-send-email-manjeet.p@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 4858 bytes --]
Hi Manjeet,
[auto build test WARNING on net-next/master]
[also build test WARNING on v4.4 next-20160111]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Manjeet-Pawar/smsc-Enabling-SMSC-LAN911-driver-for-ARM64-as-well/20160111-170643
config: arm64-allmodconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
All warnings (new ones prefixed by >>):
drivers/net/ethernet/smsc/smc911x.c: In function 'smc911x_hardware_send_pkt':
>> drivers/net/ethernet/smsc/smc911x.c:475:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
buf = (char*)((u32)skb->data & ~0x3);
^
>> drivers/net/ethernet/smsc/smc911x.c:475:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
buf = (char*)((u32)skb->data & ~0x3);
^
drivers/net/ethernet/smsc/smc911x.c:476:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
len = (skb->len + 3 + ((u32)skb->data & 3)) & ~0x3;
^
drivers/net/ethernet/smsc/smc911x.c:477:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
cmdA = (((u32)skb->data & 0x3) << 16) |
^
vim +475 drivers/net/ethernet/smsc/smc911x.c
dcdf8710 drivers/net/ethernet/smsc/smc911x.c Ben Boeckel 2013-11-01 459 DBG(SMC_DEBUG_FUNC | SMC_DEBUG_TX, dev, "--> %s\n", __func__);
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 460 BUG_ON(lp->pending_tx_skb == NULL);
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 461
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 462 skb = lp->pending_tx_skb;
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 463 lp->pending_tx_skb = NULL;
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 464
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 465 /* cmdA {25:24] data alignment [20:16] start offset [10:0] buffer length */
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 466 /* cmdB {31:16] pkt tag [10:0] length */
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 467 #ifdef SMC_USE_DMA
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 468 /* 16 byte buffer alignment mode */
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 469 buf = (char*)((u32)(skb->data) & ~0xF);
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 470 len = (skb->len + 0xF + ((u32)skb->data & 0xF)) & ~0xF;
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 471 cmdA = (1<<24) | (((u32)skb->data & 0xF)<<16) |
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 472 TX_CMD_A_INT_FIRST_SEG_ | TX_CMD_A_INT_LAST_SEG_ |
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 473 skb->len;
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 474 #else
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 @475 buf = (char*)((u32)skb->data & ~0x3);
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 476 len = (skb->len + 3 + ((u32)skb->data & 3)) & ~0x3;
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 477 cmdA = (((u32)skb->data & 0x3) << 16) |
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 478 TX_CMD_A_INT_FIRST_SEG_ | TX_CMD_A_INT_LAST_SEG_ |
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 479 skb->len;
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 480 #endif
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 481 /* tag is packet length so we can use this in stats update later */
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 482 cmdB = (skb->len << 16) | (skb->len & 0x7FF);
0a0c72c9 drivers/net/smc911x.c Dustin McIntire 2006-04-19 483
:::::: The code at line 475 was first introduced by commit
:::::: 0a0c72c9118c4e63080eb409f0cfdf15808d23a4 [PATCH] RE: [PATCH 1/1] net driver: Add support for SMSC LAN911x line of ethernet chips
:::::: TO: Dustin McIntire <dustin@sensoria.com>
:::::: CC: Jeff Garzik <jeff@garzik.org>
---
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: 46847 bytes --]
next prev parent reply other threads:[~2016-01-11 22:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 9:02 Manjeet Pawar
2016-01-11 14:10 ` Sergei Shtylyov
2016-01-11 15:16 ` Paul Gortmaker
2016-01-11 22:32 ` kbuild test robot [this message]
2016-01-11 22:45 ` David Miller
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=201601120631.QdgufFO2%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akhilesh.k@samsung.com \
--cc=davem@davemloft.net \
--cc=geert@linux-m68k.org \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manjeet.p@samsung.com \
--cc=netdev@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=pankaj.m@samsung.com \
--cc=paul.gortmaker@windriver.com \
--cc=schmitzmic@gmail.com \
/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®