mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
Cc: kbuild-all@01.org, jakob.unterwurzacher@theobroma-systems.com,
	Martin Elshuber <martin.elshuber@theobroma-systems.com>,
	Philipp Tomsich <philipp.tomsich@theobroma-systems.com>,
	Wolfgang Grandegger <wg@grandegger.com>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	linux-can@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/1] can: ucan: add driver for Theobroma Systems UCAN devices
Date: Fri, 16 Mar 2018 15:01:54 +0800	[thread overview]
Message-ID: <201803161404.cFTPHzwA%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180313173520.21257-2-jakob.unterwurzacher@theobroma-systems.com>

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

Hi Jakob,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.16-rc5]
[cannot apply to next-20180315]
[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/Jakob-Unterwurzacher/can-ucan-add-driver-for-Theobroma-Systems-UCAN-devices/20180316-111528
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/net/can/usb/ucan.c: In function 'ucan_release_context':
>> drivers/net/can/usb/ucan.c:386:21: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
        "context %p (#%ld) was not allocated\n",
                      ~~^
                      %d
        ctx, ctx - up->tx_contexts);
             ~~~~~~~~~~~~~~~~~~~~~

vim +386 drivers/net/can/usb/ucan.c

   376	
   377	static void ucan_release_context(struct ucan_priv *up,
   378					 struct ucan_urb_context *ctx)
   379	{
   380		WARN_ON_ONCE(!up->tx_contexts);
   381		if (!up->tx_contexts)
   382			return;
   383	
   384		if (atomic_cmpxchg(&ctx->allocated, 1, 0) == 0) {
   385			dev_warn(&up->udev->dev,
 > 386				 "context %p (#%ld) was not allocated\n",
   387				 ctx, ctx - up->tx_contexts);
   388		} else {
   389			atomic_inc(&up->available_tx_urbs);
   390			netif_wake_queue(up->netdev);
   391		}
   392	}
   393	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 63071 bytes --]

  parent reply	other threads:[~2018-03-16  7:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-13 17:35 [PATCH v2 0/1] " Jakob Unterwurzacher
2018-03-13 17:35 ` [PATCH v2 1/1] " Jakob Unterwurzacher
2018-03-13 17:44   ` Marc Kleine-Budde
2018-03-13 17:53     ` Jakob Unterwurzacher
2018-03-13 17:56       ` Marc Kleine-Budde
2018-03-14  7:51   ` Marc Kleine-Budde
2018-03-14  9:09     ` Jakob Unterwurzacher
2018-03-14  9:36       ` rx_packets/bytes stats for error frames (was: Re: [PATCH v2 1/1] can: ucan: add driver for Theobroma Systems UCAN devices) Marc Kleine-Budde
2018-03-14  9:46         ` rx_packets/bytes stats for error frames Wolfgang Grandegger
2018-03-14  9:57           ` Jakob Unterwurzacher
2018-03-14  9:11   ` [PATCH v2 1/1] can: ucan: add driver for Theobroma Systems UCAN devices Wolfgang Grandegger
2018-03-14  9:14     ` Jakob Unterwurzacher
2018-03-14  9:17       ` Wolfgang Grandegger
2018-03-14  9:21         ` Jakob Unterwurzacher
2018-03-14  9:25         ` Wolfgang Grandegger
2018-03-14  9:48           ` Jakob Unterwurzacher
2018-03-14 10:04             ` Wolfgang Grandegger
2018-03-14 10:19               ` Jakob Unterwurzacher
2018-03-14 19:07               ` Jakob Unterwurzacher
2018-03-15  6:58                 ` Wolfgang Grandegger
2018-03-16  7:01   ` kbuild test robot [this message]
2018-03-16 12:14   ` kbuild test robot
2018-03-13 17:40 ` [PATCH v2 0/1] Open questions Jakob Unterwurzacher
     [not found]   ` <06378497-1ACE-4333-810F-4E3E4706CCD5@theobroma-systems.com>
2018-03-13 17:48     ` Jakob Unterwurzacher
2018-03-13 17:48     ` Marc Kleine-Budde

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=201803161404.cFTPHzwA%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=jakob.unterwurzacher@theobroma-systems.com \
    --cc=kbuild-all@01.org \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.elshuber@theobroma-systems.com \
    --cc=mkl@pengutronix.de \
    --cc=philipp.tomsich@theobroma-systems.com \
    --cc=wg@grandegger.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®