Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3211374ybi; Mon, 29 Jul 2019 02:50:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHGiRklFo4CHbtnGdLY8ZR6QqbNylnKKjAVa2IW27FMpTGNCGN6ABnpqD5U3r/3Vnm2x/p X-Received: by 2002:a65:4546:: with SMTP id x6mr101828437pgr.266.1564393852960; Mon, 29 Jul 2019 02:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564393852; cv=none; d=google.com; s=arc-20160816; b=FsLsAWsBCyUVflv35KCQ8l2mL14+yvgNGeypXGfi3C5bGvttb0n+s+wEIqd72YHYk6 pOAquRqjbkteJXzesLMHGR+l/bYuu1cxN9KGCxeIDwvbyTtJ8G8ky1wQ+Cno2o9IB7u8 fnl9pmk406hiCUpnlBFySmofm7bJ8GYoj8vmPYypMadxfdzDa27Y1z4LKP/JRlpsBPmm ws6kwz0t5eW9JmkPvsRX7rDorveNQkgYqXKEbrHmNUZm10fRQk1hoEf1wC3AtjJIY9hn 1TFwHxbrI7kjOMYGXfMSob+bcHUHsHc8wmDPtKnT6kPiUVSCDGVnjMl8nJJuUv9zMY/8 slmA== 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 :organization:user-agent:references:in-reply-to:subject:cc:to:from :message-id:date; bh=sI5vHY+7jmUMP9UxEqENTXTh1auGSbWoGOkAEp8jJs4=; b=QBeJZrdU3nntcX6Ea/iUhjYnzCRY/MsZ7hcdJBN5W0z0erx3CXwso3Al3guJMF6tyT MwTJD1+jW25gs5cxj14oeYbGwkt7zyzuUhK+owbeX3UXwD/q/RtTbf/RcnBjVJGss9GS xgW1OZl+6ypGg7LD6rE8Z7hoCXn8jQZ3K03e+5Sbe1Ic4Fj5V3XxhLkrc0jytYSeIJ0k kiTJN3ZWfBpvg/9gC6ctPMaSpPGxUtcjwiltFTktwwsdJZA0nmBhXqowHxV8xy0CgUm6 3cLZUIQ+si9w43hYzMd7ucrGhNVOs1cnK/EJQAbNEMrKsltFRNyeRvaP8h0uiBj2b5Vs y89g== 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 o4si25144593pgv.157.2019.07.29.02.50.37; Mon, 29 Jul 2019 02:50:52 -0700 (PDT) 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 S1726973AbfG2JtF convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Jul 2019 05:49:05 -0400 Received: from foss.arm.com ([217.140.110.172]:40918 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfG2JtF (ORCPT ); Mon, 29 Jul 2019 05:49:05 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 40B041570; Mon, 29 Jul 2019 02:49:04 -0700 (PDT) Received: from big-swifty.misterjones.org (g-dizzle.cambridge.arm.com [10.1.32.80]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 94D3F3F694; Mon, 29 Jul 2019 02:49:02 -0700 (PDT) Date: Mon, 29 Jul 2019 10:49:00 +0100 Message-ID: <86tvb5mar7.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Anders Roxell Cc: Catalin Marinas , will@kernel.org, Linux ARM , kvmarm@lists.cs.columbia.edu, Linux Kernel Mailing List Subject: Re: [PATCH 2/2] arm64: KVM: hyp: debug-sr: Mark expected switch fall-through In-Reply-To: References: <20190726112710.19051-1-anders.roxell@linaro.org> <86d0hxnfif.wl-marc.zyngier@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jul 2019 15:11:05 +0100, Anders Roxell wrote: > > On Fri, 26 Jul 2019 at 14:31, Marc Zyngier wrote: > > > > On Fri, 26 Jul 2019 12:27:10 +0100, > > Anders Roxell wrote: > > > > > > When fall-through warnings was enabled by default the following warnings > > > was starting to show up: > > > > > > ../arch/arm64/kvm/hyp/debug-sr.c: In function ‘__debug_save_state’: > > > ../arch/arm64/kvm/hyp/debug-sr.c:20:19: warning: this statement may fall > > > through [-Wimplicit-fallthrough=] > > > case 15: ptr[15] = read_debug(reg, 15); \ > > > ../arch/arm64/kvm/hyp/debug-sr.c:113:2: note: in expansion of macro ‘save_debug’ > > > save_debug(dbg->dbg_bcr, dbgbcr, brps); > > > ^~~~~~~~~~ > > > ../arch/arm64/kvm/hyp/debug-sr.c:21:2: note: here > > > case 14: ptr[14] = read_debug(reg, 14); \ > > > ^~~~ > > > ../arch/arm64/kvm/hyp/debug-sr.c:113:2: note: in expansion of macro ‘save_debug’ > > > save_debug(dbg->dbg_bcr, dbgbcr, brps); > > > ^~~~~~~~~~ > > > ../arch/arm64/kvm/hyp/debug-sr.c:21:19: warning: this statement may fall > > > through [-Wimplicit-fallthrough=] > > > case 14: ptr[14] = read_debug(reg, 14); \ > > > ../arch/arm64/kvm/hyp/debug-sr.c:113:2: note: in expansion of macro ‘save_debug’ > > > save_debug(dbg->dbg_bcr, dbgbcr, brps); > > > ^~~~~~~~~~ > > > ../arch/arm64/kvm/hyp/debug-sr.c:22:2: note: here > > > case 13: ptr[13] = read_debug(reg, 13); \ > > > ^~~~ > > > ../arch/arm64/kvm/hyp/debug-sr.c:113:2: note: in expansion of macro ‘save_debug’ > > > save_debug(dbg->dbg_bcr, dbgbcr, brps); > > > ^~~~~~~~~~ > > > > > > Rework to add a 'break;' where the compiler warned about > > > fall-through. > > > > That's not what this patch does, I'm afraid. > > urgh I'm sorry. > Sending a v2 shortly. Don't bother, I'll fix it locally. Thanks, M. -- Jazz is not dead, it just smells funny.