Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4036055imu; Mon, 14 Jan 2019 13:42:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6katpa+1tYcaDGJjUALOkChmnvNljU1tKQLJrHXAMoAR8Ej4Itk5+Ni5BvLO9xKj9uD8uD X-Received: by 2002:a17:902:7588:: with SMTP id j8mr576973pll.215.1547502125005; Mon, 14 Jan 2019 13:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547502124; cv=none; d=google.com; s=arc-20160816; b=QX0Kta9ys8kMY7ewSNZPXoBJbxZf1jXZZkTXaTIOu2EUktA8yTI20l1V2PZ4P72WEm I4N8M15Z8Vh6Ukf2ZT+UQ3h8Xb1Yo7cvizd/kzRz2Mw9nyzCaAc//sAnBXCishZmEuhQ cfyjGQKVdjCKnxRBfLC8fkXM7mQnD1WEAqINFOUb6DDjbHrlCJ0lpExl67olIRet7tU0 wmafnFoV2a/4AlRa17lgmWibXqvrNN0FBp5z6PVOtsxJzm0tEix1qUajESnHnDlZt1GJ wxzi4GMRMX9heSFl4mmQV1OtPKz4JpDnVrwwjOc9tVYZmnWLKO2i8POj4hc7oVgxtybg sN+g== 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=18s3PIW1Ki+IQk/sYVBrMOYuugA6b/hRiDcJ8oDgOwo=; b=LfA/D3bKXIzyLqm7djWM2Rr0fpMDYBk9kpVZqijjBfAQm1uyK+PI7UnpqntyJw95mH arJxQBeCsBO0leIxUa+6rkXEdsTdLcM9cG9sS3WieykZIoNUUKWPbVhaqCK4w//xfDdA 7qH0quzH7RwglgxRKsr+jSsOccgMJbaVlS8q/igSvxEjcgB2mP2orqnE+4ezJcHt6GhS p4g0aR9bCg7x31wvnu58XiRNiaSXHf5Ocda6YZkvlXMMLOKwVVoI/SjH43ZlyCdmWHZB O/4RJf4EiF9nB7DR8ZH9EJnpYoEPaRCtUaVTe3m9BsJ8K2jH7pzKTmpKnCHq95GYgkQL tK3Q== 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 k11si1295103pgg.430.2019.01.14.13.41.49; Mon, 14 Jan 2019 13:42:04 -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 S1727010AbfANVkm (ORCPT + 99 others); Mon, 14 Jan 2019 16:40:42 -0500 Received: from gateway22.websitewelcome.com ([192.185.47.179]:11439 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbfANVkm (ORCPT ); Mon, 14 Jan 2019 16:40:42 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway22.websitewelcome.com (Postfix) with ESMTP id EC8599C02 for ; Mon, 14 Jan 2019 15:40:41 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id j9yLgEnGRYTGMj9yLgyzho; Mon, 14 Jan 2019 15:40:41 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=51442 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 1gj9yL-000tss-1i; Mon, 14 Jan 2019 15:40:41 -0600 Subject: Re: [PATCH] nvram: annotate implicit fall through To: Mathieu Malaterre , Arnd Bergmann Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org References: <20190114204415.22296-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: <59962ef4-d349-e5ac-3dab-e1c70409f8ff@embeddedor.com> Date: Mon, 14 Jan 2019 15:40:36 -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: <20190114204415.22296-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: 1gj9yL-000tss-1i X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:51442 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 29 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:44 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: > > drivers/char/generic_nvram.c:83:3: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre > --- > drivers/char/generic_nvram.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/char/generic_nvram.c b/drivers/char/generic_nvram.c > index ff5394f47587..53123c110f7b 100644 > --- a/drivers/char/generic_nvram.c > +++ b/drivers/char/generic_nvram.c > @@ -81,6 +81,7 @@ static int nvram_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > #ifdef CONFIG_PPC_PMAC > case OBSOLETE_PMAC_NVRAM_GET_OFFSET: > printk(KERN_WARNING "nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n"); Here you could use the pr_warn() macro instead of the obsolete printk KERN_WARNING, but that'd be another patch. Anyway: Acked-by: Gustavo A. R. Silva Thanks -- Gustavo > + /* fall through */ > case IOC_NVRAM_GET_OFFSET: { > int part, offset; > >