From patchwork Fri Sep 16 16:02:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 76407 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp570920qgf; Fri, 16 Sep 2016 09:04:08 -0700 (PDT) X-Received: by 10.98.20.137 with SMTP id 131mr5030223pfu.11.1474041848608; Fri, 16 Sep 2016 09:04:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si4562962pfg.248.2016.09.16.09.04.08; Fri, 16 Sep 2016 09:04:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965045AbcIPQDz (ORCPT + 4 others); Fri, 16 Sep 2016 12:03:55 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38237 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932582AbcIPQDE (ORCPT ); Fri, 16 Sep 2016 12:03:04 -0400 Received: by mail-wm0-f46.google.com with SMTP id 1so50079628wmz.1 for ; Fri, 16 Sep 2016 09:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OeSDJfBVT+yLsl/sTv8Y4XxOYkoEvqldWVH0PtQzsSo=; b=WnSJ+GuRezEDIg0qCEDxcz4BqjfXdYauq8ub1FFVum7ext40viUjtwz5vH2FJJIcwY eJiJW0EH475GPFG+LqBUPDBsdGsPT0CkV83rmMCt9tSMDKZ25Jed5KPc/BSMWJMCB6qm qDOkZQe3PByma0a7H12qZAJbUTGHHDqBEWDLW1G7G7NEv/7AJaFVHtMooybhCCY1aqyZ hkwbve6FtLTXjI1YQP232T7x6tJsFrofTsyxsjYYvm9z8f/CwwQNBDxOa94vaDLQLwZs 0gXK44O2GtzMHs5QnkA315P/n/RC6Fafsmo+Za34IaV3JVnRFUyLzBclLCbU3fUVe11O bemA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OeSDJfBVT+yLsl/sTv8Y4XxOYkoEvqldWVH0PtQzsSo=; b=ONxJw6jZJgQY7/++9jNFAGGFAMEwaqTMRZhNsXDNIANfz+QAu/JnKdZHGWWkJuxJFD gXHwmkNuAjMBb3H2PZAjw2YSTftwnW0KcI9FNMQXk46Zpshf/M5Fk99fCl8V0V0lq6Ni B9fBPNuOAMDS5Ys0Qp0UrDDiI4ubvDqaJu+aU+ezFR8M5jKMUCen0UMxYY58YUPeYEOo ub6H3A/tkxMjhLJ2vGr6lZHPxwGv/qUtV0BcrourbPxMHm6pKY9hCbVY35h+fBmS5Wdx wujkf3A54gxTACcjjmyH+b/z3ZyeLZMYCJDxI5XuXRoMxEqJudflSbcNC1EMKJVOMCQ4 oA0A== X-Gm-Message-State: AE9vXwPzYYCzpRlHwM5kLdvoIj9bPrHy6IGtVJ4Na1DvhJvrGMH8E7NPwvIieOSWdGVGM5Uj X-Received: by 10.28.18.18 with SMTP id 18mr8213243wms.28.1474041782911; Fri, 16 Sep 2016 09:03:02 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ub8sm9033421wjc.39.2016.09.16.09.03.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Sep 2016 09:03:02 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij , Alexandre Courbot , Andy Shevchenko , Vignesh R , Yong Li , Geert Uytterhoeven , Peter Zijlstra , Ingo Molnar , Wolfram Sang , Peter Rosin Cc: linux-i2c , linux-gpio , LKML , Bartosz Golaszewski Subject: [PATCH v2 2/4] lockdep: make MAX_LOCKDEP_SUBCLASSES unconditionally visible Date: Fri, 16 Sep 2016 18:02:43 +0200 Message-Id: <1474041765-17818-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1474041765-17818-1-git-send-email-bgolaszewski@baylibre.com> References: <1474041765-17818-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This define is needed by i2c_adapter_depth() to detect if we don't exceed the maximum number of lock subclasses. Make it visible even if lockdep is disabled. Signed-off-by: Bartosz Golaszewski --- include/linux/lockdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index eabe013..c1458fe 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -16,6 +16,8 @@ struct lockdep_map; extern int prove_locking; extern int lock_stat; +#define MAX_LOCKDEP_SUBCLASSES 8UL + #ifdef CONFIG_LOCKDEP #include @@ -29,8 +31,6 @@ extern int lock_stat; */ #define XXX_LOCK_USAGE_STATES (1+3*4) -#define MAX_LOCKDEP_SUBCLASSES 8UL - /* * NR_LOCKDEP_CACHING_CLASSES ... Number of classes * cached in the instance of lockdep_map