Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp644915pxu; Fri, 23 Oct 2020 09:41:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ424xM65zKYiiqdNC44vXrAaIKEECLa8xGCdFGrKyOl29Rs1CUL0QtgVzTKx/I9uJWkfM X-Received: by 2002:a50:f785:: with SMTP id h5mr1830515edn.249.1603471278439; Fri, 23 Oct 2020 09:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603471278; cv=none; d=google.com; s=arc-20160816; b=bIhVyOQpcmW1PEgC4+PnI6JeZCIa4j9XMUeFvBBF8VYlAB6iCuRSjaEvQ+zMOv+cCV 8XzUnxq3Xd2BMaTxvfJHNdQEF6dQHRaLqEzxqV5BTURhFgNbpcxP9gi5xFfZBqVBsyhb 8E5MSPJMDzFkmWLvmLlAz5bHQBpV+nfnRwrVmIOuVx3o0XLW51K4I0iKICza9URxjLR7 Q/I5gBOBUM6DZX9VycrdXtwithvYRFmoL38wU0RTaDBVJsJA4/WCYmg3HfBHT6h2IVo/ 2XOSQ1wdd3CXePBp/b8jitLYE6F0qwwa+hYNATAjcKLGWjJL4C0CZkr/YNi4Tr6fBTHO ALtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Q5q4PMQrHIYHre82HSXBMSElumH9PmHUkz6qcX1XdRU=; b=zU53zixbaVQo0q83aZhqID3zYWTexTMveaxpAUMzo6t/iatHd/ZU3QqpZPEKtHVApN lKVPEYmiWJxMHDffE7fStAlUzpne0k1HqGBaXHYLGhVqiS7DYX0QmEmFi3G9ap2vFyUt s1yKZKdd7cmBJmPO6fAW4bSwoPF0N6whUpvM51+zi5mH4krAmkwQcn+BEFsI0LeTGVUY CAtf7gint5R1x6Ne2Jr0QgK8L/L420ZOeP/uDRxQhhF9OLg/JH/vFZwoptbUw/hbgeOr h8CUrmGR/vaFkoVu27Lg/drhyXM6kHADNDcYJgYoCLoCCqipgBiBx5XEemrO5qn2qySk XHeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FsAtcwMi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si1238015ejs.60.2020.10.23.09.40.56; Fri, 23 Oct 2020 09:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FsAtcwMi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751611AbgJWQii (ORCPT + 99 others); Fri, 23 Oct 2020 12:38:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:33276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbgJWQds (ORCPT ); Fri, 23 Oct 2020 12:33:48 -0400 Received: from mail.kernel.org (ip5f5ad5a3.dynamic.kabel-deutschland.de [95.90.213.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66D8824681; Fri, 23 Oct 2020 16:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603470827; bh=DkQPfqmarGLDfJetUgwz5TgWReIHtbqYm7uER2L8pCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FsAtcwMiQkBC5lIORYoN2TzrdIafHzX4AAHZMI+FtgxrZqmTUc5dg+LZolgd/4LTE Mf0MTQw4jsvOTE+oAaEfbgE5J2gfNCFxAbJqTTKPDJjUVeFkArKF1HNGARZ7z867/g XWet86fSunBpzPFtnwKnH8EBOAV0WlXwEasX4l4A= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kW00e-002AvO-LF; Fri, 23 Oct 2020 18:33:44 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH v3 01/56] scripts: kernel-doc: fix typedef parsing Date: Fri, 23 Oct 2020 18:32:48 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The include/linux/genalloc.h file defined this typedef: typedef unsigned long (*genpool_algo_t)(unsigned long *map,unsigned long size,unsigned long start,unsigned int nr,void *data, struct gen_pool *pool, unsigned long start_addr); Because it has a type composite of two words (unsigned long), the parser gets the typedef name wrong: .. c:macro:: long **Typedef**: Allocation callback function type definition Fix the regex in order to accept composite types when defining a typedef for a function pointer. Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 99cd8418ff8a..311d213ee74d 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1438,7 +1438,7 @@ sub dump_typedef($$) { $x =~ s@/\*.*?\*/@@gos; # strip comments. # Parse function prototypes - if ($x =~ /typedef\s+(\w+)\s*\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/ || + if ($x =~ /typedef\s+(\w+\s*){1,}\(\*\s*(\w\S+)\s*\)\s*\((.*)\);/ || $x =~ /typedef\s+(\w+)\s*(\w\S+)\s*\s*\((.*)\);/) { # Function typedefs -- 2.26.2