[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] build: include/compat, remove typedefs handling



commit d1d3fb1cd5f79cb74122e1639891a5f0fd9df3e5
Author:     Anthony PERARD <anthony.perard@xxxxxxxxxx>
AuthorDate: Thu Jan 19 15:22:54 2023 +0000
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Mon Feb 6 10:22:12 2023 +0000

    build: include/compat, remove typedefs handling
    
    Partial revert of c93bd0e6ea2a ("tmem: fix 32-on-64 support")
    Since c492e19fdd05 ("xen: remove tmem from hypervisor"), this code
    isn't used anymore.
    
    Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/tools/get-fields.sh | 57 +------------------------------------------------
 1 file changed, 1 insertion(+), 56 deletions(-)

diff --git a/xen/tools/get-fields.sh b/xen/tools/get-fields.sh
index 002db2093f..ad4a7aacc6 100644
--- a/xen/tools/get-fields.sh
+++ b/xen/tools/get-fields.sh
@@ -41,34 +41,6 @@ get_fields ()
        done
 }
 
-get_typedefs ()
-{
-       local level=1 state=
-       for token in $1
-       do
-               case "$token" in
-               typedef)
-                       test $level != 1 || state=1
-                       ;;
-               COMPAT_HANDLE\(*\))
-                       test $level != 1 -o "$state" != 1 || state=2
-                       ;;
-               [\{\[])
-                       level=$(expr $level + 1)
-                       ;;
-               [\}\]])
-                       level=$(expr $level - 1)
-                       ;;
-               ";")
-                       test $level != 1 || state=
-                       ;;
-               [a-zA-Z_]*)
-                       test $level != 1 -o "$state" != 2 || echo "$token"
-                       ;;
-               esac
-       done
-}
-
 build_enums ()
 {
        local level=1 kind= fields= members= named= id= token
@@ -201,21 +173,7 @@ for line in sys.stdin.readlines():
                                fi
                                ;;
                        [a-zA-Z]*)
-                               if [ -z "$id" -a -z "$type" -a -z "$array_type" 
]
-                               then
-                                       for id in $typedefs
-                                       do
-                                               test $id != "$token" || type=$id
-                                       done
-                                       if [ -z "$type" ]
-                                       then
-                                               id=$token
-                                       else
-                                               id=
-                                       fi
-                               else
-                                       id=$token
-                               fi
+                               id=$token
                                ;;
                        [\,\;])
                                if [ $level = 2 -a -n "$(echo $id | $SED 
's,^_pad[[:digit:]]*,,')" ]
@@ -330,18 +288,6 @@ build_body ()
                        if [ -n "$array" ]
                        then
                                array="$array $token"
-                       elif [ -z "$id" -a -z "$type" -a -z "$array_type" ]
-                       then
-                               for id in $typedefs
-                               do
-                                       test $id != "$token" || type=$id
-                               done
-                               if [ -z "$type" ]
-                               then
-                                       id=$token
-                               else
-                                       id=
-                               fi
                        else
                                id=$token
                        fi
@@ -514,7 +460,6 @@ name=${2#compat_}
 name=${name#xen}
 case "$1" in
 "!")
-       typedefs="$(get_typedefs "$list")"
        build_enums $name "$fields"
        build_body $name "$fields"
        ;;
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.