From patchwork Mon Oct 10 15:34:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary R Hook X-Patchwork-Id: 9369697 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: 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 63499607FD for ; Mon, 10 Oct 2016 16:09:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51B65288B3 for ; Mon, 10 Oct 2016 16:09:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 430E129174; Mon, 10 Oct 2016 16:09:26 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40AFB288B3 for ; Mon, 10 Oct 2016 16:09:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753016AbcJJQJY (ORCPT ); Mon, 10 Oct 2016 12:09:24 -0400 Received: from mail-by2nam01on0051.outbound.protection.outlook.com ([104.47.34.51]:1728 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752920AbcJJQJX (ORCPT ); Mon, 10 Oct 2016 12:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=h5BeaxY+TAXvwoapHrZROdfufk94j3m8EokO7V5rLgM=; b=DpeY0ZeFJ2n+8oRF6ssE1fo1whVnzXKlcRQ7W2RCghzYTVbAO5gLJXoQEZujWUuLnHEXl6Lctjp5LMIX671ue6luQSX/mSIO07svqia1hNAgP9owmNRrjIek1u6hLsawLOTs0mqfeCantS1zV3UXeGMbOrMJbr2YkhiVBreQp40= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.19.42] (165.204.77.1) by DM5PR12MB1404.namprd12.prod.outlook.com (10.168.238.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Mon, 10 Oct 2016 15:34:28 +0000 Subject: [PATCH] crypto: ccp - change bitfield type to unsigned ints From: Gary R Hook To: CC: , , Date: Mon, 10 Oct 2016 10:34:24 -0500 Message-ID: <20161010153424.28762.94016.stgit@taos> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY1PR20CA0048.namprd20.prod.outlook.com (10.163.250.16) To DM5PR12MB1404.namprd12.prod.outlook.com (10.168.238.143) X-MS-Office365-Filtering-Correlation-Id: 6fcb3029-3e38-46f4-4bd0-08d3f122ec98 X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 2:G1PDBeDgDgNPwHuFVBumqazcphu/L6y4ej/0FhsWP8VVYS3KABD27wXcH9LwbGguSPbn0KS4aqR2r6FXVSrGnb8lQQdW/KicJrPIGfYM08W9dP8uOBg7Tt/h9L5312tQdZnIb9ksWPC+q/wVXw9YB89Wd/AjzF9Yv/V7A0//MPQWT/MkOC98FVEPb27hMwTg1UpqsFRwK9f9xJmoi5NXYg==; 3:WwZDNnt+PN3nIWrzPciAdY9vr8NCqho7EMJa1RTJIGsUMSqG03I4ufOaWyJI26gb953swBP+KHIrKrIMpnU450PUef9ZPrODfz4v828HaGUPuSLK6B1t64AK26Ryoyxxs/D7AyGBo7ZP672vND3iaw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM5PR12MB1404; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 25:YS7TRSq/ZiF0L2a13jOXDf4Fr+Dgmf/FsgoiQS+EF8EaZq5wDorXguTwV9BQJiBPm/hFexqdwwcQuZItV4E7XkcxlUsrvaNz0Tdb6RWW1OFnZCImTnMU15XZOavuZvUhtcHJ7zJvX5ZP9aPDKfh6BTJMKicuTU5k93C8QxS/8hZ/6e2a0ZdgS4A3dPypSHptyV5mrY1r6ejFKumpNm5QJtFGXxgvgxFUO493XSlnjkuka5qlljXa4c72kbV09R/mUqdG1V8qEWxdSk5PVWJ+GANk/wBsmkNqG5XA4kARVW/60BOBfSydkaeo6zEVuquyT7/vFrtAwp3u7Jh3efqszJQlLHeSCH9V7/AAaPm/ZDpfnwHgJeEI5ugGSFjbEV3OgE3MFvifAl21ygf1aUGFcFHMedESRe3VpI5D7yUzseJCkxTozHB41NDXr5qZ1xbW2KKguSUEQh5OeKgVV3NzvTGdIU0mKrHgknjZQKetOY0YIIVVfG3EyWe0LLsYqYb+MZU6ghaFV4tXa5bRuwKHdkrh69JjuCQcad5IcOWpwyrmUkLnGMwhTe6y8SIXv74cIPGZpL4M+umr0BKjXqIh9Zu1MF1Ppub/5EeF7HhInqZwygQWSSfaTd6HUnhbcqwKKay/DLxRnn5Za0PwQQz93vG1NZHoMwXmrzUHFC2lRPGJ1SnsS6QqawXWpqsHLBElcOpK744chP1iyUte70YjAQ== X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 31:MOe5BmEJ4mN52G1X8S9zZrab1Q1iyDD4W4ZvV/KzUlH+yqpnWtpApFTHOPXagnNiO1oAoqGKomB/tr8oWRJW4L84WdyXCNgjQB0JeWe94lmHbZqwRSUY3H+hbNE0l87IW3MkpAjAamSZCtxNOEfhWj3gcbTXWAmgbNJNCe08gl6ZnqEq8UkMy2zfN2BMzicGyf2zQ4a0m/yc5dHvGO6j1/ZI+k5Wz/4jGNc2q5+kYRxq9iT6E+iHZGZFH0TpQE/lJ95A93W2cRMNilZ7Y1L13g==; 20:pbmAnQ3AOxyMmiWSBdyFQqJTkxkZYJpMpLTwvfHcNT1ZJe9UvozM6EHPyqhbcW9oYtKMWwOgDO78GAq8z243HGsOwGD+d/C8wDstcUL45tlCf3wNh6dPvXsHC6mOtuugbA8h9f+U2qr5voFJutrcSJ87ELAM+bxvzVHcdfHPKxA4sQB1y8bHQG2t8NwnGiWrkTn8Z+NR59Gg1lrUrcjaMLxHhpbTSbWYbGi4oF7lMtTQazWvPYXvzDht2q1HqGOrb77MaOYRNcmDs+UcEj+ckS2RLLSmZuE9v9myijlCZRTohA7IzfG1J92IWQ61KWUxQUDfywLGoUJOTqjofNTpwopstWlT6FCNRNu1KNwyorKDFH1Ecj4bobXpnWwJ0+xchZqKi/DYygvVh61FiMlpA2VZDAcVF1Yuz5NKoFrZqcwoV2O4DFvnkRANwV7aA9XfXnH0R2tn3cE/n1Zroos8CNIrD5GUO1rOU5a3KJYSKpxTdhNKNedQWIEcyp64xvgX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:DM5PR12MB1404; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1404; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 4:rOXqnz8v1+YuSEpKb2E9EzLg1YHFX1sMgZIfcH/+MzJABaoa99ogePY5tLdphZgpPqqyVXAMGclZNTp5JWXZYnULSWFo3/vYajXhFYPvao9esC7w8gMlBbyV4qQkjmI9LRr4SV5Ogl3OeNuq79FLnnWTJ8k6sMLDnC1nbgXjVKIiolOmk+b3aInx7wvVyWtJwyQeIkXQiSC4ifsMkJWjOgiMA0Xn+zDw8GW0j6FPnFiTFENah14aQeoz/c39EmvyLv+29fMLX+BpJFwDXCZnkFv5m6ZlfdFdULtlDz+UFIM3V+6lXg6Xd2CqzegLKR7sLShPqb26X3+jvt6mMmgh6xxJa9NeAj2So2sMMGgTAojocGw11SZ2/cXZrTs68QEbUIfZOImFhRS8YXNzxAsjv8wHVC40pXB9sCqGR7hDm+tMhAD6RcaWK/UhEJ5EmRW0rapxzugxOlDeIQmSCLDA7A== X-Forefront-PRVS: 0091C8F1EB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(199003)(189002)(586003)(8676002)(4326007)(4001350100001)(86362001)(97736004)(92566002)(77096005)(42186005)(2351001)(229853001)(81166006)(33716001)(81156014)(6116002)(19580405001)(23676002)(83506001)(1076002)(68736007)(189998001)(19580395003)(3846002)(9686002)(97746001)(50986999)(54356999)(5660300001)(7736002)(101416001)(33646002)(50466002)(230700001)(305945005)(7846002)(66066001)(105586002)(106356001)(6666003)(110136003)(47776003)(2906002)(103116003)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1404; H:[10.236.19.42]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxNDA0OzIzOlJsMjEvbVBiUHdPT0ZIRXdCYUVvTytvUkNl?= =?utf-8?B?VzVlRDh5aHE5MFBqZGN2UnVlcytUNURzajRiVVl4STY4czk1c2l4K3NiS2xv?= =?utf-8?B?dFQ0YjkyTWdlc3d0RkhqbW9LbnlqcUt2NFJWZ1oyRytGbWZxUWtDWUxSVk4x?= =?utf-8?B?cWpZSDdRclB2anNpUE0zWW16TFJqVk0vSnA1ZmRHY1BFdzJDQWR0bmNtNFRt?= =?utf-8?B?czdsSEpzbUNrSy9VcUw5MlNPRUZMbmIwdWh1bVd4Wm14QWdFbHhHelhTSHNZ?= =?utf-8?B?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GP15loQGqkEubuTMdW3tJS5Nx0lS3jagHwRRbgSdodnmVjqfb0VP2HPtFIID9h4l5UwvBw0=; 24:c8spXlVdinMyttffl0husIv+a0/21n1FmzJKedWsY1osRa0OKjbqKbtImztfEkcQKVno8GvOrAOMFbJjG35XTvy0kFNIAXvMi6RaCv1DqwA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1404; 7:pzAlQM0GfYKzqfQVA+rsCYD+xajehmVBwhgi8544PcCovqwimlL4I/8XAe9UA4PHT/o59Shob20w6wlRTw4m6SV+tCW9DG94sCOFWkfSv8qvbGoQGJjulqvw/csX+9NXHGjDFITTvhzFCcU1Q6qWGejCuayMR1g4zHEKUncJifW80WelWSY58c3+YgnB1xQIh6aObVfAGAPqvPP1gdQ0rtt3wDVJ8AswKQOYNLspbiOWVwuUiLuUNEhrnxNlGscF4ucXOOXTjVAZNnCRIvHbCYX8gOzGC9L9iojxOA/mZg0/oI765KQDCz8jZhS6RIAIr1MJeA8/VJwLlubHVpnwtuQ83DrmgxxQ/v6JVcvg5Ng=; 20:XHwC2MutNAnSePlnrN5xHpevPaezm6+i2wCLGZdyQVNSI/dbVVDXI36Tyf/hSxu4HKlw9AX5bo8ln63WUJyoFj4eXVSRDZEZLnlpq38rZHvbGs6Wl1u3GHiB5HMU6GxL8cRqdlsQyUmk7bbkhcgUfmXcbUBkiJpumgn2gqs4AZdQ/RjZnpLrB3xX7DsdR+SWToW+PbzxSgoeGdzut797I21KkiBtpHdhtEkWpOY4GlJRqKewBw3eqFE08dkDa1Bf X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2016 15:34:28.7225 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1404 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Bit fields are not sensitive to endianness, so use a transparent standard data type Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-dev.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index da5f4a6..0d996fe 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -541,23 +541,23 @@ static inline u32 ccp_addr_hi(struct ccp_dma_info *info) * word 7: upper 16 bits of key pointer; key memory type */ struct dword0 { - __le32 soc:1; - __le32 ioc:1; - __le32 rsvd1:1; - __le32 init:1; - __le32 eom:1; /* AES/SHA only */ - __le32 function:15; - __le32 engine:4; - __le32 prot:1; - __le32 rsvd2:7; + unsigned int soc:1; + unsigned int ioc:1; + unsigned int rsvd1:1; + unsigned int init:1; + unsigned int eom:1; /* AES/SHA only */ + unsigned int function:15; + unsigned int engine:4; + unsigned int prot:1; + unsigned int rsvd2:7; }; struct dword3 { - __le32 src_hi:16; - __le32 src_mem:2; - __le32 lsb_cxt_id:8; - __le32 rsvd1:5; - __le32 fixed:1; + unsigned int src_hi:16; + unsigned int src_mem:2; + unsigned int lsb_cxt_id:8; + unsigned int rsvd1:5; + unsigned int fixed:1; }; union dword4 { @@ -567,18 +567,18 @@ union dword4 { union dword5 { struct { - __le32 dst_hi:16; - __le32 dst_mem:2; - __le32 rsvd1:13; - __le32 fixed:1; + unsigned int dst_hi:16; + unsigned int dst_mem:2; + unsigned int rsvd1:13; + unsigned int fixed:1; } fields; __le32 sha_len_hi; }; struct dword7 { - __le32 key_hi:16; - __le32 key_mem:2; - __le32 rsvd1:14; + unsigned int key_hi:16; + unsigned int key_mem:2; + unsigned int rsvd1:14; }; struct ccp5_desc {