From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755561AbcECIp0 (ORCPT ); Tue, 3 May 2016 04:45:26 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:35503 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbcECIpX (ORCPT ); Tue, 3 May 2016 04:45:23 -0400 Date: Tue, 3 May 2016 01:45:20 -0700 From: Christoph Hellwig To: "Paul E. McKenney" Cc: Christoph Hellwig , Muhammad Falak R Wani , "Nicholas A. Bellinger" , target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] target: use RCU_INIT_POINTER() when NULLing. Message-ID: <20160503084520.GC31363@infradead.org> References: <1462107122-9562-1-git-send-email-falakreyaz@gmail.com> <20160501170120.GA15010@infradead.org> <20160501195313.GL3686@linux.vnet.ibm.com> <20160502141023.GA1187@linux.vnet.ibm.com> <20160502175738.GA24455@linux.vnet.ibm.com> <20160502175950.GA16580@infradead.org> <20160502180644.GF3512@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160502180644.GF3512@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 02, 2016 at 11:06:44AM -0700, Paul E. McKenney wrote: > And for v. But how do I do that without C++ templates? > > Also, does __builtin_constant_p() work reliably on a parameter? > Especially when the compiler decides not to do the inlining? Yeah, it's going to be a pain indeed, guess that's why it hasn't been done before..