Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp29542pxj; Wed, 16 Jun 2021 19:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX7zsFIsUdwepcsam4GgsYtjBQEovFhYNGDFbjLl/+AwYUP6pWderUxeVdL5BVmu33flYB X-Received: by 2002:a6b:7948:: with SMTP id j8mr1821479iop.32.1623896546360; Wed, 16 Jun 2021 19:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623896546; cv=none; d=google.com; s=arc-20160816; b=ocedIMbyAE4se05otc/hgQIrJNMFYoDpTBji4Jj+fwl2fBPvoJet2Gczmvjq69BDI3 CR/nIkRrJ00ax8POw1wodkH9IGR/XzR3FXa61OVhXGctNk8p5QLWxRr+scWL/Y3kkQcC e1VChjhpqXmR5skZnFcpsc6T4ghbrsvLU+YHNXNRlN6ebTiA/ypSZyE+iLHKko72qDOc QlhUamgK5Bx6IiTmwOkz6+u+5XELHI/h5yFhOrj3HwOeN1fDPg5kdfH8Lt2y8J4aGvFk wjPjfEJhV4dzVsVwF4yeQHyj05zcQFWjyWu9ALC6wMGIzPngCmSGlcHGQhE3kRMMnSYu 99WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=+2ae2ajAYJ+8vQQbfnZiR6L/TSTga95f7YHeXrB1jrY=; b=WXquRomEPRE953i/cEBNgm+JPDUY/vlOW8wz2LowqnYLgxsvGtouADQ35L2IfPMyzm 2YwaY4MSOAGaXEiD0R5AVA5roqKdWZLIhkSN0HeXZOzFyTBOMJv+3PIZ2HKQBv0Z/Ehd QwKcmsPEtgLdf00uMO1lpef77gbdygpvn45Qnz9xoUmoyL/OkLvt3b57XpokDN8R2IKj I5JQ0dSgTgdb4Q1c2cAenDcRf3sHxpLsmQN0Pmuxl6Bwdm0xKxiyRX3TpIdPt39q+QxN hO+7mpyWLBbZ6gvtowaJ3QqqiDkMnJ8MsFPoVUT5ioX9UiZup7AvTmEPZj34hX2nh8C6 lhiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qXnPj6G3; 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 t9si5133053jan.117.2021.06.16.19.22.14; Wed, 16 Jun 2021 19:22:26 -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=qXnPj6G3; 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 S233726AbhFPUwo (ORCPT + 99 others); Wed, 16 Jun 2021 16:52:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:37736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233711AbhFPUwn (ORCPT ); Wed, 16 Jun 2021 16:52:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 79C5461076; Wed, 16 Jun 2021 20:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623876637; bh=KkBcxHtMW6CBQsdymw0nRgRZKWfSKaSXE49m9JbgpYE=; h=Date:From:To:Cc:Subject:From; b=qXnPj6G3RKf7L2+/RLuinTQjlA3QWCDZ554IK6ZPFRQppgKgKFSUClx1VVOmgjlsr WaghoO6kQ91hnYp5qeFWWb5b/i5K5a4Q5SySnJTccORLZqWyM4IINHEGLm+Y2zWs5K 5cK5pKrVrsg5TS7DBFpnT/bggwlweazVrWsnUdflGJnuJlc7RZ+T8COCNbRAPOUyQj nNI1idYlTTck2lq0ivA9mS/41skVbtGrD7dXdViemS7MTC0r4rH39A3tf+TQdRGy0f tV89BKnLTOXUpo4CWo3nYPhzECd26PG5He23JiYZtwW6vKJ0dMqJi5ZaPaDJ+OMI9D WxvQpE731ufJQ== Date: Wed, 16 Jun 2021 15:52:06 -0500 From: "Gustavo A. R. Silva" To: Harry Wentland , Leo Li , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH][next] drm/amd/display: Fix fall-through warning for Clang Message-ID: <20210616205206.GA17547@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enable -Wimplicit-fallthrough for Clang, fix the following warning by replacing a /* fall through */ comment with the new pseudo-keyword macro fallthrough: rivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:672:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER: ^ Notice that Clang doesn't recognize /* fall through */ comments as implicit fall-through markings, so in order to globally enable -Wimplicit-fallthrough for Clang, these comments need to be replaced with fallthrough; in the whole codebase. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- JFYI: We had thousands of these sorts of warnings and now we are down to just 15 in linux-next. This is one of those last remaining warnings. drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c index 28631714f697..2fb88e54a4bf 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.c @@ -668,7 +668,7 @@ bool dce_aux_transfer_with_retries(struct ddc_service *ddc, /* polling_timeout_period is in us */ defer_time_in_ms += aux110->polling_timeout_period / 1000; ++aux_defer_retries; - /* fall through */ + fallthrough; case AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER: retry_on_defer = true; fallthrough; -- 2.27.0