Received: by 2002:a05:6504:1d0:b0:1de:de76:8684 with SMTP id e16csp878487ltn; Fri, 2 Sep 2022 09:14:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR6E7Z18uoAFQq8cxnthzoD5HY3NGkrSGsezuj+plrtDDhBhARiQc3N3F5CfL31hv/i1qh3K X-Received: by 2002:a17:902:cf0e:b0:172:60b7:777c with SMTP id i14-20020a170902cf0e00b0017260b7777cmr36862839plg.132.1662135259102; Fri, 02 Sep 2022 09:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662135259; cv=none; d=google.com; s=arc-20160816; b=RasyzuAAkmK0jelzzZgtxaKmB5iF40aUxgQ7pSg2snifRkrrFgiTm+cdcFpW4fLIZe L7jzaBe8hpogR5j95OlLoSo6qWFg2bTTqQ8eBB/cQpwF0Qsueq8OLMOo4Vf7c8QMXJtM TCEufteVf5ItnveP8GKs4d3zAX44TU1jVeQxTwn7D8AAL1R1Tr9lBly1Hg+y416LS6z7 F0wUxQjsGXj2DDfJC+S3bj87RF/omEq9TbcV6PWIzmwdMoqFFfFOxtLu7CiqdpYSg9Bj ert3uifgQWrfdCKDZS+XLfjKFWCbLJzM9x39I6Q6k19wXb0F1sGPKldaOeCpvQmj+oR/ IQDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9YPX9ndGfKwi+nJxtKaa5aw3hXf/GlOVyut8dLw9Jx0=; b=0azE/c7gHdedPUbRUr+EnB34KeHgOYNxnSvJIH8h/vyArhrOFCkehQtIoCp7/VNJS+ i6AnlEB3HpY8QeopTmY9CBnemFc1n1IXf+YCs7rD8S+aKKvIm+LtyUMMFB5MCTJLPfGx bMCqI1NtYDRkRntodKjOv6TIImnflMOr8mJwwPSGnAParXVHHeR3HMZY5k9DGM7sqy3O OI1HHbQFBBgRuK9JOH5RDEuUW+ca5bhKCzM3W7/e8KyoSANzDjX+6sjqjb+PSfZpSIFW 2a0XZBH74LYn1S9r30lNnk9ZbLR/els2qfmYPyenzm1s4NjrUuM8Oh+rll4Em2CghdBy CVTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a170902d49100b0016d9266a58dsi2620894plg.8.2022.09.02.09.14.07; Fri, 02 Sep 2022 09:14:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236264AbiIBQKh (ORCPT + 99 others); Fri, 2 Sep 2022 12:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236876AbiIBQKU (ORCPT ); Fri, 2 Sep 2022 12:10:20 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 937CA12E4C4 for ; Fri, 2 Sep 2022 09:03:05 -0700 (PDT) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 282Fxtno015877; Fri, 2 Sep 2022 10:59:55 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 282FxsqO015876; Fri, 2 Sep 2022 10:59:54 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 2 Sep 2022 10:59:54 -0500 From: Segher Boessenkool To: Nathan Chancellor Cc: Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Piggin Subject: Re: [PATCH v2 2/2] powerpc/math-emu: Remove -w build flag and fix warnings Message-ID: <20220902155954.GP25951@gate.crashing.org> References: <35c86b7ca823954c6cd593acc3690dc3748da9b1.1662113301.git.christophe.leroy@csgroup.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 02, 2022 at 08:37:23AM -0700, Nathan Chancellor wrote: > On Fri, Sep 02, 2022 at 12:08:55PM +0200, Christophe Leroy wrote: > > This should have been detected by gcc at build time, but due to > > '-w' flag it went undetected. > > > > Removing that flag leads to many warnings hence errors. > Thanks for figuring out what was going on here! I took this patch for a > spin with clang and it has a few more errors around > -Wimplicit-fallthrough: Maybe add -Wno-implicit-fallthrough? This code is a copy from outside the kernel, no one has ever wanted to maintain it, if nothing else (the more politically correct formulation is "we cannot as easily pick up improvements from upstream if we modify stuff"). Segher