linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Ryan Ding <ryan.ding@oracle.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 3174/3442] fs/ocfs2/file.c:2297:3: note: in expansion of macro 'xchg'
Date: Thu, 26 Nov 2015 16:45:21 +0800	[thread overview]
Message-ID: <201511261619.Q4kX5Hst%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7dd2ecb6facfd1ac1a1cccc908e88e20e65e5801
commit: 5d974dfe80b2322a6b0afc85beb15fe9bc233804 [3174/3442] ocfs2: fix ip_unaligned_aio deadlock with dio work queue
config: m68k-sun3_defconfig (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
        git checkout 5d974dfe80b2322a6b0afc85beb15fe9bc233804
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   In file included from arch/m68k/include/asm/atomic.h:6:0,
                    from include/linux/atomic.h:4,
                    from include/linux/spinlock.h:406,
                    from include/linux/wait.h:8,
                    from include/linux/fs.h:5,
                    from fs/ocfs2/file.c:27:
   fs/ocfs2/file.c: In function 'ocfs2_file_write_iter':
   arch/m68k/include/asm/cmpxchg.h:78:22: warning: value computed is not used [-Wunused-value]
    #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
                         ^
>> fs/ocfs2/file.c:2297:3: note: in expansion of macro 'xchg'
      xchg(&iocb->ki_complete, saved_ki_complete);
      ^

vim +/xchg +2297 fs/ocfs2/file.c

  2281				written = ret;
  2282	
  2283			if (!ret) {
  2284				ret = jbd2_journal_force_commit(osb->journal->j_journal);
  2285				if (ret < 0)
  2286					written = ret;
  2287			}
  2288	
  2289			if (!ret)
  2290				ret = filemap_fdatawait_range(file->f_mapping,
  2291							      iocb->ki_pos - written,
  2292							      iocb->ki_pos - 1);
  2293		}
  2294	
  2295	out:
  2296		if (saved_ki_complete)
> 2297			xchg(&iocb->ki_complete, saved_ki_complete);
  2298	
  2299		if (rw_level != -1)
  2300			ocfs2_rw_unlock(inode, rw_level);
  2301	
  2302	out_mutex:
  2303		mutex_unlock(&inode->i_mutex);
  2304	
  2305		if (written)

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

             reply	other threads:[~2015-11-26  8:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-26  8:45 kbuild test robot [this message]
2015-11-30 22:39 ` Andrew Morton
2015-12-01  8:07   ` Geert Uytterhoeven

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=201511261619.Q4kX5Hst%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=ryan.ding@oracle.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