]> git.droids-corp.org - dpdk.git/blobdiff - devtools/checkpatches.sh
enforce experimental tag at beginning of declarations
[dpdk.git] / devtools / checkpatches.sh
index d15035344fbac4ecfd3e67c4e351d05f2517d191..dbdf08ebc90237e0d716ba9694757e3b5613e629 100755 (executable)
@@ -96,6 +96,11 @@ check_experimental_tags() { # <patch>
                                "headers ("current_file")";
                        ret = 1;
                }
+               if ($1 != "+__rte_experimental" || $2 != "") {
+                       print "__rte_experimental must appear alone on the line" \
+                               " immediately preceding the return type of a function."
+                       ret = 1;
+               }
        }
        END {
                exit ret;