Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12081467ybi; Fri, 26 Jul 2019 04:29:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEzQaQd7HAIuRtY3FxG5SUNrNXRzQ9KYbkNvCk12h76FFAhwYbb9zXnRQ6RMzWaJ47FKPW X-Received: by 2002:a62:1616:: with SMTP id 22mr22171476pfw.120.1564140591761; Fri, 26 Jul 2019 04:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564140591; cv=none; d=google.com; s=arc-20160816; b=abTVBZFO15evB3uySM6KRKIwGooxzFAJWv6NqGQiGQ9qkgQ/DIjk6yGY6gkXX4vkd+ JWsQZnCWv0WJ/w2nx/mcW8Y4mepLgBqNtUJ4CZ+kKLdzxTTO8CFa8gM9Ve6guH2nS3nq Kclnj5JdXmLqJ9kGlbsJEBf5Km3Lbjv/UCQoFfDBKF3GrUcQZgR3o7RysKOHOpQZjGZL 8rDY8Cd5UEZcNQ6FhVF2BW/uDF4cq0N6S3gL6YppVy4EemGEBxLw5K9k0qZHqHI68pYr D+6oSEVHO493oElZmb7Tld4YWaLImUXVDtYcBnqlUeKTkhKP8zX9f+B+xMQiUKumnRHN 55gQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=z9BcHX1v0OYZtD+fOK5bR3iP5Bzz548SH0Qfuyk3u+M=; b=SdaZAQ3reddyMVrx0WxaD1eHI4hMf9jeYe65nI63hYfV0yHbYfklGa33udv907jllw ymCXNV0NQe08beSq+X9tEeF9l76M8sQ3PePigi2155b0V2pbUtA0/pl3AsYjBAIRR4q6 mGUZftIARveobhtYymrq5umeDK+n99By5QqEndBAiDqjgj6+SRzLBFrVaRHhMH5xuTlT EJwaBL086CfOuSStOWklF2KlTafBPIHQEL70nQtG19BhqMPbRjD9c05TRzy+snRk68tb Ctf2TAFb4ic2Uk9lYOy/krJIqRpdOmo71EODCukapIXglPB8ZSMN50kKIE98tWIvhXfw 15vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cyWwp9fJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si20346267pfe.231.2019.07.26.04.29.37; Fri, 26 Jul 2019 04:29:51 -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; dkim=pass header.i=@linaro.org header.s=google header.b=cyWwp9fJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727004AbfGZL2P (ORCPT + 99 others); Fri, 26 Jul 2019 07:28:15 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:40550 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbfGZL2O (ORCPT ); Fri, 26 Jul 2019 07:28:14 -0400 Received: by mail-lf1-f67.google.com with SMTP id b17so36866130lff.7 for ; Fri, 26 Jul 2019 04:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z9BcHX1v0OYZtD+fOK5bR3iP5Bzz548SH0Qfuyk3u+M=; b=cyWwp9fJP19UoMGz9ozXhDRzbbe71Ox1BNxqfqJHcs+M2C7zqmX99TGYs/etpPyptI ky7wdp9/Qddn/czFwkgjlUz1gwSELt2+LGXRhe+pdvLqYxXC06fCbOldfaPm6hpWdP77 ZZQku0IkEG2Z/1DNOXZS4wpuT6hHQsHDRgIzWccW28SZ+XVK+9njzTCM+3vv/tkswX1e Ci/jzIwZt6kclF/FxcjlYH6SYv59ApVqKvlTl1ILvaCM6qYPtUgZIpIAc2zMrVSOhJrZ R4s8hnHgjUZNMD2NT8+TCnx6u58Uzm/QdaSw1OHjF+PURt8z76b7If9U0mXHxFsxAzQe mP2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z9BcHX1v0OYZtD+fOK5bR3iP5Bzz548SH0Qfuyk3u+M=; b=LicAtoHQroOjwSH3SXP0QWXbxhT7ISSagk9FjLqq2Sa5WMlaNoV6Ml+IecHPGSEDEL LgfJlTDhIDJ6acEfR0RqvVrVMB0Sb0pQYzSTXG4QAmdqR7Wp/dnmiGXjf2azKmWWdtog S0mFLRMbeaAxAxHxqSIGsKgT+MJLBIHEaDiRYhv5gPL2TecgcfBPun7/5NylIdxExZSO /xr2y7VdH13O7L/M3QR5MJbkOQWWe4BWq/cPqjQo5Ad749oDXscN7p8eWYEFgzm7aL/q FHTMJkJWAq7Y0tdF5IRntZC0uyTSYSG5zrVd+vUf0s9944PxrufN/Z3w67UjPlMmwvtJ JQwg== X-Gm-Message-State: APjAAAUrsF0oKaLQKgf4nz9NhzCfRxU/5OaxHANBaurMPKk86CxvRVwb pEdGWfEgO7FDjZfg+F5XlBb7ygzyPLK8SA== X-Received: by 2002:ac2:5337:: with SMTP id f23mr44970761lfh.15.1564140491963; Fri, 26 Jul 2019 04:28:11 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id k124sm8319427lfd.60.2019.07.26.04.28.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 04:28:11 -0700 (PDT) From: Anders Roxell To: airlied@linux.ie, daniel@ffwll.ch, wens@csie.org Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH 2/2] drm: sun4i: tcon: Mark expected switch fall-through Date: Fri, 26 Jul 2019 13:28:07 +0200 Message-Id: <20190726112807.19615-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 When fall-through warnings was enabled by default the following warning was starting to show up: ../drivers/gpu/drm/sun4i/sun4i_tcon.c: In function ‘sun4i_tcon0_mode_set_dithering’: ../drivers/gpu/drm/sun4i/sun4i_tcon.c:316:7: warning: this statement may fall through [-Wimplicit-fallthrough=] val |= SUN4I_TCON0_FRM_CTL_MODE_B; ../drivers/gpu/drm/sun4i/sun4i_tcon.c:317:2: note: here case MEDIA_BUS_FMT_RGB666_1X18: ^~~~ Rework so that the compiler doesn't warn about fall-through. Fixes: d93512ef0f0e ("Makefile: Globally enable fall-through warning") Signed-off-by: Anders Roxell --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 690aeb822704..04c721d0d3b9 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -316,6 +316,7 @@ static void sun4i_tcon0_mode_set_dithering(struct sun4i_tcon *tcon, /* R and B components are only 5 bits deep */ val |= SUN4I_TCON0_FRM_CTL_MODE_R; val |= SUN4I_TCON0_FRM_CTL_MODE_B; + /* Fall through */ case MEDIA_BUS_FMT_RGB666_1X18: case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG: /* Fall through: enable dithering */ -- 2.20.1