From nobody Fri Dec 19 20:10:28 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 A3EFCC6FA82 for ; Tue, 13 Sep 2022 14:36:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234288AbiIMOgr (ORCPT ); Tue, 13 Sep 2022 10:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234186AbiIMOfU (ORCPT ); Tue, 13 Sep 2022 10:35:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6837B5FAFD; Tue, 13 Sep 2022 07:20:12 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 664F3614D0; Tue, 13 Sep 2022 14:18:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BD27C433D6; Tue, 13 Sep 2022 14:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1663078715; bh=adIkxnPNNsY0WAl+jf8NAEX/g5zbCxTcqa0hLkWCnso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vxWIxstyhsieYvYv/Owviu+8uFjwc93rILjd+l0/0LlqxV9EJsBiBXanyo4pKDROP olxnRBkyFDx7Yw2n3vBf7AoTxlFWhKq1npexcoEBIz7jDgacEMWeWgiGVfM/zwqRdB mr6GzqJE7y6q2+5B+VdM4hYhek2nedx1mejW0wjQ= 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.15 055/121] tee: fix compiler warning in tee_shm_register() Date: Tue, 13 Sep 2022 16:04:06 +0200 Message-Id: <20220913140359.720184906@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913140357.323297659@linuxfoundation.org> References: <20220913140357.323297659@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 6e662fb131d55..bd96ebb82c8ec 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