Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp170772ybg; Mon, 27 Jul 2020 19:25:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2ZQbApo9Oig084vUQ+ZQfRbBvj3/WaHu4V9FQ6c2UbWH9I7WmmRdJxnVm+HY8DXxD/mOl X-Received: by 2002:a17:907:7291:: with SMTP id dt17mr19295110ejc.73.1595903112159; Mon, 27 Jul 2020 19:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595903112; cv=none; d=google.com; s=arc-20160816; b=bAZoCjeST6Z+mPPhq0QvHdgL/LCR3jitSoPkKimnAcWUDdqwnlg+HAa6OYYFSzraEa zYVRGRTtLYnUMaagpQ+RWZB7ATl/bIxQq09Tbk6omomsEaz+qqnsuGnYxD/PdWS33Scm wKcxPglzRzcOiGUvtX2aXZJqWI/L/TjJcM8Z44++KpNHhVqeC09iowhLCscZbT1qa8Nx YIyJ+mSAKKJBMjkCbl44haeG6pMGxsQs4u4w/zOEs0FMbI2KgrvdVDVWCfd+kbGDS/EJ o6axpWvPJMJqtc4HmyavslQ82PTjBFhubUczRb6zFxxjgAZOiP0gFnBzMqpsZrr8NIea qGBg== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=jAD9P1MvjqrQvpaWagtEMGG2qO2k858fCb7qJI5m9Ec=; b=AyQ9CNs96vvO+HCTa6hiWd6lGxLxwocEUXxki4c/rCjDN/6E9HRAX8RmYXl3Vbtxf+ +Lf0AYi7pan10XV2FuGaM892OZtXi74rQv7GgjNSCCs2D7+2i/pJ39UZTuf0Doy7+tZ7 rPL/jMraL45XsQBHNX6Dn0CmHBjERy+nEt7hDXgvXw+1pxrApIQhj5noQrZzGqJLZ9HM /KYoHF+27LSnTb2YUvCKSsnZKaqFeJIi6smR/JtidLgBkgSRcwRRJAd+ILhDiSjUzhnx 00oG2EOX3MI4+91NKfu1YYIpyH8Afz6wLy3eXtiLy2I8WdUd2c6k4CEP2wcEE4mfZ6TA W/Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si6761315ejf.218.2020.07.27.19.24.49; Mon, 27 Jul 2020 19:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726878AbgG1CWW (ORCPT + 99 others); Mon, 27 Jul 2020 22:22:22 -0400 Received: from smtprelay0216.hostedemail.com ([216.40.44.216]:56242 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726269AbgG1CWW (ORCPT ); Mon, 27 Jul 2020 22:22:22 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 4FAB2181D330D; Tue, 28 Jul 2020 02:22:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:1801:1963:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3874:4184:4321:4605:5007:9121:10004:10400:10848:11232:11233:11658:11914:12043:12048:12297:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14180:14581:14659:14721:21060:21080:21451:21627:30054:30060:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: anger93_0e0cfdb26f66 X-Filterd-Recvd-Size: 2213 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf20.hostedemail.com (Postfix) with ESMTPA; Tue, 28 Jul 2020 02:22:19 +0000 (UTC) Message-ID: Subject: Re: [PATCH][next] ACPICA: Use fallthrough pseudo-keyword From: Joe Perches To: "Gustavo A. R. Silva" , "Moore, Robert" , "Rafael J. Wysocki" , "Gustavo A. R. Silva" Cc: "Kaneda, Erik" , "Wysocki, Rafael J" , Len Brown , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Linux Kernel Mailing List Date: Mon, 27 Jul 2020 19:22:18 -0700 In-Reply-To: References: <20200707200716.GA4920@embeddedor> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-07-27 at 17:23 -0500, Gustavo A. R. Silva wrote: > Hi, > > > This is a macro pseudo-keyword, which expands to /* fallthrough */ > for compilers that don't support the attribute __fallthrough__. See: Not really. It expands to do {} while (0) for compilers that do not support the __fallthrough__ attribute. The /* fallthrough */ after that is for the human reader and is stripped before compilation. > include/linux/compiler_attributes.h:213: > 213 #if __has_attribute(__fallthrough__) > 214 # define fallthrough __attribute__((__fallthrough__)) > 215 #else > 216 # define fallthrough do {} while (0) /* fallthrough */ > 217 #endif > > So, any compiler (older or new) will be fine with it. But old compilers should not emit warnings for these uses.