ACK: [PATCH 3/3] kernelscan.sh: remove -E and -P phases to parsing

ivanhu ivan.hu at canonical.com
Fri Apr 29 08:56:54 UTC 2016



On 04/27/2016 05:53 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Just parse the input without the need to use the -E and -P phases
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/utilities/kernelscan.sh | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/utilities/kernelscan.sh b/src/utilities/kernelscan.sh
> index 63600eb..65aa436 100755
> --- a/src/utilities/kernelscan.sh
> +++ b/src/utilities/kernelscan.sh
> @@ -42,7 +42,7 @@ fi
>   scan_source_file()
>   {
>   	if [ -f $1 ]; then
> -		$KERNELSCAN < $1 -E | gcc -E $CONFIGS - | $KERNELSCAN -P > $TMP
> +		$KERNELSCAN -P < $1 > $TMP
>   		if [ $(stat -c%s $TMP) -gt 0 ]; then
>   			echo "Source: $1"
>   			cat $TMP
Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list