Received: by 10.223.185.116 with SMTP id b49csp1100272wrg; Fri, 23 Feb 2018 11:57:35 -0800 (PST) X-Google-Smtp-Source: AH8x226PClS3CTsMz647xG8YUEUQHBDOBMZ2jeIECMCcp1GsSs9PVpJ9WRnNprgWVGZXUG8AhJgk X-Received: by 10.98.33.4 with SMTP id h4mr2812173pfh.144.1519415855190; Fri, 23 Feb 2018 11:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415855; cv=none; d=google.com; s=arc-20160816; b=MHm40tokiPDcgCLR8VfvQFOd+wzmidJCeHAAVk71S4rlbw4SkC8Qyego4gxvpnequB 6vzbXNPk/l4jhhB8Bm8AH2dT/lQDDBWdCWuUiwDG1H9A3F6S6TLHqYjv7gB9SbpANS+O /t27BhjLr4eE5+ZIXAjpgA10EMn8jMNi788uB3lhzQ0h09h59h0P7ZzyMpoeXO3cPBpD A2Tio9wFm1xeEecsOlO1cdJxwiXcEqhkyo07mEfKy4FGjDlhOjACX9dnjhcwhmKYhR6h d3m77YAnYsrnRMoJMmE9XX+7bEQg5rZQRhPzqPCVp3+Lawvt2oPpkzeFnCOw/W9CRj2N oNkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=y+iismcxnpURHP9VL3nuV1b1tbKS/CHqwEBGlk7MSvM=; b=xvPraOWf44/qoObTiBDAlguojlF6BqO8ToZe4aUztxdJR3dFIgVimddwPJQ41Gck6x VFe0KyLDcJW7+pa9Gm0zipTOLhsNyLm3N8bJy80Yw6qclnUH8k2NyUbkCm9Cp+xE6H+F RMPwZobszHNhuN0JfsQN6O53PUF6flrz3MJMbpePkhFpc+khlwpwfvws0wnhP9soFbmq ikcgB9cezIYk4knkMs8iOfwEo94IXPFfxtjaGb1o6MrjWZ61qnDJ+5udIR4ebyHxKTTH IxhSk90UnmZz8+RpQOyK7Grlt+PaywkJJZKoYSm6C+usMWlgqsytLWP+kpjG933BetAP 8pkg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9-v6si2196307plr.110.2018.02.23.11.57.20; Fri, 23 Feb 2018 11:57:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933636AbeBWSom (ORCPT + 99 others); Fri, 23 Feb 2018 13:44:42 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42608 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933001AbeBWSok (ORCPT ); Fri, 23 Feb 2018 13:44:40 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 12EB4120B; Fri, 23 Feb 2018 18:44:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthew Wilcox , Jonathan Corbet , Will Deacon , Sasha Levin Subject: [PATCH 4.9 058/145] scripts/kernel-doc: Dont fail with status != 0 if error encountered with -none Date: Fri, 23 Feb 2018 19:26:04 +0100 Message-Id: <20180223170732.306400091@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Will Deacon [ Upstream commit e814bccbafece52a24e152d2395b5d49eef55841 ] My bisect scripts starting running into build failures when trying to compile 4.15-rc1 with the builds failing with things like: drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:2078: error: Cannot parse struct or union! The line in question is actually just a #define, but after some digging it turns out that my scripts pass W=1 and since commit 3a025e1d1c2ea ("Add optional check for bad kernel-doc comments") that results in kernel-doc running on each source file. The file in question has a badly formatted comment immediately before the #define: /** * struct brcmf_skbuff_cb reserves first two bytes in sk_buff::cb for * bus layer usage. */ which causes the regex in dump_struct to fail (lack of braces following struct declaration) and kernel-doc returns 1, which causes the build to fail. Fix the issue by always returning 0 from kernel-doc when invoked with -none. It successfully generates no documentation, and prints out any issues. Cc: Matthew Wilcox Cc: Jonathan Corbet Signed-off-by: Will Deacon Signed-off-by: Jonathan Corbet Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- scripts/kernel-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -3139,4 +3139,4 @@ if ($verbose && $warnings) { print STDERR "$warnings warnings\n"; } -exit($errors); +exit($output_mode eq "none" ? 0 : $errors);