From patchwork Thu May 16 19:13:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 164346 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1230509ili; Thu, 16 May 2019 12:13:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzL2zQG2eQ/96V45Rr9pdtvkLessFuVYwGYJ3E+50wzOVeaXoFaS98ZJEzRDydBhvG8oKqJ X-Received: by 2002:a62:ee05:: with SMTP id e5mr54315124pfi.117.1558034015718; Thu, 16 May 2019 12:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558034015; cv=none; d=google.com; s=arc-20160816; b=heGwNDhh4DvkWMUFIO5T1VRIGCdKp9BCwTKdd310d7DpUg04JNetTb80dim37t2tSt A2SDEpWDGAd/Kbvw4bbTVkb5Fw8bl44xsv4vRBrFIvr/EGK4bqv+9RhWEixD0PBuSKam pcpQd4UEXxEtP9YvyfxLAEmF76bEHAI0hPNwn18iixP9bzI25pW/He7aZ3D2x1euaXaa oeoolyiD+Li2vglHgB5cadfGJ3tXiC3RjUMhCF8PXxEUq3ETvcdycbF549WjTdDCRtFH 5KGHsW81DqeyOnId064M1jyDIveKVt8nqtcVs6GY6ckrd6/DQw+n5YPfOGPBGwHFX50h QCwQ== 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:dkim-signature; bh=ytXoT9QXH0tp0KH5HbLhQkSNcdNnbs3zOQzOwCDi3zs=; b=glFaZZaxtrXdjPcf/8EO42eNjBpgCRxnTj3f6X2+iTsECfEdP8JNBeJnseCLD3RO/U mRzIj0RHzl5eN8m8SCJER/eAxLfBtRdF/4H6iBv510XqN6gtZ3ehUO+zmbOZ73ce3Tum InwAuWxuAphKOs78pahC7MXYI8nY2pLvJfBdjzR1TEzMKUOdcjzt2lvRgN1WfMjPkn/o ruV3ps03Bg2HMUeedifNm7OISeYVhQTyHTOXRkNMjg1lfbYh8YokWRAd+wfCgm4iTB/i yFeBSVZfr8pvbpdfOGzJbMi8L8dF768bQcJa3gU4edBaHVTQ9/v9DgcD0PaMANvCbLet Vs6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ar7li2mZ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si5588928ple.275.2019.05.16.12.13.35; Thu, 16 May 2019 12:13:35 -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=@linaro.org header.s=google header.b=ar7li2mZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbfEPTNe (ORCPT + 30 others); Thu, 16 May 2019 15:13:34 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40194 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfEPTNe (ORCPT ); Thu, 16 May 2019 15:13:34 -0400 Received: by mail-lj1-f196.google.com with SMTP id d15so4109062ljc.7 for ; Thu, 16 May 2019 12:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ytXoT9QXH0tp0KH5HbLhQkSNcdNnbs3zOQzOwCDi3zs=; b=ar7li2mZrRTWtLvb94yAyN1fLq6AQ7wHOhT6rhcq3Y6sFlqVVbSTBhtFvrDEdNJTSR DD6ZnSUKYcrHyCjREqAnq0Z92/xK6qLsUR2FrU9jiSIVcPNcthQdVN0XEKvMJgI8Eh4K cB7av9Wqq2aI7vtLyjwWkATaL3JxfGfj9KTDA5rt4n26GTYyKd7lEnfpDHkX0huaNnOf swceiRVXFm3UWn7Tu3RVzRW4JXnFC+DanwqabxO5r80v5lpVu7vjoMveifKq0qd2a75R 60Lprr8wecYXUZecSBfHLuc4cmRGchfM87vLvQscAZJ+h9u0NAUyu9Wv6Uyt7OO3tF/k Y47Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ytXoT9QXH0tp0KH5HbLhQkSNcdNnbs3zOQzOwCDi3zs=; b=aVcSmeN7/kaPBjaqWSATdwTFP8Q0141N4b5yu3rE9ZyA4GNJzjcIxUO6v6FpH/t8M+ ROY9Xx43FrWCBp6jkFYTlez4dNjJd+RXT+X/eghGDZnymRBz3RmzTY5fDJHTxrZJQr7k kBXwZPjNMkf/SQKpGIWwPLuu+kcMcJVv8Z5fP0u47fKd/HPEVTBOk99u7SsiGq+JAaEu 57hXxEZPJMlZOwS+HewzrYWDLpn/dfjwCnuxGb4NDCqA5PMtzc9Jz7clE+78b1sCxk76 wV7bovr26txSQm+sdzGtvKUgFgeViQKvNAVT0AGPFCNcCMVrAQJyixDqxhgHbno8hmKW xEuQ== X-Gm-Message-State: APjAAAUa0LTE2KCdoIF/n1FDkikEG6n5EOkKb+j5i4MrX8E05+5mWOJg w/2+cI5ings2F8jbI1//TByvfgAWzq+OSw== X-Received: by 2002:a2e:95c1:: with SMTP id y1mr23480187ljh.127.1558034012181; Thu, 16 May 2019 12:13:32 -0700 (PDT) Received: from localhost (c-1c3670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.28]) by smtp.gmail.com with ESMTPSA id p5sm251560ljg.55.2019.05.16.12.13.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 12:13:31 -0700 (PDT) From: Anders Roxell To: peterz@infradead.org, mingo@redhat.com, will.deacon@arm.com Cc: linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] locking/lockdep: remove print_lock_trace function Date: Thu, 16 May 2019 21:13:26 +0200 Message-Id: <20190516191326.27003-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.20.1 Acked-by: Will Deacon diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index d06190fa5082..df1bd3ba56bc 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -2816,10 +2816,6 @@ static inline int validate_chain(struct task_struct *curr, { return 1; } - -static void print_lock_trace(struct lock_trace *trace, unsigned int spaces) -{ -} #endif /*