Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp809642ybi; Fri, 24 May 2019 11:47:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIS4slgdPpNPGO1yPNj82GcFhlxDMohnWjt+Z3xKBUNDkIdI8aZzOvmh3l3OeAUlu9k03j X-Received: by 2002:a17:90a:378b:: with SMTP id v11mr11270103pjb.10.1558723668300; Fri, 24 May 2019 11:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558723668; cv=none; d=google.com; s=arc-20160816; b=xnBlwQsgCjrHauZba3Dpdhg0ZGNZ1hEV+VPMV4tDQMGsvNeiXhdMy9uj6AUQcpAtni NbEF8AEpSHGQdId4HILcXWMO9pO25hXH+euhiF3qTnipqt7VSq47pNdJlD7A2NAkLhPe 5c1bYRBKU7mCRnFSNP9jUhbPElLO3yHoSLPFNxMilAOGM8VlFqOmhLi4xaDy1+S4ADfA Kb14YJ+AaKIsdrcmuAxk4cXBndstVwtr8X0zT0ivnR/7KLWKq3W0CZiFw4RdO3EfioKI yFdVXD7jOCgX8DXK3joya6v2njIgpfbDK47woG1+5i3AqJsbg6hqKU62gZF9BWip9TeU aM6Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=idLraXAXTWSi0KwQPTw/8FAwqPMCLGSAJcXBvo7fXEE=; b=nM0srBEJC4ANStirVw55t/Y2kutXnDsJgFIP68Q17CjqqEuEXfGx5ForzjyceAbhE8 YcU2Wfp+DmXbBpI851oFfltXgnafSDWs40O4IseNTCStmH+Y28j8imrqNws1RClKCRwc 2hF7F0NJk2wz02S3cg8ZF/ruBzxKRUb4DpZ+VTRUAUcUYf0m4pJSTnZn1GgD9YbSMtMZ RWFrOEHbOqmaozmR9jX74Fd+ZEMDaUrb4PbdpgbtlyMV3Dzgwcw4sOn2s3wsQ9FgF2/z /eR0lGE74gzZcxH+++VCMA148+6JuqQ4d/bunb/w8WrHfYM4ipvmapAUrMiFBlD87m1D OADg== 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 d14si5025523pgv.20.2019.05.24.11.47.33; Fri, 24 May 2019 11:47: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 S1732011AbfEXSof (ORCPT + 99 others); Fri, 24 May 2019 14:44:35 -0400 Received: from foss.arm.com ([217.140.101.70]:48922 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728594AbfEXSof (ORCPT ); Fri, 24 May 2019 14:44:35 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 13250A78; Fri, 24 May 2019 11:44:35 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2632D3F703; Fri, 24 May 2019 11:44:34 -0700 (PDT) Date: Fri, 24 May 2019 19:44:31 +0100 From: Will Deacon To: Anders Roxell Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] locking/lockdep: remove print_lock_trace function Message-ID: <20190524184431.GF9697@fuggles.cambridge.arm.com> References: <20190516191326.27003-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190516191326.27003-1-anders.roxell@linaro.org> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 09:13:26PM +0200, Anders Roxell wrote: > gcc warns that function print_lock_trace() is unused if > CONFIG_PROVE_LOCKING isn't set. > > ../kernel/locking/lockdep.c:2820:13: warning: ‘print_lock_trace’ defined > but not used [-Wunused-function] > static void print_lock_trace(struct lock_trace *trace, unsigned int > spaces) > > Rework so we remove the function if CONFIG_PROVE_LOCKING isn't set. > > Fixes: c120bce78065 ("lockdep: Simplify stack trace handling") > Signed-off-by: Anders Roxell > --- > kernel/locking/lockdep.c | 4 ---- > 1 file changed, 4 deletions(-) Acked-by: Will Deacon Will