Message ID | 1507923164-12796-15-git-send-email-volodymyr_babchuk@epam.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A016E602B3 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 19:37:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 929392913A for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 19:37:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 873ED29148; Fri, 13 Oct 2017 19:37:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 058E82913A for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 13 Oct 2017 19:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PwTzUv8N6V39mId3h+29XrAy+AHiV068MNce8fy+fjo=; b=F6jbcn4UW6rlCD tq6utD8jhV848VXwKW8uNSms7KoNlhKSPgT30lBqZi0dY0reb2odkwUrPH9Kj3tbkXsUuW+BJs39N JYErCs0M5iQPvuzKIZ81lSYZ0KZ3DlPAajLxrTH1GkHcDqKbZw7ZcMzUTESpNa6kkN5BxqXVH6eVP Yp0Q1tz1lf4Z28FW+iQXFgeiVaVde83btkZ2vnIRXfdoBnlZlEpJ6++ZKFN5m8Jjlp2XUJ3njhOct c9bb5QcDNoeuHoUPPuHJ2g9SA1MCc5Kv6Nk+tYg39arGYcB64sCnGbZ0+S45Uzd/Fx6QLnLgGsOL2 l/kNIBoECmAlSVmSOp/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e35m4-0002jF-S6; Fri, 13 Oct 2017 19:37:36 +0000 Received: from mail-eopbgr00043.outbound.protection.outlook.com ([40.107.0.43] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e35jp-0007ty-38 for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2017 19:36:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=EPAM.onmicrosoft.com; s=selector1-epam-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Q4ON1Dnzwghn2zhNgUKWuMNMiUvovDUvz1IsFFkQjlA=; b=iW7jVx+Z9v29i9s7lyrahK7RQmrDpS5XPAcRUACfZWfJJSGQOHZF7sCVTS0aaMwAwDa1op6Q3Pll0OE1m+s5RVPuDMs1xodOPz/r0UjimKCeNfdPgGI02X9wOxQrf1ecpk4KrJg+0dqGdVBfyf6lG6h8+ZwkYIitfqo73Wo46Vo= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.52) by HE1PR0301MB2140.eurprd03.prod.outlook.com (2603:10a6:3:21::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 19:34:51 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Fri, 13 Oct 2017 22:34:47 +0300 From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tee-dev@lists.linaro.org, Jens Wiklander <jens.wiklander@linaro.org> Subject: [PATCH v1 14/14] tee: shm: inline tee_shm_get_id() Date: Fri, 13 Oct 2017 22:32:44 +0300 Message-Id: <1507923164-12796-15-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507923164-12796-1-git-send-email-volodymyr_babchuk@epam.com> References: <1506621851-6929-1-git-send-email-volodymyr_babchuk@epam.com> <1507923164-12796-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.52] X-ClientProxiedBy: DB6P193CA0003.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::13) To HE1PR0301MB2140.eurprd03.prod.outlook.com (2603:10a6:3:21::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 31aa74d1-f1e5-478c-7037-08d5127179d7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR0301MB2140; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2140; 3:UFrUv0eewbPTNzT/W3vzLpOLbP5IAQ/D8eGt0Fjf0bXuZMvN5K0OqfUmBnPn546fv9zsldz5fhZhBL6WNCIM/5gKU7xpikSYEp/XEfl2HUMMMNgh6brhWqaBdsq04qh7YSc2AK3Ug3QzPwhjeO6r3Hj2hHsQqbNu/pGyNSmDGm/jcc8zPs/bWY7EpAVWPC+HhExdQvcGReiQpJqskK2MmllpgzVa88bQLOOEgAkZ01B7NIQDprDNXC7HRxrjHUhG; 25:oXb4993QW/GLYzUUzqby0MbTvLxQ0WqzERP66cTSIpFztVuOTArIY+xiEQa8Y38ocGusafLEIvJ6pTOYusp5jhfK2NffrHp+RuiUM5i93+cZ4pX96bBBsVZ79awsANCxVLeoM9lcx3GxcUzDzmaZxCkk63ei+B6P9IFnuq3w3G/rBlYAQ82W/+ZyFpQBYjcwgCZqTX834R8Qf+N+lDN1/QEmN+jNt1jMYU1jFvutUFFjQ8sni0nKMOlhxlFZ3W3xJNOkJrlWk/VwRVbE2oGeOg3qpxKMjTr2ZtGNlIC5m74S12z6beofp/VeRKTuBgiezQmK8eJ3FXE1R79+JKbavg==; 31:XVOMazNeaSkuJyawdlfngG62FDqEvhm2cw+HyzDCfThxyX3B2h4QKS7MWwtAC4r/5fL35jCuB2DQyjcnNy+3gPx78jNba3HjYnF4PrWjKJviOlQyndkKeJBwbWISZUdxDt8UyGv5tR8TTo45J22OnCENiYbTGhScbPUVa5Ktdu1QmWuqQpctBoVX+qhvDsqNWthxMksYKfUY9mD8viojAqlUFssakMS/4BVWdchUtzg= X-MS-TrafficTypeDiagnostic: HE1PR0301MB2140: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2140; 20:loyhBGakppcVIkzjKi/6gf9le2/gekbyTq9ulZnPrZOxcd3u4/0HcCoSBn+SNVRpKXy9S651cumDaJa4YWRiCclD1aTLxuSP/xcpDoZBt8SJNH4IjY7d5uQ1LzfT7WKYm001GZ0AnsjdVL3Qdl3Yfd7yaCJSZt/1B9tc/XQS44jxxCsJ07YfgVNcmNPxaKjn20iFIUeeMfBW7PoToPPIy+5nc9ZfnQR2wCDBWJCQJsDnrhzP5WuavgjDs80nT3aPhXngeBIS8o8P77m6tDBXMKdi0BK5v0id/NACOX4uzLwUgTsn1TriQG7GFcFW3o2IbpgxMd/J868r2KlBc5R6T682gY0MRZL8deb1E9ZkgrpDhyq7fZkJvcuektr8Dsue7ABv9GsGSrV6UD3hpNopKUWRSnIaXlRqYvaP/sRrCvPMxQHJ19Iapj1bmrFpNLggzYJqQfB8UNEkQlzy9qe3ZneTTAwsismVS+o0xcK2FImqOHLDayITt2pZtM068Eak; 4:oazHlXIiz7yCZoe+kZEG/C0EQHXZklcaUSogXeAqj4vheskl5BDh6A0j2opaK8qAxD1NGZ/WF01KE1zk10D7hqTM9XoMBzTp8ZXq1SZYg9hXsOdTRWfrcC16808zYnK+8ktjdkybn68ktcAey+RuXW0ewHt+kWukEK9T6ky0FUGgP5DoRtSAg1AJrqQ4WSvLZCc4IguEOP4MFta1UXe5DLU6pF5vKJbg7Y/0mlTP+1g93XoUEg6zE5/c396FGALv X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <HE1PR0301MB2140AAE3F981C79F330B806BE6480@HE1PR0301MB2140.eurprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0301MB2140; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0301MB2140; X-Forefront-PRVS: 04599F3534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(50226002)(6666003)(36756003)(33646002)(122856001)(53936002)(16586007)(80792005)(42186006)(6916009)(2950100002)(39060400002)(97736004)(5660300001)(8936002)(5003940100001)(86362001)(50466002)(48376002)(2906002)(72206003)(66066001)(478600001)(81166006)(81156014)(3846002)(7736002)(76176999)(101416001)(50986999)(4326008)(6116002)(305945005)(106356001)(47776003)(105586002)(316002)(107886003)(8676002)(189998001)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0301MB2140; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0301MB2140; 23:VgPX2rYeqkZectmXpRDWhEEJ/xyad2ngIb2xETF?= =?us-ascii?Q?+K7h0OuMRSbf2pyeg9V84hLxdQAbFW74PJVYe3ahUbmkvkbIho2uE6jFc+lj?= =?us-ascii?Q?6ZekIhorRQO5II/OA3kSWKHkaa+3z7pYYypb4QllNOs5zZftMzog4I8wF2Mz?= =?us-ascii?Q?vS4CyBT1nxeFoyVQxuQkUMvNPFTXUjSFCSeeKMnN34cx6aylA+e/WKYEUszI?= =?us-ascii?Q?n7qsu1+hz9VK6I+zugg2T2Pqg19vNN7j9bGjyZGemDeHIPVPQfBs25BA3w/V?= =?us-ascii?Q?CQF66PSncsBPPvbI8cKYET2tkJBM3cJGiTE9J/02wXeNJRqhtQkLFKf8ffC5?= =?us-ascii?Q?2M6z69DTZNQIAFOTAa17D9Nx848lnNN0FOh6/KL2+o42VSG1MGpqZoUyscXG?= =?us-ascii?Q?C+AIBBlO/DBdxNGHj4mO8g4fv9qLDfilt0K5Fs8Is9/QLDgRz903nrp8PLf3?= =?us-ascii?Q?5nyPZgZE4u/Si/naO+JXFyvoCVzOUA+coFWI6dlDlTKjcSz66FZv7kL/xf4u?= =?us-ascii?Q?rzA82Wzx9injevikOOuFDO0L4kwEpjm2SUZiYIzoehHgmn4gtgylatajJuwm?= =?us-ascii?Q?RY5KEMQ9GCg+YHA+1dgaaOICQqiVqhxCbEy5drfEVk8H6dgfpb9pereLwHx6?= =?us-ascii?Q?bExAVf/RgI7ZOsIJoJozTaYm28WFyV9MJV39VZMvn3B0B2MnsUy7HqD33e22?= =?us-ascii?Q?C/BopsRr5Yi18TY2C4Uxd0rNOJcoZkwNWEcjKXKLDjcq3RvI+NY8kTFAxH15?= =?us-ascii?Q?xEuq+aGE7wE6ARvLlEM3/7SaFysztecEV59mcE6X2qeyjrWAY9/zzgZTkLTl?= =?us-ascii?Q?OhyBbwwCw4jKZM8ILlOYDCKShdylBN3OMwkBkc6SZcNQ15x8UhC34Aamt31d?= =?us-ascii?Q?NSNzmOzciWGCqrJ+oot03zZtiqXynHZwUF5ht3Go5angJWOaD4WdHveM/dxb?= =?us-ascii?Q?iTMVte3POJaB0M2xeDffGKOinGPTigPnGilpRixELBgnyxx+JC9ESjYylRlZ?= =?us-ascii?Q?LIi5SV+vjTTFzco7x6Sghwd8aDZsykhaUkQrCiN+T7UTl3YAEha5Wp9CTs+n?= =?us-ascii?Q?JRyLOEexy8Sch8S1tOK/A4N9sz31QSTeG9Zp3vm+hV+wOB7V3sw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2140; 6:DOd29O59aKdUf+bKbEcne0khZ7xjNz7PSI1+nx4xNKi0oQcLfIzWPLUdJC2BhcHHz24H5keg6t7Jj8Ir2uqe8RGGzS850o72F5EmtgZHZREGABvyA7KoGQ+cPLobkAhvO53EJC70pADhmH9JgE8wFN+MtDI875MXFJTgGP4Ty7TCTi++2KYVLuhkEuJhnzHZTJk0TiEZ7IzJuYFz82N3FGAwGgkAjoti9m2gh1dQVkgic9y549n3aYtqt9kxiIY/JtUiUjiaJdY63AK3sEA7RRw3xHp1sOBuyR71/o6RHpP8QjZmDTSDXllxnkELYpp7jl+FimPc2ZxdZtK+VYx2pA==; 5:5neKYNDzS2iJVTrAyAaDcxX3clSs3TEW5hWYTE6UscXNLWj4xl4QKBfAEW2E7iO/EAiECHLgq0jpkWZdP9bC8nXoZ+oohHZrJFktaVHiIsXGRTXJCbEyC00PUc8Mc4n709jIBES0BMBnuAF9/mp3CPwNFN1NkEfM7IVtTxh/wZ0=; 24:QcP+1hPhs93+qzGb2PjOVM7E/Mphbbe5nqrqkxsXBW5aH+z9J2e6gQSQiIup+C04UOlZvCp5tMlXVX3snPkhJjifQfl5aUoq3JLFVdu5aNg=; 7:/bI3U9sDDK7GovxlpS2QRRaLIz67Rn9zN42I+1IW5fcrxzmKGvJqTO6jfUOsKoAAy3LCSzos2cis4SbB2uwsvjdSVne6hiOWo69SjPC3/hPrqhvU3eyrJlzm2xPFg8PjWIQ7a0qUsOJeHgGE7DdIyojgVdeAjS5zcZoAUxVa7SCfmP+smZWqven79kCIkYdjeWEYbXJBjtLtrmHuAZVzmsK3WmJIuDMoIVStZPZKRrA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 19:34:51.8497 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0301MB2140 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171013_123517_846343_7337C3CE X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Volodymyr Babchuk <vlad.babchuk@gmail.com>, volodymyr_babchuk@epam.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c index b48f83d..5f5f771 100644 --- a/drivers/tee/tee_shm.c +++ b/drivers/tee/tee_shm.c @@ -496,17 +496,6 @@ struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) EXPORT_SYMBOL_GPL(tee_shm_get_from_id); /** - * tee_shm_get_id() - Get id of a shared memory object - * @shm: Shared memory handle - * @returns id - */ -int tee_shm_get_id(struct tee_shm *shm) -{ - return shm->id; -} -EXPORT_SYMBOL_GPL(tee_shm_get_id); - -/** * tee_shm_put() - Decrease reference count on a shared memory handle * @shm: Shared memory handle */ diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 9cd4e5f..c36ecea 100644 --- a/include/linux/tee_drv.h +++ b/include/linux/tee_drv.h @@ -428,7 +428,10 @@ static inline size_t tee_shm_get_page_offset(struct tee_shm *shm) * @shm: Shared memory handle * @returns id */ -int tee_shm_get_id(struct tee_shm *shm); +static inline int tee_shm_get_id(struct tee_shm *shm) +{ + return shm->id; +} /** * tee_shm_get_from_id() - Find shared memory object and increase reference