mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Yangtao Li <tiny.windzz@gmail.com>
Cc: kbuild-all@01.org, ed.cashin@acm.org, axboe@kernel.dk,
	philipp.reisner@linbit.com, lars.ellenberg@linbit.com,
	josef@toxicpanda.com, linux-block@vger.kernel.org,
	josh.h.morris@us.ibm.com, pjk1939@linux.vnet.ibm.com,
	linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com,
	nbd@other.debian.org, Yangtao Li <tiny.windzz@gmail.com>
Subject: Re: [PATCH] block: Change to use DEFINE_SHOW_ATTRIBUTE macro
Date: Sat, 1 Dec 2018 21:58:09 +0800	[thread overview]
Message-ID: <201812012108.iymkwaQi%fengguang.wu@intel.com> (raw)
In-Reply-To: <20181201032200.5746-1-tiny.windzz@gmail.com>

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

Hi Yangtao,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.20-rc4 next-20181130]
[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/Yangtao-Li/block-Change-to-use-DEFINE_SHOW_ATTRIBUTE-macro/20181201-211704
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: i386-randconfig-x075-201847 (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 errors (new ones prefixed by >>):

>> drivers//block/pktcdvd.c:2244:12: error: conflicting types for 'pkt_open'
    static int pkt_open(struct block_device *bdev, fmode_t mode)
               ^~~~~~~~
   In file included from include/linux/cgroup.h:18:0,
                    from include/linux/kthread.h:7,
                    from drivers//block/pktcdvd.c:54:
   drivers//block/pktcdvd.c:455:23: note: previous definition of 'pkt_open' was here
    DEFINE_SHOW_ATTRIBUTE(pkt);
                          ^
   include/linux/seq_file.h:149:12: note: in definition of macro 'DEFINE_SHOW_ATTRIBUTE'
    static int __name ## _open(struct inode *inode, struct file *file) \
               ^~~~~~

vim +/pkt_open +2244 drivers//block/pktcdvd.c

^1da177e Linus Torvalds  2005-04-16  2243  
5e5e007c Al Viro         2008-03-02 @2244  static int pkt_open(struct block_device *bdev, fmode_t mode)
^1da177e Linus Torvalds  2005-04-16  2245  {
^1da177e Linus Torvalds  2005-04-16  2246  	struct pktcdvd_device *pd = NULL;
^1da177e Linus Torvalds  2005-04-16  2247  	int ret;
^1da177e Linus Torvalds  2005-04-16  2248  
2a48fc0a Arnd Bergmann   2010-06-02  2249  	mutex_lock(&pktcdvd_mutex);
1657f824 Jes Sorensen    2006-03-23  2250  	mutex_lock(&ctl_mutex);
5e5e007c Al Viro         2008-03-02  2251  	pd = pkt_find_dev_from_minor(MINOR(bdev->bd_dev));
^1da177e Linus Torvalds  2005-04-16  2252  	if (!pd) {
^1da177e Linus Torvalds  2005-04-16  2253  		ret = -ENODEV;
^1da177e Linus Torvalds  2005-04-16  2254  		goto out;
^1da177e Linus Torvalds  2005-04-16  2255  	}
^1da177e Linus Torvalds  2005-04-16  2256  	BUG_ON(pd->refcnt < 0);
^1da177e Linus Torvalds  2005-04-16  2257  
^1da177e Linus Torvalds  2005-04-16  2258  	pd->refcnt++;
46f4e1b7 Peter Osterlund 2005-05-20  2259  	if (pd->refcnt > 1) {
5e5e007c Al Viro         2008-03-02  2260  		if ((mode & FMODE_WRITE) &&
46f4e1b7 Peter Osterlund 2005-05-20  2261  		    !test_bit(PACKET_WRITABLE, &pd->flags)) {
46f4e1b7 Peter Osterlund 2005-05-20  2262  			ret = -EBUSY;
46f4e1b7 Peter Osterlund 2005-05-20  2263  			goto out_dec;
46f4e1b7 Peter Osterlund 2005-05-20  2264  		}
46f4e1b7 Peter Osterlund 2005-05-20  2265  	} else {
5e5e007c Al Viro         2008-03-02  2266  		ret = pkt_open_dev(pd, mode & FMODE_WRITE);
01fd9fda Peter Osterlund 2006-02-14  2267  		if (ret)
^1da177e Linus Torvalds  2005-04-16  2268  			goto out_dec;
^1da177e Linus Torvalds  2005-04-16  2269  		/*
^1da177e Linus Torvalds  2005-04-16  2270  		 * needed here as well, since ext2 (among others) may change
^1da177e Linus Torvalds  2005-04-16  2271  		 * the blocksize at mount time
^1da177e Linus Torvalds  2005-04-16  2272  		 */
5e5e007c Al Viro         2008-03-02  2273  		set_blocksize(bdev, CD_FRAMESIZE);
^1da177e Linus Torvalds  2005-04-16  2274  	}
^1da177e Linus Torvalds  2005-04-16  2275  
1657f824 Jes Sorensen    2006-03-23  2276  	mutex_unlock(&ctl_mutex);
2a48fc0a Arnd Bergmann   2010-06-02  2277  	mutex_unlock(&pktcdvd_mutex);
^1da177e Linus Torvalds  2005-04-16  2278  	return 0;
^1da177e Linus Torvalds  2005-04-16  2279  
^1da177e Linus Torvalds  2005-04-16  2280  out_dec:
^1da177e Linus Torvalds  2005-04-16  2281  	pd->refcnt--;
^1da177e Linus Torvalds  2005-04-16  2282  out:
1657f824 Jes Sorensen    2006-03-23  2283  	mutex_unlock(&ctl_mutex);
2a48fc0a Arnd Bergmann   2010-06-02  2284  	mutex_unlock(&pktcdvd_mutex);
^1da177e Linus Torvalds  2005-04-16  2285  	return ret;
^1da177e Linus Torvalds  2005-04-16  2286  }
^1da177e Linus Torvalds  2005-04-16  2287  

:::::: The code at line 2244 was first introduced by commit
:::::: 5e5e007c25009c304af693b7fc49bab8d1d25801 [PATCH] switch pktdvdcd

:::::: TO: Al Viro <viro@zeniv.linux.org.uk>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

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

  reply	other threads:[~2018-12-01 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-01  3:22 Yangtao Li
2018-12-01 13:58 ` kbuild test robot [this message]
2018-12-01 14:26   ` Frank Lee

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=201812012108.iymkwaQi%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=drbd-dev@lists.linbit.com \
    --cc=ed.cashin@acm.org \
    --cc=josef@toxicpanda.com \
    --cc=josh.h.morris@us.ibm.com \
    --cc=kbuild-all@01.org \
    --cc=lars.ellenberg@linbit.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nbd@other.debian.org \
    --cc=philipp.reisner@linbit.com \
    --cc=pjk1939@linux.vnet.ibm.com \
    --cc=tiny.windzz@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®