Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4017448ybg; Fri, 25 Oct 2019 12:09:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTjl33mNLtV840nhT9QDUU19iwsyO7Ox/w7+BVvVCfBPi+U6iQZovglRjG/q8YvVATxVO0 X-Received: by 2002:a17:906:1982:: with SMTP id g2mr427296ejd.254.1572030551093; Fri, 25 Oct 2019 12:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030551; cv=none; d=google.com; s=arc-20160816; b=zj2prfXK2jVCeVOu32gJTOitQgLJ24eQ1kFbwQz3jKjBWQTz2wR3nS4AjKsnpyLiWA Nc8otVik8k8YasTYe2/TErqgqMZRtefpOtSuseLzUTMl6cqVli7bruizc+9FtPkIh0Pv fKGZxrPEeQKtGrcBTH0ku02l3/Gsy+W10P9Awg1Cn7D87mGUgX9V0SAh/tSXDEFyIfE9 FzmF80on7f1RnlQUFKMhJQVrG1Vu+2yFhxh9ObGWAZZOwiieI4bOf/uj5uQn9Q4bJj/8 oBt0YCZvROMaQito+1CZJHcmlB/gAqbSRNMzbbtaHKT0Sf/7ve+czsM9BSj/0XKrWAsJ 0bNw== 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; bh=EwhH6xiECs7L8rpX+VJC4HQgocepfGRCibixehUAMYs=; b=DKnVT+tL2iWHbZNshHjSq1Ih/RvpXd9WjIUBT3nm3LOEyas7G6Qn313ExoW75eRpXN cj1vq+aspZatASlPtHB4XFhccwzLqOXSdB/jJaqKfI5QzwsTO8jZZLkLemm4g8TtuW3H AvUR6OEVKUwaK5Hs4q8zkoBZFIg0fbzjiHazavzkHHY+wbh5xBXPOUzosrg/d2B061UF FouszpZo3E8wHwqY4FFk3MmUmzFCE2f40D8QzAO1n1/D/rOr/7xpUkPy4bgJ/heQJa+H J5JCY1bvL8L37V3Lnbr5j5weHCqH6ifh2WQy8/14edECcmZHNQG5HRW13+A+TRR7eg/E cKNw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb5si1749082ejb.270.2019.10.25.12.08.47; Fri, 25 Oct 2019 12:09:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbfJXUyG (ORCPT + 99 others); Thu, 24 Oct 2019 16:54:06 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36107 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728692AbfJXUyG (ORCPT ); Thu, 24 Oct 2019 16:54:06 -0400 Received: by mail-pf1-f196.google.com with SMTP id v19so52062pfm.3 for ; Thu, 24 Oct 2019 13:54:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EwhH6xiECs7L8rpX+VJC4HQgocepfGRCibixehUAMYs=; b=k8HZvPQmcgwBv/eg+6SMyMmaFbTSQl2y6L+IBMYiVuspMXgnnNLaNJ9WSeXSVjuhDv k9WUisSjESWzU9Nm5YphaAuzX12GvDtpk/JzIjIxDAdEdVK0+BKoqgtKYtq6z83BiRSt u6hc/6reO76d8Ky5sdOZaxi5VttdditA9zmB3nzy1rSyo2VQHv3kDHEzONItvwAorKw6 d1irXymoTqGwPzlbBMj/8WY6WnWrfDknR8S+Tqj7nERbZe+PpXXgdmFcLLgCgCzL/DBi 7bt6bK9DmhFJxHDC8K7as1yEsLqeObAfca+Y2LJZcpbfo2FyVrg4SN0XtqNqvVmcKaIo QRWw== X-Gm-Message-State: APjAAAV4Fveo+xL7cfnAx05yShcAOI9ijYWX65GBg3cVo2+P+g/YTUPt snWOSNz+zPfzyvbCrd8BHyw= X-Received: by 2002:a17:90a:94c3:: with SMTP id j3mr5986656pjw.41.1571950444995; Thu, 24 Oct 2019 13:54:04 -0700 (PDT) Received: from localhost ([2601:646:8a00:9810:5af3:56d9:f882:39d4]) by smtp.gmail.com with ESMTPSA id 69sm26909836pgh.47.2019.10.24.13.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 13:54:03 -0700 (PDT) Date: Thu, 24 Oct 2019 13:54:20 -0700 From: Paul Burton To: Wambui Karuga , Julia Lawall Cc: gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [Outreachy kernel] Re: [PATCH v2 1/5] staging: octeon: remove typedef declaration for cvmx_wqe Message-ID: <20191024205420.u7z3bhcjgetsyh3w@lantea.localdomain> References: <20191024050011.2ziewy6dkxkcxzvo@lantea.localdomain> <20191024100020.GA13343@wambui> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191024100020.GA13343@wambui> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Wambui, Julia, Side-note: Wambui, your mail client seems to have added this header: Reply-To: alpine.DEB.2.21.1910240722070.2771@hadrien This is the ID of the message you replied to (ie. this is the same value that the In-Reply-To: header has). You should probably figure out how that happened, or you're going to miss responses when people reply without noticing the bogus email address. On Thu, Oct 24, 2019 at 01:00:20PM +0300, Wambui Karuga wrote: > On Thu, Oct 24, 2019 at 07:26:59AM +0200, Julia Lawall wrote: > > > If you're making significant changes to this driver, please test them > > > using the MIPS cavium_octeon_defconfig which is where this driver is > > > actually used. > > > > > > This driver has broken builds a few times recently which makes me very > > > tempted to ask that we stop allowing it to be built with COMPILE_TEST. > > > The whole octeon-stubs.h thing is a horrible hack anyway... > > > > Wambui, > > > > Please figure out what went wrong here. Are there two sets of typedefs > > that should have been updated? > > > I managed to reproduce these build errors and finally noticed that the > "octeon-stubs.h" header is only included when CONFIG_CAVIUM_OCTEON_SOC > is not defined, therefore compiling properly for COMPILE_TEST but will > actually fail when compiled with CONFIG_CAVIUM_OCTEON_SOC is set since > the functions will try to use the definitions in > arch/mips/include/asm/octeon/ that don't have the changes. > > Paul, please tell me if this is correct? Yes, that's correct. The driver was written to use the headers in arch/mips/include/asm/octeon, and then recently the octeon-stubs.h header was added which duplicates lots of the MIPS & Octeon-specific header content in one huge monstrous file. I'm all for improving compile test coverage, but I think octeon-stubs.h in its short life has already proven itself to be a bad way to achieve that goal[1][2][3]. > > Others, > > > > Would it be reasonable to put the information about how the driver should > > be compied in the TODO file? git grep cavium_octeon_defconfig in the > > octeon directory turns up nothing. It wouldn't hurt. I'd argue that Kconfig already provides enough information to figure this out easily though - OCTEON_ETHERNET depends on CAVIUM_OCTEON_SOC || COMPILE_TEST, which ought to tell people that its real use is when CAVIUM_OCTEON_SOC=y. That doesn't necessarily point you to cavium_octeon_defconfig (though grepping for CAVIUM_OCTEON_SOC=y would), but that's not strictly needed anyway - any old config with CAVIUM_OCTEON_SOC=y would do. Thanks, Paul [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0228ecf6128c92b47eadd2ac270c5574d9150c09 [2] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/staging/octeon?id=17a29fea086ba18b000d28439bd5cb4f2b0a527b [3] https://storage.kernelci.org/next/master/next-20191024/mips/cavium_octeon_defconfig/gcc-8/build.log