mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Netanel Belgazal <netanel@annapurnalabs.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org, davem@davemloft.net,
	linux-kernel@vger.kernel.org, zorik@annapurnalabs.com,
	saeed@annapurnalabs.com, alex@annapurnalabs.com, msw@amazon.com,
	aliguori@amazon.com, benjamin.poirier@gmail.com,
	ben@decadent.org.uk, romieu@fr.zoreil.com, rami.rosen@intel.com,
	antoine.tenart@free-electrons.com,
	Netanel Belgazal <netanel@annapurnalabs.com>
Subject: Re: [PATCH net-next V2] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)
Date: Thu, 7 Jul 2016 15:53:40 +0800	[thread overview]
Message-ID: <201607071534.Mx1mzo42%fengguang.wu@intel.com> (raw)
In-Reply-To: <1467871095-26394-1-git-send-email-netanel@annapurnalabs.com>

[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

Hi,

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Netanel-Belgazal/net-ena-Add-a-driver-for-Amazon-Elastic-Network-Adapters-ENA/20160707-142005
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 >>):

   drivers/net/ethernet/amazon/ena/ena_com.c: In function 'ena_com_mem_addr_set':
>> drivers/net/ethernet/amazon/ena/ena_com.c:101:33: warning: right shift count >= width of type [-Wshift-count-overflow]
     ena_addr->mem_addr_high = addr >> 32;
                                    ^~

vim +101 drivers/net/ethernet/amazon/ena/ena_com.c

    85	
    86	struct ena_com_stats_ctx {
    87		struct ena_admin_aq_get_stats_cmd get_cmd;
    88		struct ena_admin_acq_get_stats_resp get_resp;
    89	};
    90	
    91	static inline int ena_com_mem_addr_set(struct ena_com_dev *ena_dev,
    92					       struct ena_common_mem_addr *ena_addr,
    93					       dma_addr_t addr)
    94	{
    95		if ((addr & GENMASK_ULL(ena_dev->dma_addr_bits - 1, 0)) != addr) {
    96			pr_err("dma address has more bits that the device supports\n");
    97			return -EINVAL;
    98		}
    99	
   100		ena_addr->mem_addr_low = (u32)addr;
 > 101		ena_addr->mem_addr_high = addr >> 32;
   102	
   103		return 0;
   104	}
   105	
   106	static int ena_com_admin_init_sq(struct ena_com_admin_queue *queue)
   107	{
   108		struct ena_com_admin_sq *sq = &queue->sq;
   109		u16 size = ADMIN_SQ_SIZE(queue->q_depth);

---
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: 55091 bytes --]

  reply	other threads:[~2016-07-07  7:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-07  5:58 Netanel Belgazal
2016-07-07  7:53 ` kbuild test robot [this message]
2016-07-07  9:56 ` Ben Hutchings
2016-07-07 13:07   ` Netanel Belgazal

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=201607071534.Mx1mzo42%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=alex@annapurnalabs.com \
    --cc=aliguori@amazon.com \
    --cc=antoine.tenart@free-electrons.com \
    --cc=ben@decadent.org.uk \
    --cc=benjamin.poirier@gmail.com \
    --cc=davem@davemloft.net \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=msw@amazon.com \
    --cc=netanel@annapurnalabs.com \
    --cc=netdev@vger.kernel.org \
    --cc=rami.rosen@intel.com \
    --cc=romieu@fr.zoreil.com \
    --cc=saeed@annapurnalabs.com \
    --cc=zorik@annapurnalabs.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®