Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp93695ybb; Thu, 9 Apr 2020 18:03:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJjwPgAxmzyOWDM9gQPVCxv6PaOK/irExuUm9iGAssTNPjiBvDhXf8y20ygCsEsQW1loCfj X-Received: by 2002:ac8:4885:: with SMTP id i5mr2231770qtq.305.1586480581440; Thu, 09 Apr 2020 18:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586480581; cv=none; d=google.com; s=arc-20160816; b=DfD0iooxar1jQ3Go/5NkJZDtVmOw1s7MZQgl8iShQwzjKhSFSd9yxSHhdcvzhMbmjj 7yuc6dGZoFnQXGakXblXcHqVq48LiJCUQ3vAclpTmOHApmDu3/as5JdHlSMAdmLIOPLX T2xBQnHrfkfWAz6wpA6NjTavNyGMDN7Hi/w5C/3x0QpXRNJ9NCi0OD5MuOc1hCJZV+u0 GPBXZ+LV4sveTwE23VOpbFMUo1nFfYzPXQ4Td58vu+NaZRZyA1DzCRY4+f53jdwgYmGp C6dnGeIr9vyTs63g1TOyy1eck6HNNbbpf+jWYEZBsh3qLpTVzXElg/fNk8ad/hsWiHjW p1Wg== 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=TpIbyIy1Tp1VOOh7LpYL/C2r3w8CZrHRzfNBX+16vCg=; b=Czi8ELTXyB7dW0b0W/caQsXrXSCitdDQzXPvI4XH83Sr/70VyxZuo5HJBKTT7TU5VC X0UJozpkAp0+jfEn4HnXLI2kFvK6GKywKYbLftHPx76APagMHVDdrKnMGDj3i5+cYPfr fa9/cZ4vXfuRobPtDlNPqdwTQJk87FWumJH9qydW8EYC6sHjCYHS3TMmMkR3nmM/Oz7D o+yfVGFMF+TdKKSAhs0ICvofwtLtLLFO6thkNq77BqkzbFvJ5glxt69GdBOfRB7W0wq/ g/4qP7MQrPlbavy+IQq2gVhVcoTsICrycpmFqu4zP1dcRO9Yvcxoa6qqqK++nh4+MtFa nHIw== 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 w14si290507qtv.181.2020.04.09.18.02.38; Thu, 09 Apr 2020 18:03:01 -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 S1726632AbgDJBBH (ORCPT + 99 others); Thu, 9 Apr 2020 21:01:07 -0400 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:57692 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgDJBBH (ORCPT ); Thu, 9 Apr 2020 21:01:07 -0400 Received: from dread.disaster.area (pa49-180-167-53.pa.nsw.optusnet.com.au [49.180.167.53]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id 68F383A3C08; Fri, 10 Apr 2020 11:01:02 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1jMi2X-0006FQ-OF; Fri, 10 Apr 2020 11:01:01 +1000 Date: Fri, 10 Apr 2020 11:01:01 +1000 From: Dave Chinner To: Arnd Bergmann Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org, Christoph Hellwig , Brian Foster , Dave Chinner , Eric Sandeen , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: Re: [PATCH] xfs: stop CONFIG_XFS_DEBUG from changing compiler flags Message-ID: <20200410010101.GV24067@dread.disaster.area> References: <20200409080909.3646059-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200409080909.3646059-1-arnd@arndb.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=X6os11be c=1 sm=1 tr=0 a=2xmR08VVv0jSFCMMkhec0Q==:117 a=2xmR08VVv0jSFCMMkhec0Q==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=cl8xLZFz6L8A:10 a=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=VK9ohqNZyv40iBll5AsA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 10:08:56AM +0200, Arnd Bergmann wrote: > I ran into a linker warning in XFS that originates from a mismatch > between libelf, binutils and objtool when certain files in the kernel > are built with "gcc -g": > > x86_64-linux-ld: fs/xfs/xfs_trace.o: unable to initialize decompress status for section .debug_info > > After some discussion, nobody could identify why xfs sets this flag > here. CONFIG_XFS_DEBUG used to enable lots of unrelated settings, but > now its main purpose is to enable extra consistency checks and assertions > that are unrelated to the debug info. I'm pretty sure it was needed for the original kgdb integration back in the early 2000s. That was when SGI used to patch their XFS dev tree with kgdb and debug symbols were needed by the custom kgdb modules that were ported across from the Irix kernel debugger. ISTR that the early kcrash kernel dump analysis tools (again, originated from the Irix "icrash" kernel dump tools) had custom XFS debug scripts that needed also the debug info to work correctly... Which is a long way of saying "we don't need it anymore" instead of "nobody knows why it was set"... :) With an update to commit message: Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com