Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1406378ybb; Thu, 9 Apr 2020 01:13:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIuNd6iWYeK787rqwPlscvWAm5yOf04BlTtb5Ta5JDhegAp4QT/XaRJnj95VnSWajTYjage X-Received: by 2002:a54:4797:: with SMTP id o23mr2528699oic.12.1586420028198; Thu, 09 Apr 2020 01:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586420028; cv=none; d=google.com; s=arc-20160816; b=OXgar3L2JxgiEyR6hm5gUzFHX90/awc4ug//+skKNYzVcg+t2Q78j9DjR/iIH+1ZX/ cDh1IgfJ1Ht5RZA4D1dpnx5uCc7fMYXypl5+ZZmUJTwsohsw17RirJEbbAEAygp7cIO7 cbxWx5WTiUKlsTbS6wBtWPByCfMawmCcfCy2ZuUDzqTeLz3LedKawlJCy+ipK3yjBSB7 RXOdz4QzyzYPOe4G6DTxx6eu2HCb+Ae0jl4l68S9MPod2pSoBrz1wpeKSUPo4e6kuCYD gLWVpMis8ZKHnCbcZnU42DDXRwhtaVMeSpxsfDTm/5rnvtyqulrBVUKQtqCsxprHwiBY pe5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vdqWgfrdKAL0WsYl9lohkbgUc3NdVrkE0iEpdo91CQQ=; b=fvt7Vq8WRJGf2tX+GeMmzMcNQTHl76E+B4dut5V7g+M+U0HRbMzrnf3ZbFqZl3VfKe lhJyYHx455QdY52GrT8mjSbxVuyax3meX8i3AA+rl1AwQtlJF8lLmdCKVfQM98i5IXZE KhXTe9EsXSzDbkzTHqdhYjwtalRs0OAjp1H9kKubZjZSTfOGacfzpYVk96g18YB6DJR7 EIf0I/FRFDwE2EJaoX5BtnclmdGLeIq5r2ngitu0F0jght2cAS5SHQwv69pCys6OOzCs VdHkxdyApieaoPq+AsT1qfg2MO8TGr/wTUCbU4kDPy8ynsS1xf9S/g/Y3w+WO3uoqAiB T/GA== 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 l25si4069112otn.206.2020.04.09.01.13.33; Thu, 09 Apr 2020 01:13:48 -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 S1726651AbgDIILb (ORCPT + 99 others); Thu, 9 Apr 2020 04:11:31 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:39415 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgDIILb (ORCPT ); Thu, 9 Apr 2020 04:11:31 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1Mqrjz-1j0c1O016v-00moPq; Thu, 09 Apr 2020 10:09:19 +0200 From: Arnd Bergmann To: "Darrick J. Wong" , linux-xfs@vger.kernel.org Cc: Arnd Bergmann , Christoph Hellwig , Brian Foster , Dave Chinner , Eric Sandeen , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] xfs: stop CONFIG_XFS_DEBUG from changing compiler flags Date: Thu, 9 Apr 2020 10:08:56 +0200 Message-Id: <20200409080909.3646059-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:IoKJ889Aec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whIBFVDVRnbl5tf i+pRy/xPoXLL6J4C+l8HBF22kouCHBPdNoOtXPN0wph1thzjn4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Remove the Makefile logic to set the flag here. If anyone relies on the debug info, this can simply be enabled again with the global CONFIG_DEBUG_INFO option. Suggested-by: Christoph Hellwig Link: https://lore.kernel.org/lkml/20200409074130.GD21033@infradead.org/ Signed-off-by: Arnd Bergmann --- fs/xfs/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/xfs/Makefile b/fs/xfs/Makefile index 4f95df476181..ff94fb90a2ee 100644 --- a/fs/xfs/Makefile +++ b/fs/xfs/Makefile @@ -7,8 +7,6 @@ ccflags-y += -I $(srctree)/$(src) # needed for trace events ccflags-y += -I $(srctree)/$(src)/libxfs -ccflags-$(CONFIG_XFS_DEBUG) += -g - obj-$(CONFIG_XFS_FS) += xfs.o # this one should be compiled first, as the tracing macros can easily blow up -- 2.26.0