From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758916Ab2CGCtU (ORCPT ); Tue, 6 Mar 2012 21:49:20 -0500 Received: from mail.windriver.com ([147.11.1.11]:43704 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317Ab2CGCtT (ORCPT ); Tue, 6 Mar 2012 21:49:19 -0500 From: To: , , CC: , , Subject: [PATCH 1/2 v2] Staging:android: Change type for binder_debug_no_lock switch to bool Date: Wed, 7 Mar 2012 10:49:09 +0800 Message-ID: <1331088550-15632-1-git-send-email-ruan.zhengwang@gmail.com> X-Mailer: git-send-email 1.7.0.5 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhengwang Ruan GCC warns that module_param_named() indirectly returns a bool type value which is different from 'int' type binder_debug_no_lock declared. Change it to bool because it is a internal switch for debugging. Signed-off-by: Zhengwang Ruan --- v2: added a subsystem prefix to the subject --- drivers/staging/android/binder.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index f0b7e66..4350425 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -103,7 +103,7 @@ static uint32_t binder_debug_mask = BINDER_DEBUG_USER_ERROR | BINDER_DEBUG_FAILED_TRANSACTION | BINDER_DEBUG_DEAD_TRANSACTION; module_param_named(debug_mask, binder_debug_mask, uint, S_IWUSR | S_IRUGO); -static int binder_debug_no_lock; +static bool binder_debug_no_lock; module_param_named(proc_no_lock, binder_debug_no_lock, bool, S_IWUSR | S_IRUGO); static DECLARE_WAIT_QUEUE_HEAD(binder_user_error_wait); -- 1.6.0.4