Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2403154imu; Thu, 17 Jan 2019 13:35:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN4xktV5jzas4Fl2+yiGLLDfrnz7fM5eCcKGxONM5kC56L9MhtjvYLP5vQdkUGKeO3WD05Qk X-Received: by 2002:a63:ea4f:: with SMTP id l15mr14725471pgk.102.1547760926842; Thu, 17 Jan 2019 13:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547760926; cv=none; d=google.com; s=arc-20160816; b=PvmCGIpFcRZDIl8vIISp1G5cgDLF97op1FTiOaHsxY0MahwFqfTUung8f7Df59zTTQ uvhLP4aZC347NfCfIJVRPgvIf1iHhL/AaZGjaFJvnNQjyzztB6rGqWkixg5gJr+CUQf5 5UoM6RZdySBVLcMq4rTE5GXZEKb1mNK6rHxIWwcA0QHw4foWbtTX1H3y4YRtb6joWC/d 1Cw5KO9Xfmz/1rMphIjn7mbilqRO5YM+F+YEbZy0KjnFTnq9XF1z1dW1MXttRAvMEvTU n+A9/rHN0DBb4fQxD0qiDc+3ewNQm1L1U1fpJeVUWOqFSAcFkA0Dlh0JbcnL1gN53BsP 8eJg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L/grezJULwv9Knxf1C+1plOEJ1PG9MZ5huJPitH+iAs=; b=AQQO2Z2YcZxf8ux+Ir33CvhD8j2G9M41LlRnCMtijaB8Q856RRG8CEfqeeszaQH7J7 UHOiy7yrljDoYLo4/Mh/FDCJ7mv8j37b2+YCAW7qmHMmmBWm1sbMVRio/o4dNgIgn6KX 9zm5G9ys/t7RvHakF3id6Izt5KOEO42bpD6hU8Cnoii1X6AC/k/gbZrSZcX4S/lF5Mf7 bzo4DdBooOps5sorNZ8JNDPz5Q/IBo83ICu2t/uXxHdbazbjWSRxvpuxika1KeAhdPoX t1+NYq76i8x0Ehw9ho1qRwtI09bcfucffcTCDJkWTAKzbLPqsCuKxs7YUlOU4WY5PugU YlUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="llbUvU/j"; 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 v83si2750733pfk.264.2019.01.17.13.35.08; Thu, 17 Jan 2019 13:35:26 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="llbUvU/j"; 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 S1728482AbfAQUky (ORCPT + 99 others); Thu, 17 Jan 2019 15:40:54 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36694 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727674AbfAQUkx (ORCPT ); Thu, 17 Jan 2019 15:40:53 -0500 Received: by mail-wm1-f68.google.com with SMTP id p6so2479580wmc.1 for ; Thu, 17 Jan 2019 12:40:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L/grezJULwv9Knxf1C+1plOEJ1PG9MZ5huJPitH+iAs=; b=llbUvU/jb0mub03XQ98PrTNdSh5KWnY/dFGsdffu9gPobCETinKYAkSdELfqF2sCdz LsOTrbVKkQHXUi5RKn8E6doy/A7m0+tdK7DT19bqKOzIAEOtol8oz0P3o9cCmpCi/TiL XT0FT7pHcpnsYawnGIUPsQ/j0xrDN5ZnAK4ARuKrJyS4zjsZAbxA5+p4vVMBPwdoQgB+ TYICQARZ0aOa2RFdu08xmCo93X0hXH/tj/oq6IbdWEj9CiDFSHQTf53Bn3U3haVKula4 SyoMcY76rPIBdQEz1ixTjRspULfIvVv6LqLjvIe9vWaQyOUAf4xZwkD+xdT076qkhWZm CMvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=L/grezJULwv9Knxf1C+1plOEJ1PG9MZ5huJPitH+iAs=; b=siuxwRakvJesnhqVEJ/x6yDm12GqI1i/iQS3nnkJqerMyFA6PYLiFf022Mlf9xdhpM GEvixE6ouJnanPRYk5bZbtduSgKDPhmqWUXqq/InMQ2eWFbhw1mqJEEYNy+g9EG/2xuN PNyRapXxdUtC95jyzp7fWp1zuIZuLQ92/fjvzf/oXf9Qrb2JQewBEl4UlbnN5xUhStIV bYs1tjN9pQLtQuhBwcd45K85jSPl7jb8y6xknhOJ4EP357UJDRPPzrmGi8+0ZLDbHTT0 qoSM2c8+PgnnP5CkTCKRkXca1bgNtM0Zy5H16nx0AS8Ev+UvJxObkjUGdPx1SjpDrOXH 3G+w== X-Gm-Message-State: AJcUukdBkTm93NiBIVCEtcEx/F6XR9cQnGpf7wA7nNpSmwn2uWlcQrAy IAY2K7drIZlq2YZKqh7d3SExEt1S X-Received: by 2002:a7b:c0c5:: with SMTP id s5mr13691610wmh.40.1547757651485; Thu, 17 Jan 2019 12:40:51 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id y1sm47183040wme.1.2019.01.17.12.40.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 12:40:50 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 7C6D3114257D; Thu, 17 Jan 2019 21:40:49 +0100 (CET) From: Mathieu Malaterre To: Alex Deucher Cc: Mathieu Malaterre , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] drm: radeon: add a missing break in evergreen_cs_handle_reg Date: Thu, 17 Jan 2019 21:40:47 +0100 Message-Id: <20190117204047.1262-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190114202652.15204-1-malat@debian.org> References: <20190114202652.15204-1-malat@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit dd220a00e8bd ("drm/radeon/kms: add support for streamout v7") case statements were added without a terminating break statement. This commit adds the missing break. This was discovered during a compilation with W=1. This commit removes the following warning: drivers/gpu/drm/radeon/evergreen_cs.c:1301:11: warning: this statement may fall through [-Wimplicit-fallthrough=] Suggested-by: Alex Deucher Fixes: dd220a00e8bd ("drm/radeon/kms: add support for streamout v7") Signed-off-by: Mathieu Malaterre --- v2: Add missing break statement, instead of marking it as fall through drivers/gpu/drm/radeon/evergreen_cs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index f471537c852f..1e14c6921454 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c @@ -1299,6 +1299,7 @@ static int evergreen_cs_handle_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) return -EINVAL; } ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff); + break; case CB_TARGET_MASK: track->cb_target_mask = radeon_get_ib_value(p, idx); track->cb_dirty = true; -- 2.19.2