From patchwork Mon Jan 14 20:40:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10763411 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C2D8C746 for ; Mon, 14 Jan 2019 20:40:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4B682A35A for ; Mon, 14 Jan 2019 20:40:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B18122A378; Mon, 14 Jan 2019 20:40:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C2A02A396 for ; Mon, 14 Jan 2019 20:40:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbfANUkv (ORCPT ); Mon, 14 Jan 2019 15:40:51 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43085 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbfANUkv (ORCPT ); Mon, 14 Jan 2019 15:40:51 -0500 Received: by mail-wr1-f67.google.com with SMTP id r10so424476wrs.10; Mon, 14 Jan 2019 12:40:50 -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:mime-version :content-transfer-encoding; bh=yiTzvOsBbU68HbKrMMBK2Tr5Tf5KHxDi+fruJqdMvPQ=; b=Cx6/bCSPuhYVbWZESsxZV8kFEinXq7if+votofKKWwX4b1qDQP1TpUResFvKXXLPJh Vr4HeOEI2gwxvcG7EsNn/OIRjiH4d4goIsdeQd2YKcJiqwlDfhtbBZIlFpeSmQw6+d3U xn3Cba6RNo0D5Ko4DzwL4kDlHvLwLrZQmH+W9yjgL3zSZnK7tkyygljy4JZR3nv4QHuI PV3RtydyNNoMsTIOpMoLOsCxaGUscXNz5wIbf9GXnPiWrJUfzwP90JZqB1mZxqwINmra 0HSwuA9nNgEECiiCQx72SL4y4V1fpcvkdI7OjRU4hvt0DDIVR6OPnHCyJP3LS9jueYDm K/Vw== 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 :mime-version:content-transfer-encoding; bh=yiTzvOsBbU68HbKrMMBK2Tr5Tf5KHxDi+fruJqdMvPQ=; b=ghz7RoBYfMPrttMSKHCFrsErqLpfL4EXygLBu/qPdyuBFuNDyq28A2xpM0VefUcxnA i2n/uQJg0VaSBc+FqLdiDyqn5opUel3H/pVDJufgRWUKCKohvzrdtrCSRph8FiFVxEso 4FTCzZbKfN0h8Jc3TBwqLIpUQ5C3MSAjFH1VpTTHyMlyp+1XMETVEc43ZftJ2lZ07chM 1uIHLgsIVHdHfKLmquzKYhUDjI0vZ14sFEvgDNOBEP/Wbqz33nHC3rvxPjvC6qv8BZSZ htJWotghJFn4HjNm4uNgYjzQtrRB4jZJmI6ph3b9/oiIjLKfhX8TJzM2M0tKYKXK7XWm Aemg== X-Gm-Message-State: AJcUukc6lkeomShmeWurIrEKP/ZhTFKhYix0/xzOH1tam8JwrjusXxMC /We1UzWiamgAGUNa3HW4VvA= X-Google-Smtp-Source: ALg8bN7Ufx1yqDYCv8+hnYZCJwneHtn+lNizrVxSBFRt/pcLoPIbpGcDn96f+oAuQzhbdJ8CFrCsKQ== X-Received: by 2002:adf:f8cf:: with SMTP id f15mr202335wrq.265.1547498449523; Mon, 14 Jan 2019 12:40:49 -0800 (PST) Received: from macbookpro.malat.net ([2a01:e34:ee1e:860:6f23:82e6:aa2d:bbd1]) by smtp.gmail.com with ESMTPSA id c202sm37000661wmd.40.2019.01.14.12.40.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:40:48 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id CBAEB11422AD; Mon, 14 Jan 2019 21:40:47 +0100 (CET) From: Mathieu Malaterre To: Bartlomiej Zolnierkiewicz Cc: Mathieu Malaterre , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: offb: annotate implicit fall throughs Date: Mon, 14 Jan 2019 21:40:44 +0100 Message-Id: <20190114204044.20528-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is a plan to build the kernel with -Wimplicit-fallthrough and these places in the code produced warnings (W=1). Fix them up. This commit remove the following warnings: drivers/video/fbdev/offb.c:211:5: warning: this statement may fall through [-Wimplicit-fallthrough=] drivers/video/fbdev/offb.c:142:3: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre Acked-by: Gustavo A. R. Silva --- drivers/video/fbdev/offb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c index 31f769d67195..e0f0c5351306 100644 --- a/drivers/video/fbdev/offb.c +++ b/drivers/video/fbdev/offb.c @@ -141,6 +141,7 @@ static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ out_le32(par->cmap_adr + 0x58, in_le32(par->cmap_adr + 0x58) & ~0x20); + /* fall through */ case cmap_r128: /* Set palette index & data */ out_8(par->cmap_adr + 0xb0, regno); @@ -210,6 +211,7 @@ static int offb_blank(int blank, struct fb_info *info) /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ out_le32(par->cmap_adr + 0x58, in_le32(par->cmap_adr + 0x58) & ~0x20); + /* fall through */ case cmap_r128: /* Set palette index & data */ out_8(par->cmap_adr + 0xb0, i);