mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Saidgani Musaev <cpu808694@gmail.com>
Cc: kbuild-all@01.org, ming.lei@canonical.com,
	linux-kernel@vger.kernel.org,
	Saidgani Musaev <cpu808694@gmail.com>
Subject: Re: [PATCH] Drivers: block: fixed a code style issue
Date: Wed, 29 Jun 2016 03:54:55 +0800	[thread overview]
Message-ID: <201606290326.Jilkxa2u%fengguang.wu@intel.com> (raw)
In-Reply-To: <1467139930-21955-1-git-send-email-cpu808694@gmail.com>

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

Hi,

[auto build test WARNING on v4.7-rc5]
[also build test WARNING on next-20160628]
[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/Saidgani-Musaev/Drivers-block-fixed-a-code-style-issue/20160629-025927
config: mips-jz4740 (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
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=mips 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:4:0,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from drivers/block/loop.c:52:
   drivers/block/loop.c: In function 'max_loop_setup':
>> include/linux/stddef.h:7:14: warning: passing argument 2 of 'kstrtol' makes integer from pointer without a cast [-Wint-conversion]
    #define NULL ((void *)0)
                 ^
>> drivers/block/loop.c:2055:26: note: in expansion of macro 'NULL'
     max_loop = kstrtol(str, NULL, 0);
                             ^
   In file included from include/linux/list.h:8:0,
                    from include/linux/module.h:9,
                    from drivers/block/loop.c:52:
   include/linux/kernel.h:327:32: note: expected 'unsigned int' but argument is of type 'void *'
    static inline int __must_check kstrtol(const char *s, unsigned int base, long *res)
                                   ^

vim +/NULL +2055 drivers/block/loop.c

  2039	
  2040		idr_for_each(&loop_index_idr, &loop_exit_cb, NULL);
  2041		idr_destroy(&loop_index_idr);
  2042	
  2043		blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range);
  2044		unregister_blkdev(LOOP_MAJOR, "loop");
  2045	
  2046		misc_deregister(&loop_misc);
  2047	}
  2048	
  2049	module_init(loop_init);
  2050	module_exit(loop_exit);
  2051	
  2052	#ifndef MODULE
  2053	static int __init max_loop_setup(char *str)
  2054	{
> 2055		max_loop = kstrtol(str, NULL, 0);
  2056		return 1;
  2057	}
  2058	
  2059	__setup("max_loop=", max_loop_setup);
  2060	#endif

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

      parent reply	other threads:[~2016-06-28 19:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-28 18:52 Saidgani Musaev
2016-06-28 19:51 ` kbuild test robot
2016-06-28 19:54 ` kbuild test robot [this message]

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=201606290326.Jilkxa2u%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=cpu808694@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@canonical.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®