ACK: [PATCH 3/3] kernelscan.sh: remove -E and -P phases to parsing
Alex Hung
alex.hung at canonical.com
Fri Apr 29 08:39:55 UTC 2016
On 2016-04-27 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: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list