Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5477953imu; Wed, 26 Dec 2018 03:47:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN4gqRq06BDVPbsOce4z2LQx60YwB45w0qILBPu+btpTXoo2hJo7rkq6csS8h74plNdj99HR X-Received: by 2002:a17:902:8484:: with SMTP id c4mr19018201plo.59.1545824836473; Wed, 26 Dec 2018 03:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545824836; cv=none; d=google.com; s=arc-20160816; b=POqANexwi+jGKUZeCp5Ad8YQBGWkWkPh6JhKVDMM45/5Z9gQobXdXCCFEPkQQKF/oV 5y9TiZiiyNAeWdWtlKlVPoG36U615eyUPXijJ50TczQUcLCPjiYB7Cw1WjTR5pjrlX9M F6ebqlZCia8rbIt5vNekP943De+o4HrGSt2eFxu339oPejv6O08nIZISPcllPEl8nngB XIfXYJitXkIaGart0Wvu8pD6KIuLf2t0XFUdeJNpSaOlZOeD1qI9lO1asUIFL5sPQo4s 4VXOR5JFZB+nuJZ1GF5ISsEkfnwMu9Rcp+6gdxlrkTmfASXbHTNgJe/GoKDKiMGSpprB GtAg== 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:subject:cc:to:from:date :dkim-signature; bh=EooV2cAZ15bFoWJtG+86LBUlp1H6fg8CN4reh6/6GJE=; b=MmC+iTMnc78u2oh3j8KM3Dmw294acnG+d6ONOHfn3v9t0mzFoVIL0Xt31GgxKslljo d2x8aDhABga7I8zn7yRPK65vIpe/5bGJfD3XU4iSATwViUwfkVKxVUQtl0o2oM2lZTx8 OUrApmEblSdINW84IasMY/I7aDSjaKO1zMvzJbP6cwjOK1YeFhZEFljV6C+Xj3OESgTc KRXFz+X4CscU0SKkbFmWU+7wmUT0L0y0oeRubWp13v28f00bG+WtApBNASeuz6bVIJHL QnCzHZGKERXu1tzE2vEgoDbnq09PcNcRdklGDft7vlrdzho7BJE24jmCPSMCU4fN6YgH Nb0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=kbNjwIWo; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si6332296pgc.232.2018.12.26.03.47.00; Wed, 26 Dec 2018 03:47:16 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=kbNjwIWo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbeLZLoG (ORCPT + 99 others); Wed, 26 Dec 2018 06:44:06 -0500 Received: from casper.infradead.org ([85.118.1.10]:44848 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726549AbeLZLoG (ORCPT ); Wed, 26 Dec 2018 06:44:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EooV2cAZ15bFoWJtG+86LBUlp1H6fg8CN4reh6/6GJE=; b=kbNjwIWoBUg0dEnH7kW0eb3vz8 7Ev07m6xosB65ke+6pQwIip+piqiXGWdQZUdtKhNlmCwORii+lbM3tRFS2vsG8ooyQhs4ZBZbuAVX nugVfZjJTaExLWAQHykhBfyX0CPehKZcUapTe1dCmoDG9Z4vRmdIdr1dowmrZfqpKGwVjnjfo2N3S eCU1XpouPrW2wUTQDxckWZEVhyB/4FOhSHzhAQnhLD2CFKwmIMze8m1N2ofDO6JGE0DVhLTbJl384 Vrhzqg9C35FO0M805hzOFOce9/CDxshnHTlA7OBNuS2MJj2ubcG4dVR8GV4NDGyyGOxP+KILg+nOr q15fvb+g==; Received: from [179.179.34.18] (helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gc7bX-00084F-3c; Wed, 26 Dec 2018 11:44:03 +0000 Date: Wed, 26 Dec 2018 09:43:57 -0200 From: Mauro Carvalho Chehab To: Linus Torvalds Cc: Greg Kroah-Hartman , Andrew Morton , Linux Media Mailing List , Linux Kernel Mailing List , Jonathan Corbet , Sakari Ailus Subject: Re: [GIT PULL for v4.21] second set of media patches: ipu3 driver Message-ID: <20181226094357.293fdd97@coco.lan> In-Reply-To: References: <20181220104544.72ee9203@coco.lan> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 25 Dec 2018 13:12:58 -0800 Linus Torvalds escreveu: > On Thu, Dec 20, 2018 at 4:45 AM Mauro Carvalho Chehab > wrote: > > > > Also, it would be good if you merge first the docs-next pull request from > > Jon, as otherwise, you'll see some warnings when building documentation, > > due to an issue at scripts/kernel-doc, whose fix is at documentation tree. > > I don't seem to have that in my pile of pull requests, so docs > creation will warn for a bit. Not a huge deal. Yeah, we can live without that for a while. In any case, the patch that fixes it is this one: 3d9bfb19bd70 ("scripts/kernel-doc: Fix struct and struct field attribute processing") I'm enclosing it as a reference (as seen at Jon's docs-next tree). It is probably worth to just wait for Jon's pull request. Thanks, Mauro From: Sakari Ailus Date: Thu, 22 Nov 2018 13:06:04 +0200 Subject: [PATCH] scripts/kernel-doc: Fix struct and struct field attribute processing The kernel-doc attempts to clear the struct and struct member attributes from the API documentation it produces. It falls short of the job in the following respects: - extra whitespaces are left where __attribute__((...)) was removed, - only a single attribute is removed per struct, - attributes (such as aligned) containing numbers were not removed, - attributes are only cleared from struct fields, not structs themselves. This patch addresses these issues by removing the attributes. Signed-off-by: Sakari Ailus Signed-off-by: Jonathan Corbet diff --git a/scripts/kernel-doc b/scripts/kernel-doc index f9f143145c4b..c5333d251985 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1062,7 +1062,7 @@ sub dump_struct($$) { my $x = shift; my $file = shift; - if ($x =~ /(struct|union)\s+(\w+)\s*\{(.*)\}/) { + if ($x =~ /(struct|union)\s+(\w+)\s*\{(.*)\}(\s*(__packed|__aligned|__attribute__\s*\(\([a-z0-9,_\s\(\)]*\)\)))*/) { my $decl_type = $1; $declaration_name = $2; my $members = $3; @@ -1073,8 +1073,9 @@ sub dump_struct($$) { # strip comments: $members =~ s/\/\*.*?\*\///gos; # strip attributes - $members =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i; - $members =~ s/__aligned\s*\([^;]*\)//gos; + $members =~ s/\s*__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)//gi; + $members =~ s/\s*__aligned\s*\([^;]*\)//gos; + $members =~ s/\s*__packed\s*//gos; $members =~ s/\s*CRYPTO_MINALIGN_ATTR//gos; # replace DECLARE_BITMAP $members =~ s/DECLARE_BITMAP\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;