Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1867239ybb; Thu, 9 Apr 2020 10:27:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLN970hLAniU21dnUZKTL63/Qm+MU/yA+2P423NGaP+v4KBsYyzsMqF7V+AfRwlG3w72ygb X-Received: by 2002:a05:620a:958:: with SMTP id w24mr938350qkw.347.1586453261527; Thu, 09 Apr 2020 10:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586453261; cv=none; d=google.com; s=arc-20160816; b=DZuhDbMH44UAytP9ab4pajTb12x4ROryFhVktM7INx975mvOlruPIHf2REMyxAIpL2 8EMCijhfgRU8fZfOerBxbQe6VjokAxI4uAr6Fmf4yag/1OkiwAAWQSTjhFbRfq9dByTM uusQ1Xk/QGmGGPAB6HO3Npn4AEeYhEqobCkF6Y97gjqbyjzatzcecWE/LkzIK1DNZWQ1 7grB+4OnFIScwwARJ9MD9/QRiq+JSUWZLeYK+MopWmVui/7UmM57zeozMcViVVqIC8HB PCS7QfS+LqiKhkLgFbmkImdLFcXuOhnUEFrwE0/TRiG8+4I+S6kBesWcCZQ3vGS2sdN3 pE+Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gO7jrRc/YigvU3PUSpLluOu+YL+3iEAZSaGm/cz3n0w=; b=P3Kx88AD83+NE8P8EF7A1WnQg3BoRFpA+/kOHxxK3YYCyd1vNE/i7zmVAKUE1hmPKR luAnyz+i3ZfDHC1GmYu5GD7QLeOhj64XGLFFUNMcwom4scZZuTLHMmc2iJKWQ5KwF52m T6YVYuDH8gvrAg4yJBayMWlRmnrMQ7hd1Qlx1RPJywCbBIq1lb/FoW+M2C1LvN3G82+q E9gkNbf20DreKaoxy7brDn7Mrr3qZYAy6KqAeOy8z0CwlJnB9tczD0lk7c9ASGfQK9pd LehdNNmwq9trcYwj3fWb5rpHjpWcNlNTp8fTc2ak/9ax44f/KHgsDmK6IQqDEkgP8cKY 6ZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=NyPK31zD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si6137249qkm.123.2020.04.09.10.27.26; Thu, 09 Apr 2020 10:27:41 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=NyPK31zD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728371AbgDIPv1 (ORCPT + 99 others); Thu, 9 Apr 2020 11:51:27 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:58352 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728221AbgDIPv1 (ORCPT ); Thu, 9 Apr 2020 11:51:27 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 039FdBsG171814; Thu, 9 Apr 2020 15:50:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=gO7jrRc/YigvU3PUSpLluOu+YL+3iEAZSaGm/cz3n0w=; b=NyPK31zDoiiAdDysvjTl/6D0QYOcl077F3oZdrIIY7c1Lv3EJObuvUelm2ZPwmJ5rLD7 u1pN29hBoefnBZPs2rSZbe6HhjNnZ5FY/FO7NI9j98I+wsQWE3AMyijnPzVwlLgu2Nha h4U0VbKRu00nvN1yEuWUg2yN2AmdjnOKG9NdjA2tFuQBGDLBjBuNfR7FD5QK6d0/1sVw CdviplkwQzsCR3hV0o5FfeYahqrEPyGpiCPNm/MzKG3hgEoqXhPshzlIS/ZjP9Q0tpQJ vLPLNhu//34EhRG4KLQbGzV0jXRDvrLHkX68AtLH1i8Pf3oiLOQIZrBtbp1+O1cGK8dG uA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 309gw4e79f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Apr 2020 15:50:53 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 039FasMU057361; Thu, 9 Apr 2020 15:50:52 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 309ag4y4k1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 09 Apr 2020 15:50:52 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 039Fonwr027652; Thu, 9 Apr 2020 15:50:49 GMT Received: from [192.168.1.223] (/67.1.142.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Apr 2020 08:50:49 -0700 Subject: Re: [PATCH] xfs: stop CONFIG_XFS_DEBUG from changing compiler flags To: Arnd Bergmann , "Darrick J. Wong" , linux-xfs@vger.kernel.org Cc: Christoph Hellwig , Brian Foster , Dave Chinner , Eric Sandeen , Masahiro Yamada , linux-kernel@vger.kernel.org References: <20200409080909.3646059-1-arnd@arndb.de> From: Allison Collins Message-ID: Date: Thu, 9 Apr 2020 08:50:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20200409080909.3646059-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9586 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 malwarescore=0 phishscore=0 mlxscore=0 bulkscore=0 mlxlogscore=948 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004090118 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9586 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1011 suspectscore=0 malwarescore=0 spamscore=0 mlxlogscore=975 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004090118 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/9/20 1:08 AM, 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. > > 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://urldefense.com/v3/__https://lore.kernel.org/lkml/20200409074130.GD21033@infradead.org/__;!!GqivPVa7Brio!JzJUQORI8aWjYFMvoyVmkgYSofJexLQn7p16KvP39F-NjuIzEXWqypgw0FnCyrdFtmZm$ > Signed-off-by: Arnd Bergmann Ok, looks good Reviewed-by: Allison Collins > --- > 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 >