From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id BBE0B7D2F0 for ; Mon, 5 Aug 2019 16:29:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729146AbfHEQ3y (ORCPT ); Mon, 5 Aug 2019 12:29:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56394 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfHEQ3y (ORCPT ); Mon, 5 Aug 2019 12:29:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=O/cOvUBI1ERP7wt0pfm8UV4BQQBmZinQ5jmqMRrRT3s=; b=uhwlkx7DAglWC5KpvGCBlGwg1 dUAcvuQB7umeU4YBhYbXiVAyRPD7tzseUppEYZnnSCIOzseQwE0QYorBjauDfE8NRP6Qj43yyZuhg xFAH+So5W5IUjbIQdh2VgfV5GhBzlLmnnhwpvWKVIYqLrkEuZVT3NSn2wgmTV33eoCcZglBGtqBtL EV46nqrG6G97PZThySj8vmaQ612Rv/qJrnj543XuVvp0rlKJTdmI1NpQn/iQ/eoSmc5p+M/uEdTaN Vw4/pYS7sbzYLgbUxOGNTo+9OHFUUvyVc96rNgdlmcvT8PbQHjsHi9DWoV1j9vFB8mhnh+n9FKJhF 6AFBLIRqA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=[192.168.1.17]) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hufrq-0000iB-Sq; Mon, 05 Aug 2019 16:29:51 +0000 To: "linux-doc@vger.kernel.org" , Jonathan Corbet Cc: LKML , Brendan Higgins From: Randy Dunlap Subject: [PATCH] kernel-doc: ignore __printf attribute Message-ID: <77cf8297-7de3-4ad1-d497-4ad941012b75@infradead.org> Date: Mon, 5 Aug 2019 09:29:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org From: Randy Dunlap Ignore __printf() function attributes just as other __attribute__ strings are ignored. Fixes this kernel-doc warning message: include/kunit/kunit-stream.h:58: warning: Function parameter or member '2' not described in '__printf' Reported-by: kbuild test robot Signed-off-by: Randy Dunlap Cc: Brendan Higgins Tested-by: Brendan Higgins --- scripts/kernel-doc | 1 + 1 file changed, 1 insertion(+) --- linux-next-20190805.orig/scripts/kernel-doc +++ linux-next-20190805/scripts/kernel-doc @@ -1580,6 +1580,7 @@ sub dump_function($$) { $prototype =~ s/__must_check +//; $prototype =~ s/__weak +//; $prototype =~ s/__sched +//; + $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//; my $define = $prototype =~ s/^#\s*define\s+//; #ak added $prototype =~ s/__attribute__\s*\(\( (?: