[COMMON] script: dtc: Update dtc for Device Tree Overlay
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / scripts / headers_install.sh
index fdebd66f8fc16c2db0189480318c5f8599aebdf0..a18bca7209957302ebcbb4977f400b375b2ef274 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
 
 if [ $# -lt 2 ]
 then
@@ -33,7 +34,7 @@ do
        sed -r \
                -e 's/([ \t(])(__user|__force|__iomem)[ \t]/\1/g' \
                -e 's/__attribute_const__([ \t]|$)/\1/g' \
-               -e 's@^#include <linux/compiler.h>@@' \
+               -e 's@^#include <linux/compiler(|_types).h>@@' \
                -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \
                -e 's/(^|[ \t(])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \
                -e 's@#(ifndef|define|endif[ \t]*/[*])[ \t]*_UAPI@#\1 @' \