From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753870AbcB2LF1 (ORCPT ); Mon, 29 Feb 2016 06:05:27 -0500 Received: from ozlabs.org ([103.22.144.67]:33834 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752021AbcB2LF0 (ORCPT ); Mon, 29 Feb 2016 06:05:26 -0500 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 10d8b1480e6966ba03cd3afad3b5d6eb5e341fae In-Reply-To: <56CC3CDD.8040006@linux.vnet.ibm.com> To: xinhui , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: "Peter Zijlstra \(Intel\)" , Boqun Feng , Paul Mackerras , Thomas Gleixner , "Paul E. McKenney" Subject: Re: [V2] arch/powerpc: use BUILD_BUG_ON_MSG() when detect unfit {cmp}xchg size Message-Id: <20160229110524.59951140662@ozlabs.org> Date: Mon, 29 Feb 2016 22:05:24 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-23-02 at 11:05:01 UTC, xinhui wrote: > From: pan xinhui > > __xchg_called_with_bad_pointer() can't tell us what codes use {cmp}xchg > in incorrect way. And no error will be reported until the link stage. > To fix such a kind of issues easily, we use BUILD_BUG_ON_MSG() here. > > Signed-off-by: pan xinhui Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/10d8b1480e6966ba03cd3afad3 cheers