Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6828982rwn; Tue, 13 Sep 2022 09:31:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR64ER8vk2NFwz2w0gkoBeMgFnU6UI/Akcr8PhZ2H/QKey6UTVWZYVy3A5bFkJXYlw8vqU2Y X-Received: by 2002:a17:903:124e:b0:172:7d49:b843 with SMTP id u14-20020a170903124e00b001727d49b843mr32284108plh.52.1663086674908; Tue, 13 Sep 2022 09:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663086674; cv=none; d=google.com; s=arc-20160816; b=aedJVDvvkWrI3TMXiNH1eFqjxcT5ot1C+8v3/MCVHAOmWo/RE++7BdxsRh4926q36p JW8m3J8hsGvQYCTonQjBwrv3oO0DYg/2QWIv6vTDOPw9Nk0oiH3Fsuz/j/KTD3XRFadH tp6jcco1QyXK/SNW7mYCs9YaU3Np6zVbqfIJ/KEbui0BFePV/3aTPwHwPtXdH/McHRi2 4EF8jvrmBKsTC0KKp7IhvswKD0owizuVuMBlLYpzFkicJOV8qZqJbHebRqWklgOrrYpU K1xfufNTirL/mU+YSueAJtlC20fkoFHSxsNMTm+wKzskIPTwVKhmcU8GpWQxlqoa/yzT TBsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/sXMYd9L4opEmHqRxWQtjBTcFo/uC1xGhtMSVattVec=; b=yvNnh9bCfxQ/gwrGlKD/Exm7J92TZI8ZpHpUAZhHuuSxYA5q8170tvg7E+9I8xeJje RqbEeiKxMXLXA5TrbFbzv07Iuab3A2eCdV2liaUgs2Oezq3VhGLl8b73xTap9lMPuSKN MHsUlhTDQd6yfT6w561kR0xnGaHqGXyCeg6DaYnCZiH6adQ4iP0tDth+Ua8u9aMXFTAS WS/M8mWfcXZqATK1pIC4go1fDlATSnnfcw1EoktK2lzBtG+/+XLV/fG6DiitAjBS270P VRckhL5mMU4SqEJfbNObQz3mKLFY2Z8lUR6ulOaT2QLJquuCNKfu0HnHZzRvmh9oCksZ sPww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vxWIxsty; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az3-20020a056a02004300b004391c48220fsi5362470pgb.257.2022.09.13.09.30.58; Tue, 13 Sep 2022 09:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vxWIxsty; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234191AbiIMOgn (ORCPT + 99 others); Tue, 13 Sep 2022 10:36:43 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 'access_ok' [-Werror=implicit-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" -- 2.35.1