Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4010878imu; Mon, 14 Jan 2019 13:11:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN69M6zt12KOdGNS8dcrf2PwFhRQg0f0ytuYPDekX3a3Us6vnTDGMyHhG5qR1Fpa/68d6Oek X-Received: by 2002:a62:3811:: with SMTP id f17mr471272pfa.206.1547500262623; Mon, 14 Jan 2019 13:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547500262; cv=none; d=google.com; s=arc-20160816; b=VxU/JmPkvlY1pkzXQSlwABI4Cb545c7WdSwRnH7zMYvXOsK26q7zGavlT07S3PppFm H/U3g1qINLPq91PLqTzmf7OV9qghyjnilZj1AhzxPWs6FUpd4vQCQi1JUgHS08YVyyfD WAUS3gZKXIQNlNGJSqJ00PsTp1p+657PJG1zsCFQL+ysNwLzl+3H17tfcT2sFIs1mVFH ctnzkk/cvXOmIXg6yBG7CQ9oNzlUQi1TB0h6mXuJACGm/EpEMEMa+YITmR+pN4InnvjX 4mGxJ2MUlhXEp1ivBSH4511kWQLxeFTUDXiOGHc9zofuPqzMJTHvDWW58RqIbiKmrANB TyCQ== 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=7ep8x1uKYmS0j45jFMTg7QJ779fyfS7q7MGxMQ/4jEE=; b=qahRaSCirK/AK/FoEGlLvkX3/4TtgRrUpQmBDP1uNY/83TJVcsXa8qJhtly68X/8Pl cD9FDlTQiK9fSfgz62AMgHH0vLrRaTW8Xf+h2kYduS4LxltgantYomuvhreHsuidaN6Z Tq/d/Wa3HrCF3PyeD+Ka9k52zpzea6t7zGjAJ2rLLPTEgF6WBWJI+D0tBeffe0JB5yy+ 1uSUg73QgAc1eJQZWvaLYJUKyeSY98Gu11Qu1aPjnvXFtRAxEsGUhRuWnVkJf/pvBEUb Vxfp5BLvgRg0imUsjYWexssborzefPWmdwA+1tP209n+HXxpiaHFc/Bcc8Efw2wVZPiP Wkzw== 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 m19si1156356pls.437.2019.01.14.13.10.47; Mon, 14 Jan 2019 13:11:02 -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 S1726949AbfANVIz (ORCPT + 99 others); Mon, 14 Jan 2019 16:08:55 -0500 Received: from gateway24.websitewelcome.com ([192.185.51.36]:16397 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbfANVIz (ORCPT ); Mon, 14 Jan 2019 16:08:55 -0500 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 8A40569FF for ; Mon, 14 Jan 2019 15:08:52 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id j9TYgKlhD2qH7j9TYgyX5d; Mon, 14 Jan 2019 15:08:52 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=50892 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 1gj9TY-000d62-3D; Mon, 14 Jan 2019 15:08:52 -0600 Subject: Re: [PATCH] lib/assoc_array: annotate implicit fall through To: Mathieu Malaterre , David Howells Cc: linux-kernel@vger.kernel.org References: <20190114202454.14551-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: <475381f8-3fdf-5b5e-da34-23d57ae757e7@embeddedor.com> Date: Mon, 14 Jan 2019 15:08:46 -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: <20190114202454.14551-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: 1gj9TY-000d62-3D X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:50892 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 9 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:24 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). > > This commit remove the following warning: > > lib/assoc_array.c:1110:3: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre Acked-by: Gustavo A. R. Silva > --- > lib/assoc_array.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/assoc_array.c b/lib/assoc_array.c > index c6659cb37033..0b61d3b77e5c 100644 > --- a/lib/assoc_array.c > +++ b/lib/assoc_array.c > @@ -1115,6 +1115,7 @@ struct assoc_array_edit *assoc_array_delete(struct assoc_array *array, > index_key)) > goto found_leaf; > } > + /* fall through */ > case assoc_array_walk_tree_empty: > case assoc_array_walk_found_wrong_shortcut: > default: >