From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:55152 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbeBWQlo (ORCPT ); Fri, 23 Feb 2018 11:41:44 -0500 Subject: Patch "video: Use bool instead int pointer for get_opt_bool() argument" has been added to the 4.4-stable tree To: daniel.wagner@bmw-carit.de, fengguang.wu@intel.com, gregkh@linuxfoundation.org, tomi.valkeinen@ti.com Cc: , From: Date: Fri, 23 Feb 2018 17:38:52 +0100 Message-ID: <1519403932201115@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled video: Use bool instead int pointer for get_opt_bool() argument to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: video-use-bool-instead-int-pointer-for-get_opt_bool-argument.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 206fc20598157ce15597822cf01b94377e30075b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 9 Feb 2016 10:18:32 +0100 Subject: video: Use bool instead int pointer for get_opt_bool() argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Daniel Wagner commit 206fc20598157ce15597822cf01b94377e30075b upstream. As the function name already indicates that get_opt_bool() parses for a bool. It is not a surprise that compiler is complaining about it when -Werror=incompatible-pointer-types is used: drivers/video/fbdev/intelfb/intelfbdrv.c: In function ‘intelfb_setup’: drivers/video/fbdev/intelfb/intelfbdrv.c:353:39: error: passing argument 3 of ‘get_opt_bool’ from incompatible pointer type [-Werror=incompatible-pointer-types] if (get_opt_bool(this_opt, "accel", &accel)) Signed-off-by: Daniel Wagner Reported-by: Fengguang Wu Signed-off-by: Tomi Valkeinen Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/intelfb/intelfbdrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/video/fbdev/intelfb/intelfbdrv.c +++ b/drivers/video/fbdev/intelfb/intelfbdrv.c @@ -302,7 +302,7 @@ static __inline__ int get_opt_int(const } static __inline__ int get_opt_bool(const char *this_opt, const char *name, - int *ret) + bool *ret) { if (!ret) return 0; Patches currently in stable-queue which might be from daniel.wagner@bmw-carit.de are queue-4.4/video-use-bool-instead-int-pointer-for-get_opt_bool-argument.patch