Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3769778imm; Tue, 17 Jul 2018 09:59:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdYSyK8ZazBc1dabrGWLj4QT/bd4ZF7RzaFnQxY8eeOfjTGbF1W7bPbQFdqOo53OrzZwqAO X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr2390760pgb.274.1531846781484; Tue, 17 Jul 2018 09:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531846781; cv=none; d=google.com; s=arc-20160816; b=XDe8xSqRbadZOyBikUYm4A1W8hVjg657IX1z9uh/yCDrer4SusasBUW8x5hlh6ZURR cwL7k8d79sxOGd8kxHgwLVG+P3wjmeZYtjyYS+/bvXBxslIGzq9lCw9rANGVbuO9hdIp ROcdirjq1M/PawkHJSOtGzBLDAhuyeYSth4O7DmPT/mn0Hx7syyrCT8exDJFTcwL7Ul8 oSJyTTKgGtZmok+B2fGdVXlKD2IBNpwScLeqlq/xbFvqzjmHTqv0Fv+KjC39ufrHQxb1 aqJ5nf2PtpkVpGh6fYpHIBK/j17QXDXdWYdqX45rYkQFjOnlPm5YFKCzoKEb2LyQXNZ0 m42w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:mime-version:subject:cc :to:from:arc-authentication-results; bh=LtVku/iuck+D5WG5Ro4sIvNmREvameSM9cOdfPJuUAE=; b=o/W3sKNmUHFyPUdGGYL2hRrugUX93ki5MnC9dhVW4kBQKRByRutry1DC1wWLeBG8fo WAypoMHohE7nKuTPAimUBEV3ASdk9n7k3TZgazzAsoFvsDAOL7zxO4Qui97b7xww0oCk 97vQzjPXmQzszgZUvcsgdQiwMsHbdOM/GfWzX5nmO0BE8YojGAv2ettwOlaUopRtrIi1 AlIBVvk3rzZEEC28L1GsUQi79e07ZxmxZffQTfQuSsxy462VpEo701rObzhBUkJtF0+U SSaWOE3iPSSxRDKqIlabdPSrqKkdZQNkmx33p3jnx0UUm834K2KL9dHxdzrE/tKWWALG YA/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si1314478pga.639.2018.07.17.09.59.26; Tue, 17 Jul 2018 09:59:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730063AbeGQRbK (ORCPT + 99 others); Tue, 17 Jul 2018 13:31:10 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:43948 "EHLO omr2.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729671AbeGQRbK (ORCPT ); Tue, 17 Jul 2018 13:31:10 -0400 Received: from mr4.cc.vt.edu (mr4.cc.vt.edu [IPv6:2607:b400:92:8300:0:7b:e2b1:6a29]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id w6HGvagH018469 for ; Tue, 17 Jul 2018 12:57:36 -0400 Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id w6HGvV9S010911 for ; Tue, 17 Jul 2018 12:57:36 -0400 Received: by mail-qk0-f199.google.com with SMTP id 17-v6so1340802qkz.15 for ; Tue, 17 Jul 2018 09:57:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:mime-version:date:message-id; bh=LtVku/iuck+D5WG5Ro4sIvNmREvameSM9cOdfPJuUAE=; b=G/17FAuNnecZKliMFZ8pMVzUJCgUB+XANGWr7gzour5MmgAU21Jg1hTEj4KDa6krm8 LciTxxMA45n0mU+4fZEK62RlGYidkbRBOH+QQhhWIqDVKbxeD598intSNwNJjgDh9p2X 3nbXrBQvuXlOjc6qUDXptVSNRCjlJG0QQjaRsn5W1eGlW+dm7YqrIa0TCHx5xtUIqgob KN660soDfBHZ2Z9Y2EOZhydz+DqLZInCpGOZPsY9CrMEDSzV5qVDi55yqEICqde7eEmA tMmcFDc9VSw4oYrStO29UPHZh52LLpwQ3iZLzUamWTNchPmLf0SjeBJ+mygDsvUHjnSv ozzg== X-Gm-Message-State: AOUpUlEVBTVAhKcOQ71M1rhCR+6/dzz7C/QE+X5UkAoFXegIJNg8FlHN BpeTrwT0oK6JtSvImFKaMoEHkhHfM0JXaSXEqxFwgQO3eQWlMmm0w0rDXMdAC3dFYtInBHRYnxE isoUVAXChWFUBjlksMJSo1quk/G44TERkT1s= X-Received: by 2002:a37:6393:: with SMTP id x141-v6mr2341551qkb.318.1531846651693; Tue, 17 Jul 2018 09:57:31 -0700 (PDT) X-Received: by 2002:a37:6393:: with SMTP id x141-v6mr2341537qkb.318.1531846651542; Tue, 17 Jul 2018 09:57:31 -0700 (PDT) Received: from turing-police.cc.vt.edu ([2607:b400:24:0:40a6:3022:e8ef:6dd0]) by smtp.gmail.com with ESMTPSA id k38-v6sm1341653qtc.45.2018.07.17.09.57.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 09:57:30 -0700 (PDT) X-Mailer: exmh version 2.8.0 04/21/2017 with nmh-1.7+dev From: valdis.kletnieks@vt.edu To: Jonathan Corbet , Mauro Carvalho Chehab cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: PATCH scripts/kernel-doc Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 17 Jul 2018 12:57:29 -0400 Message-ID: <50400.1531846649@turing-police.cc.vt.edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix a warning whinge from Perl introduced by "scripts: kernel-doc: parse next structs/unions" Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/({ <-- HERE [^\{\}]*})/ at ./scripts/kernel-doc line 1155. Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/({ <-- HERE )/ at ./scripts/kernel-doc line 1179. Signed-off-by: Valdis Kletnieks --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 0057d8eafcc1..31a34ced55a3 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1152,7 +1152,7 @@ sub dump_struct($$) { } # Ignore other nested elements, like enums - $members =~ s/({[^\{\}]*})//g; + $members =~ s/(\{[^\{\}]*})//g; create_parameterlist($members, ';', $file, $declaration_name); check_sections($file, $declaration_name, $decl_type, $sectcheck, $struct_actual); @@ -1176,7 +1176,7 @@ sub dump_struct($$) { $declaration .= "\t" x $level; } $declaration .= "\t" . $clause . "\n"; - $level++ if ($clause =~ m/({)/ && !($clause =~m/}/)); + $level++ if ($clause =~ m/(\{)/ && !($clause =~m/}/)); } output_declaration($declaration_name, 'struct',