Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1486298pxb; Fri, 20 Nov 2020 10:37:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJys4mkHotWJNzwsBYBBQoWdGxW7fazElpSr73uE5YEH0kz0hibsRXQcPivv56DS/a/2ijJQ X-Received: by 2002:aa7:cc0e:: with SMTP id q14mr36890814edt.181.1605897421072; Fri, 20 Nov 2020 10:37:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605897421; cv=none; d=google.com; s=arc-20160816; b=BjrvyzikRgnLgdtA5u/Sd50QDaWFnVcD3O5uZ1DggrUNEHp0wKPqm4jKceHPWgtV4T MLr3K3j4qLT34/NKM4Q9RutkwFVvkX9YXCJbQP3N2Ts4xnOJHBLmDSu6RfHEx76p+0Vs V3AHfuKhrz2/zgJmtHm5TkI5eukErENht5+pzAz1uHyJ1HkmKrRV93o23SmGfhvVKdSv H3YP3ka7/Luri3doRNlJOlgqZLuQm5T0t4JBYkmNg46t2SEyAcUBYNqeGJ2ha30DDoFL dIJSqEsLU28LfwJmu1S4s9Fm2yVakqqNSMDH8r4k+Z3VoSlGeVOvYGdEjDKsYn93oW6N ZNNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=co+1d4iSE8CMEMguFvoZnl4s+0pggYlGixz9xsJr8+U=; b=bEoOvn8/xJsEy7dZovUMnwz3+wfTNOB8c8mesQzxFjlQKXfM0oCzz0pPfV1MLgndsL /kzjS9hBoKkSOQ7MNHjz8NhIwk44oET3tKalg1Zhtz9WlnZQLCHvRUV4KF1QlJaU5bSO PZu2rtD27wXRHjT2KbFDyeQwe2B+xhtWgDM8lgYXz6YJp8NYzuIMgeOOLmyYL2fi7ZpL Q73uw6DBaRPZjllH/k87qqMf8vVwadxKkf4RzzCjxfDKSAj67RSZbJ5KB2jrE9XyraOe ucyIRDgEq0ft4GZg7Odvj1HbpqrjipNgZiplM9d/KuN0/J9bCEk3PVnSvDQ7d4OCeh36 3zXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jqvjv1bM; 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 lx9si2191529ejb.494.2020.11.20.10.36.37; Fri, 20 Nov 2020 10:37:01 -0800 (PST) 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=default header.b=jqvjv1bM; 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 S1730762AbgKTSdP (ORCPT + 99 others); Fri, 20 Nov 2020 13:33:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:52246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730135AbgKTSdO (ORCPT ); Fri, 20 Nov 2020 13:33:14 -0500 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 174B022D0A; Fri, 20 Nov 2020 18:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605897193; bh=my70itP3lr3qWoW2WmWc2na58+HpUeKWgsniYzdn5aY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jqvjv1bMlCXrnxp6ksTqc0AqTH2mmCTuSjPW0cEOzHR9bLw9i/3GWLICO8Jkf4Z+/ qYtAp8Vk2UtkSsyh7HK0M2g0kqALaMlwL7hoG55uXlS4TXIUxYO40MJu0gM6QzAgFU CPi3hngFgv3f6Oak5h2p/HSDP7vFA/QhG2JNeihE= Date: Fri, 20 Nov 2020 12:33:19 -0600 From: "Gustavo A. R. Silva" To: Jens Wiklander Cc: op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 061/141] tee: Fix fall-through warnings for Clang Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva --- drivers/tee/tee_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tee/tee_core.c b/drivers/tee/tee_core.c index 6ade4a5c4840..5fdf26688230 100644 --- a/drivers/tee/tee_core.c +++ b/drivers/tee/tee_core.c @@ -452,6 +452,7 @@ static int params_to_user(struct tee_ioctl_param __user *uparams, case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT: if (put_user((u64)p->u.memref.size, &up->b)) return -EFAULT; + break; default: break; } -- 2.27.0