Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1299244imu; Wed, 16 Jan 2019 16:42:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN41dJAFCZ6RhDOHGFSdmIfAx/e9Boic7y4MTlyk+Da5vFiwQAUXaAPMjkFOBlXuHKOtq8vj X-Received: by 2002:a62:4c:: with SMTP id 73mr12645590pfa.24.1547685726726; Wed, 16 Jan 2019 16:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685726; cv=none; d=google.com; s=arc-20160816; b=mi77kV1RdJ3ALqPBUf+/bbJpOd5nOm1jejscVwl/ogatThUX8OqrZw5qM82OH+ldLN BkvZYB2x+FcieSvXhT3g3ze6+IEGH8FUgEN6Pl6QHVlImIBoMmgIY+eD5IGpQ7BsFELO 8rrOeLi2sWp0Sk6+OKqlRwVZqOFahpnGsN5vxhArZcNHTO/rtQFbH07JlL+L2Bn7vbWy z/CmgUr0vR9J8P7BH9aAbOey60FOVkelhWwAQ9ZqThQ2nkmZh+yPgb8IKuivT0uUd3aW 5zrtKQKG6nAmrIoN5H4QTBcL5LhjJQX/R6TtBu3/bxZs+1oHEgLH+E3T3GDfjqzc15RR GjqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AR3kOZxdFfwztSZ6gPzl2fyWZdxG8W80s0p4EG4rA8E=; b=rFdYL0YGnvaWrU5Az09Cfe4/3bINX18jBq5eVWCI5zW3lXKw5tg5j8TiEjuQRkU2WS 6vevJEA9Dh1LJ05LAFYMCZiEXVj5+8I/mc0jKmGcBaicXIhHxS9cVQP1mDjb67Zn8eJM K4Qf/vuVtJ2+CAEBWBW8/9RojmSi1VKI3EO4aDYJ/XTyF055fas5oUPUUhmrUs1rqFqf r9hNtLbpoktVgpG3JgyrS/Sv3ZXYyO9jOk2aNQOB/u2LpnbOg0cw6rKkMbBPebWo6EVy qzqrJ32SpqZZZpE3hb58LmdIKvtdMDz8WhHgoQKbHajEwGW9PJq73/34HURA1POgqBsO wLCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CNCZIH+o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e129si7206490pgc.333.2019.01.16.16.41.51; Wed, 16 Jan 2019 16:42:06 -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=pass header.i=@gmail.com header.s=20161025 header.b=CNCZIH+o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731968AbfAPV7H (ORCPT + 99 others); Wed, 16 Jan 2019 16:59:07 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52543 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730508AbfAPV7G (ORCPT ); Wed, 16 Jan 2019 16:59:06 -0500 Received: by mail-wm1-f67.google.com with SMTP id m1so3708717wml.2 for ; Wed, 16 Jan 2019 13:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AR3kOZxdFfwztSZ6gPzl2fyWZdxG8W80s0p4EG4rA8E=; b=CNCZIH+oHhEzDeuGbDAjhpPn9FRBgiw9ZVFeMd/QQ50gA8+W2XVkD9K3yOfJUZgUGc exzToW4f79F4X/3gpZFuWtR1WfJWvahMmujtYw8qvjCYUzcoE1mvEqjUZQlesIcSIMMu 4SRXRIsrgFScz4nce6lb7oUd25oOBg9eESJ4aV4XcCcTmkHiDT7KqEgVvtAg8WRjpZNe jIfKOILDFq+CnWLZExq4r83O8JDg9RH03qkNc72qxoypevtnpwCzWktJB8Ib3gnCY4Mq Xs9xGfLuu8g7LCOVFewAiLdzfW0ID2Q/a7tepyp5HMPIRaXFrQbVZFa4h2PuFdGTM7LU Wu+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AR3kOZxdFfwztSZ6gPzl2fyWZdxG8W80s0p4EG4rA8E=; b=TVG+m/PKAbFSQmJT2lteRFR7GqXL1w42i36x/EYG6Nz+6cM42MhB4jWBDxznrGo0lS 3tEOnyzrSNUPydEnSNaVVFxeybwVdYHZbIhrw8DMHVGSjmkVUM/a+9DrlMXouvpUVB2C B6hqWDBbNu/l3m/DUPxL5GxPO7qno7mkLDvtnWJK/xvRHb2nEPQQttl4WhG2+0TT+Zz7 wi9BRpVwMBi+GMbE4QWSC2JcZkhGQ9F6C9LLh33FX5JGPCzQadVLNu67/GNEibxlBf3G ziDD+y/gpsUgPe9lxWcyyN3RIPsreC/6mbb3FhUsnqLNzIyBn5wefP+QFU5FjPEuoMzT BEPg== X-Gm-Message-State: AJcUukd5l9klPgg6r7AhQVk3weeoLWWnQoPxlRV+uGneAyIvF/w657X2 hd1X6lNJSkSzRP+l1vmVrDhq3NiAn2lpf/ZzqVY= X-Received: by 2002:a1c:6243:: with SMTP id w64mr8919240wmb.153.1547675944054; Wed, 16 Jan 2019 13:59:04 -0800 (PST) MIME-Version: 1.0 References: <20190114202652.15204-1-malat@debian.org> In-Reply-To: <20190114202652.15204-1-malat@debian.org> From: Alex Deucher Date: Wed, 16 Jan 2019 16:58:51 -0500 Message-ID: Subject: Re: [PATCH] drm: radeon: annotate implicit fall through To: Mathieu Malaterre Cc: Alex Deucher , "David (ChunMing) Zhou" , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Daniel Vetter , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 3:29 PM Mathieu Malaterre wrote: > > There is a plan to build the kernel with -Wimplicit-fallthrough and > this place in the code produced a warning (W=1). > > This commit remove the following warning: > > drivers/gpu/drm/radeon/evergreen_cs.c:1301:11: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre > --- > 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..fbf346185790 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); > + /* fall through */ I think this should actually be a break here. Alex > case CB_TARGET_MASK: > track->cb_target_mask = radeon_get_ib_value(p, idx); > track->cb_dirty = true; > -- > 2.19.2 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx