Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1180244pxy; Sun, 15 Aug 2021 12:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI6IWggnogqswQiMNEwlxmzCBLr+hkSIwbQb6WTXsGd4s5d4G27cs0i+i9pCYZI3Nlfphg X-Received: by 2002:a17:906:b286:: with SMTP id q6mr10051344ejz.120.1629056053811; Sun, 15 Aug 2021 12:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629056053; cv=none; d=google.com; s=arc-20160816; b=jJ2+TqXCwwehrkYhnGMsEjCTwB42mPMRyM0P9oGrY0SZl9bSLmd1OQbPlSX7eVD9Hl ofLQx5Q5nE487t84gONy0aC3Tcl9e3O+/bgc8GEzQ3+cnEMa7JnH2sCL0uM13/az982K 9lkFGgF4uZMFwstm20c3W6t+ybKXZ+vGRujFBYO2xUTm4NJ7uPi7UPhqqPi08ntU8BA+ PQQ8aVJggi7YhfIM2VpOOeO+Fj6DhlSCyoHIrdhXplT2DFn4E1o4NLnf+L57K1UBCzVa M+/IQqEFDWcm7gicGM/8pyRHXCrvDGTXUjx4pQH5i+q8F2dIMn6uGCncrcs5TzNlW2VM v/Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3gFMWEK6kMZFmRlXNITLL+N399Osl2Vj3LwZeLn5mps=; b=xdzZTO+5ePGJ53ZNbwfQdtW+Rs+QrKlkAI8YSVXWdwXNu2WnuUwAUJiT9RLgHquNTW 3uTc6DIT/woZu+raQzRCTTewS849r5jUFQ24HTJzl34r6J6dwktYxtD8jBLZU/rKWGjk edMrxJGZ61jwoLxScsdQC2gIjIE45pkYtYN0Y7SXgnVEwtiFd6tpb39+GJEr/yXLgKXy +PxSTDIVwYucQyERz4LxGwjxDyHSdEIIgOVB5u/F8X2Ik9SiQDm0MPUDrW+smG2k2BJI EfNvGjDzr54tFO+2/sul8enHfstiqwFJVAmx+o3facWHmubSHk1x5iySFdHDQBH71iXN rm1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZ4845d4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si8384354edx.139.2021.08.15.12.33.47; Sun, 15 Aug 2021 12:34:13 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZ4845d4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbhHOTaq (ORCPT + 99 others); Sun, 15 Aug 2021 15:30:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:40088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbhHOTap (ORCPT ); Sun, 15 Aug 2021 15:30:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D0C56128C; Sun, 15 Aug 2021 19:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629055815; bh=UhBKLUcdJ1zu42LR19pbmuCkunq5UG7fIdg4noAlaU4=; h=From:To:Cc:Subject:Date:From; b=IZ4845d4es+z3S7jXQQ218oKwi1Tw76QQ9IuZhDj0qE8YXGO3vimVjBmgUMMInEj+ OqSBuk6Y++vqhBZdl8rbOUoG43hCeWABVHQelEXkJZcywK8sxHK9VuVu+cSUehxRip Ozttm6N6Mexu1zhimW2OgUltA7XHX8aBjyyxCe82duVj0svsbabsiRqdj5nA0kJowc yry2PpT4U3BaeYPSQn7uCNc8G4cEDKQIQLYxGrEhKCBDWMBiWDJ0Nd0dJRCHqrXIWp AwnvLTkCYSTU1G1sGkM+qt8LK2Q0b8yJHu3eDOEmXuasI2WrInGAfQNUHDzkuT8OGB qKfZRBnkuR2WQ== From: Nathan Chancellor To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" Cc: Nick Desaulniers , "Gustavo A. R. Silva" , Kees Cook , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] drm/radeon: Add break to switch statement in radeonfb_create_pinned_object() Date: Sun, 15 Aug 2021 12:29:59 -0700 Message-Id: <20210815192959.90142-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.0.rc2 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang + -Wimplicit-fallthrough warns: drivers/gpu/drm/radeon/radeon_fb.c:170:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/gpu/drm/radeon/radeon_fb.c:170:2: note: insert 'break;' to avoid fall-through default: ^ break; 1 warning generated. Clang's version of this warning is a little bit more pedantic than GCC's. Add the missing break to satisfy it to match what has been done all over the kernel tree. Signed-off-by: Nathan Chancellor --- drivers/gpu/drm/radeon/radeon_fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 0b206b052972..c8b545181497 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c @@ -167,6 +167,7 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev, break; case 2: tiling_flags |= RADEON_TILING_SWAP_16BIT; + break; default: break; } base-commit: ba31f97d43be41ca99ab72a6131d7c226306865f -- 2.33.0.rc2