Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4016072imu; Mon, 14 Jan 2019 13:16:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN6n7n0qJwjZmqDfbBM4VzuLIbI0Wz2fAYC/owCQ8winnce6zDSWwX3vs6rp8jWnirRPJQBp X-Received: by 2002:a17:902:8607:: with SMTP id f7mr479832plo.123.1547500616082; Mon, 14 Jan 2019 13:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547500616; cv=none; d=google.com; s=arc-20160816; b=hpCSib7xaRq66uWF2Tam78ZHoQV7MfKyWjZQMGCu6XJXIXOW2l+QwdPzCgDE+N+phw DFUfOuCqO6rX1hb2alRP3eaIVeihqjoMot1eqtjb9k8aWB0sX0bNf8NCpantGkTlCE7K zVQCVzENmN7wwmvfhW5Q7urs710tTkGhzZg4MQ7rviHeZxPAaCj5+zLV48fESocmZZi9 HFd0P/1CG8yxgySTRagTlTQCJHx6m5ijwYtr5HCQregH0nj0oBAAkim9/C2ZuPuwy9Ot n7L+qcjIQk3HndRBCoV/m69SGoEhjqwHTWaj69dqow/zxsykDpNnkUo2swRBFp2WmseP ly7g== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tSdrtC/6SCmvURiCayFhVFXxEcEkh0OI2iiWAF54akE=; b=iYFEWhm+rZmdmlqrkPk8/V9QfMdaW9+E0gUVp+N+Cr+CuMo4gIBWv68NnuZ0J8U2t3 A8E+xoU5FihvO2UIY35Gi2RBMGF2ndxXjJsGfbkUh6Q197/ywdS3E/kp9wF/laQGja3a DQ69hDRR2DyQh2YQmfKc6T4ATcLTnGD+6OJSn3l1D0h3aoLZ/i+AT4Ri2rRQuwnQkza+ OG0XOc+DubeFEGjabfe7eR5R3ku91LZWI9ldZQFsXSHmIzweYyVKWYQw5InF1k/GO2uY 9Fi0SfTwfJNpovdTtsiO+H0mFRnnrJ6t0T3ygZuJjjb6IiX/ytZAmYIifvSQOWp1Bkou ILow== 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 11si1233897pgy.408.2019.01.14.13.16.39; Mon, 14 Jan 2019 13:16:56 -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 S1726863AbfANVPg (ORCPT + 99 others); Mon, 14 Jan 2019 16:15:36 -0500 Received: from gateway23.websitewelcome.com ([192.185.50.250]:25465 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbfANVPf (ORCPT ); Mon, 14 Jan 2019 16:15:35 -0500 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway23.websitewelcome.com (Postfix) with ESMTP id A27CA3BD50 for ; Mon, 14 Jan 2019 15:15:34 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id j9a2gKtGj2qH7j9a2gyec3; Mon, 14 Jan 2019 15:15:34 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=50914 helo=[192.168.43.131]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gj9a2-000gNf-8a; Mon, 14 Jan 2019 15:15:34 -0600 Subject: Re: [PATCH] capabilities:: annotate implicit fall through To: Mathieu Malaterre , Serge Hallyn Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190114202835.15878-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: <7cba59f5-d59a-f8fe-9717-0ecbab47eeaf@embeddedor.com> Date: Mon, 14 Jan 2019 15:15:30 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190114202835.15878-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.130.205 X-Source-L: No X-Exim-ID: 1gj9a2-000gNf-8a X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:50914 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 21 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/19 2:28 PM, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > this place in the code produced a warning (W=1). > > In this particular case change put the fall through comment on a single > line so as to match the regular expression expected by GCC. > > This commit remove the following warning: > > kernel/capability.c:95:3: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre Acked-by: Gustavo A. R. Silva Thanks > --- > kernel/capability.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/kernel/capability.c b/kernel/capability.c > index 1e1c0236f55b..e60be18b98e2 100644 > --- a/kernel/capability.c > +++ b/kernel/capability.c > @@ -93,9 +93,7 @@ static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) > break; > case _LINUX_CAPABILITY_VERSION_2: > warn_deprecated_v2(); > - /* > - * fall through - v3 is otherwise equivalent to v2. > - */ > + /* fall through - v3 is otherwise equivalent to v2. */ > case _LINUX_CAPABILITY_VERSION_3: > *tocopy = _LINUX_CAPABILITY_U32S_3; > break; >