From patchwork Fri May 25 21:11:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 136994 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp71249lji; Fri, 25 May 2018 14:12:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFq/NGXy1A3MuvxICtOed8fFfAWvaDU4bI3w0Ij+GnJpEPXWIAWH0PG7uKogZKnVUbdms7 X-Received: by 2002:a17:902:1e3:: with SMTP id b90-v6mr4019246plb.273.1527282728650; Fri, 25 May 2018 14:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527282728; cv=none; d=google.com; s=arc-20160816; b=qLbQAV04m9FO5dISmLdiJgOqWKnOzVceaiEIAVqs7WNjb/W/EFi7MpmmN6BC2QQIbH fz6XXJ0H4jY+7svYZtztbc1aJe9NLcq79vd+uuJEh4Ek/nQEa2xQJjwrRcvcg3R6OQBE 6wiKKO964YSdRPIaneW2H365r6wkpJlH8ypSBa7L+PmxQg/zZmlyRIH4uVaSyF/EaLn9 oXFXVnxmcnFhlLnsPIYpOokj3EdLzITnDfFK5JjXsZUjRDN335Auf7/PmmJNM5DPqkjc 0+zYmpPFo1rbyjZHzGQ5tmOcdRpWIquJzRgQLPftAucrIMhSX/GK3/36iSwC+CzKf2bB 4SXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=XtTIomk3AuOyWvXAuJShK9i+GWcxIcrD9oS7DkuHu9I=; b=aZ2hTflNGwsF+3lta0Ut+M9MYAsUZNyxQTiK0u+PeZdDtGVrL//jI60oQSp4uNHoZT i2tFp4ZGVfEUTV0S8SzQ1CD4FfXSYPQdEOAzBAI4wxBZxfBd0ts4j2tQpwvwVlpGct0o NJL1OWLZ9lv4WNocq8Exrm6qk2dXCYqOMILxVaF/uxKHQT5K+QCwD69Kl0Bg5ud2gmsJ lUaldPxKa0qClz/Ws7EWNeyhQPSk3K3RqSm7eP/ANCXGSDAX+yxOLzfy6cEqf78Pq9AB MIDMYBPDSNF6gJeBHUl/6H0PiyCZNyusv7YBhfXUJTM8x4WqiK45o3V6ot4+W80YDRtk yElg== 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 b26-v6si25204238pff.251.2018.05.25.14.12.08; Fri, 25 May 2018 14:12:08 -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 S1030324AbeEYVMF (ORCPT + 30 others); Fri, 25 May 2018 17:12:05 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:48757 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030215AbeEYVMD (ORCPT ); Fri, 25 May 2018 17:12:03 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MSDsY-1fkxdO05xC-00TEn0; Fri, 25 May 2018 23:11:56 +0200 From: Arnd Bergmann To: Thierry Reding , Jonathan Hunter , Dmitry Osipenko , Arnd Bergmann Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] memory: tegra: include linux/spinlock.h Date: Fri, 25 May 2018 23:11:39 +0200 Message-Id: <20180525211155.1928474-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:bP0TGfcS6XVBn7/ubog0PrLggysZXM841KRYrrWvfAG3EZRx1yx ea983Az+LxD50F2aTI03E++Xmj24oIDqJ88olnJioATKiTnvvNxVJB4b8hDJqNCHiMOKlZ3 DArAzCFgHrIMZYTRl6HZh4qqYN4oNg0Jql7Q+PNiscLho4LHoRPit0qGEwQbbnQjtDZwu6p cx0H22XHHA6HUfwBCqOJQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:NZb1dFA3uWk=:uo4mJl76VhjeYcGE8h+nfh 9KjBLhhhhy43xRyQbes9BnzHLfyBENw9t1JVwS0lq93lwbsq4cShHlDfc6/ayaG9E0yq2bql0 7eirGviAWo2DYMrbSAi0VlV36Hky5lNdzdXxAI7TxEOkDdIZVzhdfE3sWW3r46si6O92dWZyZ VGT5Ohh4Uuk/VlMmC3vFn9iWP7fHZXZAzd+9HvVortNQIxl8Li+1f3LaOnPopJdlsyDR5zqIo pRR03oprFA/IDeVUSsFdnoPpJm2Us+wp0EqMqtZYDrDzv7p4n/1gMWDVjCHcwojJ5lLCwohZ8 7VKXLxIWIwcfWKiRMZqkK2N3jFESr09Yk2kI2ojADYZFe4ruW+sZdYYyQ8cEe5+GmTyKW9OIH JdsTxtOltzfvFadbIHqR0Nqhw0n5gJ5+WZ4amvvQlMSljvSZN+pM4beI/bYvtzqMr8p34Tpez AOrqER+HmGgXtiggOh3kH8BAKNmm/9Us1HVbm729UljNCSd2C3C8Jq6t8zTldfE7wY4rPo19N Svlklm/dx9zt1n41K7K00Tb+ofbcMyhfZC+92cCFo+iOY7lgpeZg3Lj3cHJ9zzoyo8Sac9Eu8 cIYunnTFG+UFOtntl/+3XdXckdZutCwCFDM4fTQUKEGv1fcTFOUuv2/m9p9EKAM1yrbmrFJFP uXuQyRtGejebYuIqzVIKXXRN9Jf9kxpF7rOaQxNHYw2ryw+DSJsUHcTv8ivjoUutVarQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added code in this file causes a build error unless we include linux/spinlock.h, at least in some configurations: In file included from drivers/memory/tegra/mc.h:15, from drivers/memory/tegra/tegra20.c:11: include/soc/tegra/mc.h:159:2: error: unknown type name 'spinlock_t' spinlock_t lock; ^~~~~~~~~~ drivers/memory/tegra/tegra20.c: In function 'terga20_mc_hotreset_assert': drivers/memory/tegra/tegra20.c:207:2: error: implicit declaration of function 'spin_lock_irqsave'; did you mean 'arch_local_irq_save'? [-Werror=implicit-function-declaration] spin_lock_irqsave(&mc->lock, flags); ^~~~~~~~~~~~~~~~~ Fixes: cb557757e1aa ("memory: tegra: Add Tegra20 memory controller hot resets") Signed-off-by: Arnd Bergmann --- drivers/memory/tegra/tegra20.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Reviewed-by: Dmitry Osipenko diff --git a/drivers/memory/tegra/tegra20.c b/drivers/memory/tegra/tegra20.c index 7119e532471c..8853e21b773f 100644 --- a/drivers/memory/tegra/tegra20.c +++ b/drivers/memory/tegra/tegra20.c @@ -6,6 +6,7 @@ * published by the Free Software Foundation. */ +#include #include #include "mc.h"