Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp209974ybv; Tue, 4 Feb 2020 19:46:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwY8WzNvXFBbq99juG8dZxksE/8bE6sLIsbH7X9rsC6xEbWQafswYQkjOwlFhv9HnTJMpHB X-Received: by 2002:a9d:6398:: with SMTP id w24mr23788359otk.15.1580874382793; Tue, 04 Feb 2020 19:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580874382; cv=none; d=google.com; s=arc-20160816; b=Yu7BTDxk2Y1lAsDLbHiumcDQ9rmmvvC0cS63ItNGgj/npAeKTNT5LWyQIVq+l7uihY pouvbXEBAHH8RIy+4nSS2+rKuYugOoUq+LTEPinm1iBN1iimCMsEmg4hLPS7Y4yev6cS boetdzkOXIvYze1gtIevGF3jiMRIpnIUhc7ayM0bwFNtCfFG5vvNNs9jnsgedkBIG2rW Z58QEg4ZVHf1EtRUXHC53A8cHdG35e+y6AcIqLizDO5NSnPPp8ViEN+RrvnM0IPz+2lQ tADzX1STWkl4/IDS55bVyCj9/1pHd4oPGIvtogh0BE1z6k3Av8lHw6SIRQb3WcgbQJCi c0zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=y7L1/booVthxxiJ/wy0zkPYQFHGO1CqBFtYiAgkDZbA=; b=K5eI2kC5SRo64Utblof8B29tsOESwhrkHVF3tfJekATV+eBXGE/IxoCggNoOK4PkBd s9T33kZ+R5QMA2Fw1dDXf9/er6qHj9/j8Fk3+5A0O4SEvpVR7NxsuMFz5f0AopBPkE4U wPsqrZyInEp+XvBy+9ClMKCzf5mxl4bJJA0IwxgnNytVrZR2KErOdVOV9w883X/CyYRH ZRz80F+/L0JPRV03VphE5s5cGRvjC3eNifmQiV0E0yvwOXfKN/fG3tALIpAXvfpkJHr2 ICpUpOUTVjigwjmXcRDXFhs09HxallHKGEyvHUyqyeZr/PsSw4dGPAIg7Jmhk9b33zmo G8tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bogjU8Yl; 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 m16si14607764otj.7.2020.02.04.19.46.09; Tue, 04 Feb 2020 19:46:22 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bogjU8Yl; 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 S1727783AbgBEDpT (ORCPT + 99 others); Tue, 4 Feb 2020 22:45:19 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:58830 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727792AbgBEDpT (ORCPT ); Tue, 4 Feb 2020 22:45:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=y7L1/booVthxxiJ/wy0zkPYQFHGO1CqBFtYiAgkDZbA=; b=bogjU8YlzDGSHGrbrPsxDxFVnO PoHGL9mrtfLaHmKf6OKN9XdD8O2vMpGmDyXAUdPJE2iEjRkpcrURJ/bC4q9ZZQZ6Lx/cnZ/Iy/4Dg Jh0/3pv2hPUwU8VfkqH2zwaJC7m7ZOEu0vFLUPG487x4EwFmIQ6W9sUOtnH+tJXAk6jHLl4HJ2ajW pYkzBoAAgq9JvqZ3nJkwEzepAm0PN596wJ4sruVR2K+AEbTIsdKJJ0pWlvX+yDv0yAAqtJhTFWiT5 grOW7UwniG3FCPgX+s41xYkOJb+mNb5kSh0k7zsXKi34OWxg1xHUDpHcbX4Jdtzer5H+9bi2q2qBy 3iILHU8A==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1izBc3-0002c9-NF; Wed, 05 Feb 2020 03:44:27 +0000 Date: Tue, 4 Feb 2020 19:44:27 -0800 From: Matthew Wilcox To: Dan Carpenter Cc: Chris Packham , "devel@driverdev.osuosl.org" , "brandonbonaby94@gmail.com" , "julia.lawall@lip6.fr" , "yuehaibing@huawei.com" , "paulburton@kernel.org" , "aaro.koskinen@iki.fi" , "gregkh@linuxfoundation.org" , "fw@strlen.de" , "linux-kernel@vger.kernel.org" , "ddaney@caviumnetworks.com" , "bobdc9664@seznam.cz" , "sandro@volery.com" , "geert@linux-m68k.org" , "linux@roeck-us.net" , "ivalery111@gmail.com" , "ynezz@true.cz" , "davem@davemloft.net" , "wambui.karugax@gmail.com" Subject: Re: [PATCH 1/2] staging: octeon: delete driver Message-ID: <20200205034427.GS8731@bombadil.infradead.org> References: <20191210091509.3546251-1-gregkh@linuxfoundation.org> <6f934497-0635-7aa0-e7d5-ed2c4cc48d2d@roeck-us.net> <20200204070927.GA966981@kroah.com> <1a90dc4c62c482ed6a44de70962996b533d6f627.camel@alliedtelesis.co.nz> <20200204203116.GN8731@bombadil.infradead.org> <20200205033416.GT1778@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200205033416.GT1778@kadam> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 05, 2020 at 06:34:16AM +0300, Dan Carpenter wrote: > On Tue, Feb 04, 2020 at 12:31:16PM -0800, Matthew Wilcox wrote: > > On Tue, Feb 04, 2020 at 08:06:14PM +0000, Chris Packham wrote: > > > On Tue, 2020-02-04 at 07:09 +0000, gregkh@linuxfoundation.org wrote: > > > > On Tue, Feb 04, 2020 at 04:02:15AM +0000, Chris Packham wrote: > > > On Tue, 2020-02-04 at 10:21 +0300, Dan Carpenter wrote: > > > > My advice is to delete all the COMPILE_TEST code. That stuff was a > > > > constant source of confusion and headaches. > > > > > > I was also going to suggest this. Since the COMPILE_TEST has been a > > > source of trouble I was going to propose dropping the || COMPILE_TEST > > > from the Kconfig for the octeon drivers. > > > > Not having it also causes problems. I didn't originally add it for > > shits and giggles. > > I wonder if the kbuild bot does enough cross compile build testing these > days to detect compile problems. It might have improved to the point > where COMPILE_TEST isn't required. Well, that was the problem. I posted the patch and Dave Miller merged it before the build bot had the chance to point out that I'd missed it. So relying on the build bot is not sufficient. > One of the things about having a bunch of dummy functions for > COMPILE_TEST is that they introduce a lot of static checker warnings. > The real function is supposed to initialize stuff but the dummy function > just returns so now we get uninitialized variable warnings etc. Perhaps we need a better solution for the dummy functions than just returning. We can initialise the variables / structs to 0, for example. I fully accept that I did a poor job of writing the dummy functions.