diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 8fd107a3fac49..2dea5f81baef5 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -2046,6 +2046,9 @@ sub process_file($) {
 
     $section_counter = 0;
     while (<IN>) {
+	while (s/\\\s*$//) {
+	    $_ .= <IN>;
+	}
 	if ($state == 0) {
 	    if (/$doc_start/o) {
 		$state = 1;		# next line is always the function name