From nobody Fri Dec 19 07:49:54 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73EC6C6FA82 for ; Tue, 13 Sep 2022 14:18:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233240AbiIMOSV (ORCPT ); Tue, 13 Sep 2022 10:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232904AbiIMORi (ORCPT ); Tue, 13 Sep 2022 10:17:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F414063F1D; Tue, 13 Sep 2022 07:12:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5D756B80EFA; Tue, 13 Sep 2022 14:11:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDD38C433D6; Tue, 13 Sep 2022 14:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663078299; bh=tcQGAlsMS42fJDbMOL0mTFdnfPj1GbHx0JCHlF7kxBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mVuJc6FiRrsXRlIa5SOEwq0Oy6yDN24YU/bvBcN2JTpz99RPQxwF2GI/5Xgku2xda qjRnArd4cs528QR/hWi1sN4wyz11fclBZsVMidMl6SnX7QdtTABAj3b29xI2vXYKgW CT3OBvKrX1DoUlPmecMVeH86cUUI6Zf9mqyvYK+c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sumit Garg , kernel test robot , Jens Wiklander , Sasha Levin Subject: [PATCH 5.19 087/192] tee: fix compiler warning in tee_shm_register() Date: Tue, 13 Sep 2022 16:03:13 +0200 Message-Id: <20220913140414.298293427@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913140410.043243217@linuxfoundation.org> References: <20220913140410.043243217@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Jens Wiklander [ Upstream commit eccd7439709810127563e7e3e49b8b44c7b2791d ] Include to avoid the warning: drivers/tee/tee_shm.c: In function 'tee_shm_register': >> drivers/tee/tee_shm.c:242:14: error: implicit declaration of function 'a= ccess_ok' [-Werror=3Dimplicit-function-declaration] 242 | if (!access_ok((void __user *)addr, length)) | ^~~~~~~~~ cc1: some warnings being treated as errors Fixes: 573ae4f13f63 ("tee: add overflow check in register_shm_helper()") Reviewed-by: Sumit Garg Reported-by: kernel test robot Signed-off-by: Jens Wiklander Signed-off-by: Sasha Levin --- drivers/tee/tee_shm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c index 1175f3a46859f..27295bda3e0bd 100644 --- a/drivers/tee/tee_shm.c +++ b/drivers/tee/tee_shm.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include "tee_private.h" =20 --=20 2.35.1