Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kecy3-0001iM-Fl for mharc-qemu-trivial@gnu.org; Mon, 16 Nov 2020 06:46:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kecy2-0001h7-2R for qemu-trivial@nongnu.org; Mon, 16 Nov 2020 06:46:42 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kecxz-0006ZU-Iy for qemu-trivial@nongnu.org; Mon, 16 Nov 2020 06:46:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605527198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NEQNmZvdgUozWvWR8XYhqspP8mkgXk2CmcEgAhIx2DE=; b=QoJeP9zlU3I2rq9h7BBLIruYAdnlu10Tvqk8XXBdVRZjGfR4nnLQlTQ5LpUgAWtg2PJv6z qEOxEZAXLs/cdAWm7jhb5wXVQLGgchM3djPmtRx9qWz0F5x4+anRURHueml91mQS7J+Njs Y46OiCbE2vcojkcWgKMabp4ZqOBgC3w= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-119-yP0ZiCplNr6uMRNae2FSvg-1; Mon, 16 Nov 2020 06:46:37 -0500 X-MC-Unique: yP0ZiCplNr6uMRNae2FSvg-1 Received: by mail-wr1-f71.google.com with SMTP id e18so10972001wrs.23 for ; Mon, 16 Nov 2020 03:46:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NEQNmZvdgUozWvWR8XYhqspP8mkgXk2CmcEgAhIx2DE=; b=d0KMqKV+/XjQ5JaaQp3Pw9rZNX8MhXzbzgUWEnBKUT8KA1UWlYQOw2B+JI2Bn8wxYa ucEautXpm/mP/ePr2nsf0CZEOKJpy3be6PqFi1QZexUvkfkLbo1oqK7yz38uHhco75oA ihVh0j+oGyDK1orkS3rX7gBD1hvw1L356bEjVCAt/G8dsnQD7apkYxTmJKC1DhtHz/p1 4mzcrQuzshrcNlWZxM2vwg1coq7MK/zYgt6sFzw3jhSYtrHqUTPvGKnr4hHYvXIy3/vA dbIiF0L0qt8HpmOEMY9fWPIgKx1hht+uIAZPt8Wjtqa9UAtrZhQIkjTDKBZbgrb4s8iP aUYQ== X-Gm-Message-State: AOAM530c5Y1E4r8HCxCpsRf+7hKXr+5J5GGgcmdqrpG/Chg+o9ZzidkO zZexAm8TtamQZHQYr8n4djw69zJHMFcd/jFQcQ3DbdRFYdJcl4jV1bPLSDURcZ+xViVlWNo635Z oYdrW0lpi6eyUammdzQ== X-Received: by 2002:adf:e789:: with SMTP id n9mr18627623wrm.211.1605527195454; Mon, 16 Nov 2020 03:46:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvbjLZkf7cv/L0687BDM4VNhdTbMBhNCc1PiInbn+NnUyo16Eq2Y4niFq8sFOR9f8ZjaEDbA== X-Received: by 2002:adf:e789:: with SMTP id n9mr18627595wrm.211.1605527195211; Mon, 16 Nov 2020 03:46:35 -0800 (PST) Received: from [192.168.1.36] (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id c62sm19308520wme.22.2020.11.16.03.46.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Nov 2020 03:46:34 -0800 (PST) Subject: Re: [PATCH-for-5.2 v3 6/7] ppc: Add a missing break for PPC6xx_INPUT_TBEN To: Chen Qun , qemu-devel@nongnu.org, qemu-trivial@nongnu.org Cc: Thomas Huth , zhang.zhanghailiang@huawei.com, ganqixin@huawei.com, Euler Robot , David Gibson References: <20201116024810.2415819-1-kuhn.chenqun@huawei.com> <20201116024810.2415819-7-kuhn.chenqun@huawei.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <58864f26-7e06-efc4-86fd-b7b710def15e@redhat.com> Date: Mon, 16 Nov 2020 12:46:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201116024810.2415819-7-kuhn.chenqun@huawei.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/15 22:35:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 11:46:42 -0000 David, can you queue this patch for 5.2 (bugfix)? On 11/16/20 3:48 AM, Chen Qun wrote: > When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: > hw/ppc/ppc.c: In function ‘ppc6xx_set_irq’: > hw/ppc/ppc.c:118:16: warning: this statement may fall through [-Wimplicit-fallthrough=] > 118 | if (level) { > | ^ > hw/ppc/ppc.c:123:9: note: here > 123 | case PPC6xx_INPUT_INT: > | ^~~~ > > According to the discussion, a break statement needs to be added here. > > Reported-by: Euler Robot > Signed-off-by: Chen Qun > Reviewed-by: Thomas Huth > Acked-by: David Gibson > --- > v1->v2: Add a "break" statement here instead of /* fall through */ comments > (Base on Thomas's and David review). > > Cc: Thomas Huth > Cc: David Gibson > --- > hw/ppc/ppc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c > index 4a11fb1640..1b98272076 100644 > --- a/hw/ppc/ppc.c > +++ b/hw/ppc/ppc.c > @@ -120,6 +120,7 @@ static void ppc6xx_set_irq(void *opaque, int pin, int level) > } else { > cpu_ppc_tb_stop(env); > } > + break; > case PPC6xx_INPUT_INT: > /* Level sensitive - active high */ > LOG_IRQ("%s: set the external IRQ state to %d\n", >