Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2464526imm; Mon, 28 May 2018 08:34:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrmHb46PaOkll7vBq3JSWh0YxULo79viCR2fMPmJSkuz9Fy2AdQ4dhR4a+NNbn44TZkzwzV X-Received: by 2002:a17:902:82cc:: with SMTP id u12-v6mr13923432plz.83.1527521646571; Mon, 28 May 2018 08:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527521646; cv=none; d=google.com; s=arc-20160816; b=kMDHtrcDy1KH9IArjwImvJkWZx5c4qkEYkLbZWcxA8TGzLRbBuQ0xadCxelG2YV2Gf 3AtSgd6ROBwLA3TjmjsWbM0UTWlTHi2bEwnl1Lp4xVZg63DeIMS3vaf8nvD1M1wfJyJ3 7MwbkSCBZwbHWnMCNVuuGqEbvUevoS88O/mCo5FZkokPNPUDYdMOijtkKzOAtx91r16x 69xloGOR+gn4OKuapEwjSLqrQfIMcXbCV3oZuQZ/djnSL9xRiujf8I/eoQ2he3LRGBae qhdMiPncHMLXvcL3ClLjwEMIfx5A+3tbpi7iHvXqyO8tHgb89/ePJJ2cBLK9bXnwsv8h bZdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Qk1uZKczsILAo+HQJFeHButXD/80eX8Zdx0ItjMpJx4=; b=NQSZf4pj17r3qgEQsWP9vSX9Gt4DurHFY/Q7dDxzdoJhgiXxcchgfe8rzFu/4UNRfn EJHtcgUwQ7PAVBwhm38kb/3kMV0BOdYzXO4wqqJlu+f25oOKG4VedI0S5j5OXPn1QmkI hmItkLSDnShNXR7RBBHDGdlvJ8DexWvZnbK1EdBTMZBqcS60oqAUM52B4InEuDI7H8yw hYyhIhbk7q0SeCnz6MKeN4yMj41m/L01eVQEGRM2/uPI0ILAOW3cHsZyY5KJJqSbxbO6 QQS4/Zg5opM7H5PGTc/IYFSXO51okyczJ8deOCmQFzU+fWBSft+8WIHea417Bi9/5TsU 5U4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28-v6si31088825pfl.317.2018.05.28.08.33.52; Mon, 28 May 2018 08:34:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034477AbeE1Pcp (ORCPT + 99 others); Mon, 28 May 2018 11:32:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:35812 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033072AbeE1PcR (ORCPT ); Mon, 28 May 2018 11:32:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A9B76ABE8; Mon, 28 May 2018 15:32:15 +0000 (UTC) Date: Mon, 28 May 2018 06:12:09 -0700 From: Davidlohr Bueso To: Herbert Xu Cc: akpm@linux-foundation.org, torvalds@linux-foundation.org, tgraf@suug.ch, manfred@colorfullife.com, guillaume.knispel@supersonicimagine.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH 1/6] lib/rhashtable: convert param sanitations to WARN_ON Message-ID: <20180528131209.mt4ythkapvfvykc7@linux-n805> References: <20180524211135.27760-1-dave@stgolabs.net> <20180524211135.27760-2-dave@stgolabs.net> <20180528094048.etqeu2ubc227qrxf@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180528094048.etqeu2ubc227qrxf@gondor.apana.org.au> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 May 2018, Herbert Xu wrote: >I don't really see why we need these WARN_ONs. The problem should >be quite obvious when you're writing your code. > >If you really want them perhaps add them to the ipc code instead? Well, I don't really _want_ them; nor does the ipc code which already does a WARN_ON() (but that goes away in future patches). What I want is to get rid of the return path. So I don't really care if we convert them to WARN or remove them altogether. Would you be happy with the later? Thanks, Davidlohr