From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7LHe-0005z6-Vv for barebox@lists.infradead.org; Tue, 02 Oct 2018 14:05:02 +0000 From: Sascha Hauer Date: Tue, 2 Oct 2018 16:03:52 +0200 Message-Id: <20181002140403.3735-4-s.hauer@pengutronix.de> In-Reply-To: <20181002140403.3735-1-s.hauer@pengutronix.de> References: <20181002140403.3735-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 03/14] Add more mutex no-ops To: Barebox List Add mutex_lock_nested, mutex_unlock_nested and mutex_is_locked to include/linux/mutex.h and remove them from UBIFS. Signed-off-by: Sascha Hauer --- fs/ubifs/ubifs.h | 3 --- include/linux/mutex.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index d4df668ca6..d11f213c06 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -84,9 +84,6 @@ struct page { #define module_param_named(...) /* misc.h */ -#define mutex_lock_nested(...) -#define mutex_unlock_nested(...) -#define mutex_is_locked(...) 0 #endif /* Version of this UBIFS implementation */ diff --git a/include/linux/mutex.h b/include/linux/mutex.h index a84085cab2..de698dbc4f 100644 --- a/include/linux/mutex.h +++ b/include/linux/mutex.h @@ -13,6 +13,9 @@ #define mutex_init(...) #define mutex_lock(...) #define mutex_unlock(...) +#define mutex_lock_nested(...) +#define mutex_unlock_nested(...) +#define mutex_is_locked(...) 0 struct mutex { int i; }; #endif /* __LINUX_MUTEX_H */ -- 2.19.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox