Return-Path: Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42JZwQ66kdzDqSh for ; Mon, 24 Sep 2018 17:05:26 +1000 (AEST) Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) by bilbo.ozlabs.org (Postfix) with ESMTP id 42JZwQ5V1hz8xKT for ; Mon, 24 Sep 2018 17:05:26 +1000 (AEST) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42JZwQ1jM2z9sB4 for ; Mon, 24 Sep 2018 17:05:25 +1000 (AEST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8O741UO114597 for ; Mon, 24 Sep 2018 03:05:24 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2mpu70g2fu-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 24 Sep 2018 03:05:23 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Sep 2018 08:05:21 +0100 Subject: Re: [PATCH] powerpc/perf: Add missing break in power7_marked_instr_event() To: Segher Boessenkool Cc: Michael Ellerman , linuxppc-dev@ozlabs.org, maddy@linux.ibm.com, paulus@samba.org References: <20180920094111.4125-1-mpe@ellerman.id.au> <20180920144715.GA23155@gate.crashing.org> From: Madhavan Srinivasan Date: Mon, 24 Sep 2018 12:35:16 +0530 MIME-Version: 1.0 In-Reply-To: <20180920144715.GA23155@gate.crashing.org> Content-Type: text/plain; charset=utf-8; format=flowed Message-Id: <8f147e4f-321b-d730-0a0a-f6cee8254dd0@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday 20 September 2018 08:17 PM, Segher Boessenkool wrote: > On Thu, Sep 20, 2018 at 03:29:22PM +0530, Madhavan Srinivasan wrote: >> On Thursday 20 September 2018 03:11 PM, Michael Ellerman wrote: >>> In power7_marked_instr_event() there is a switch case that is missing >>> a break or an explicit fallthrough, it's not immediately clear which >>> it should be. >> Just curious to know, how did you find this. Static code checker compiled >> or any specific compiler warnings or just by code read? > Newer GCC warns about suspicious fallthroughs (-Wimplicit-fallthrough, > which is in -Wextra). > Nice good to know. Maddy > Segher >