Patch "video: Use bool instead int pointer for get_opt_bool() argument" has been added to the 4.4-stable tree
Subsystems (2)
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 <[email protected]> know about it.
Quoted 1 line
From
206fc20598157ce15597822cf01b94377e30075bMon Sep 17 00:00:00 2001
From: Daniel Wagner <[email protected]>
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 <[email protected]>
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))
--- drivers/video/fbdev/intelfb/intelfbdrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/intelfb/intelfbdrv.c +1 -1
@@ -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 [email protected] are
queue-4.4/video-use-bool-instead-int-pointer-for-get_opt_bool-argument.patch