From patchwork Tue Jun 28 07:23:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9202145 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 99D67608A6 for ; Tue, 28 Jun 2016 07:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 843D1285E6 for ; Tue, 28 Jun 2016 07:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79047285F3; Tue, 28 Jun 2016 07:23:21 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 929F9285E6 for ; Tue, 28 Jun 2016 07:23:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751977AbcF1HXT (ORCPT ); Tue, 28 Jun 2016 03:23:19 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54522 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750704AbcF1HXS (ORCPT ); Tue, 28 Jun 2016 03:23:18 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9H0012V0IQ1D80@mailout2.w1.samsung.com>; Tue, 28 Jun 2016 08:23:14 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-c6-577225e294ef Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id E1.0D.04866.2E522775; Tue, 28 Jun 2016 08:23:14 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9H00I550INQV60@eusync3.samsung.com>; Tue, 28 Jun 2016 08:23:14 +0100 (BST) From: Krzysztof Kozlowski To: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 2/2] crypto: tcrypt: Fix linkage error on ARM on division of s64 Date: Tue, 28 Jun 2016 09:23:07 +0200 Message-id: <1467098587-1038-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1467098587-1038-1-git-send-email-k.kozlowski@samsung.com> References: <1467098587-1038-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnluLIzCtJLcpLzFFi42I5/e/4Vd1HqkXhBjdumFhsnLGe1WLO+RYW i+5XMhavXxha3L/3k8ni8q45bA5sHltW3mTy2HZA1aNvyypGj8+b5AJYorhsUlJzMstSi/Tt ErgyNjx7y1LQzF4x7fsrlgbGZ6xdjJwcEgImEo+vbmSEsMUkLtxbz9bFyMUhJLCUUaJlYwsT SEJIoJFJYsaSbBCbTcBYYvPyJWBFIgJTGSU+Xz/BDJJgFsiU6Nw7lx3EFhYIkGj9CzGVRUBV 4vHer2BxXgE3idNPlrNAbJOTOHlsMtgVnALuEhdubmaBWOYmseD2eaYJjLwLGBlWMYqmliYX FCel5xrpFSfmFpfmpesl5+duYoQEz9cdjEuPWR1iFOBgVOLh3VFXGC7EmlhWXJl7iFGCg1lJ hPeUQlG4EG9KYmVValF+fFFpTmrxIUZpDhYlcd6Zu96HCAmkJ5akZqemFqQWwWSZODilGhiX cfTsVtr37FbvytsT5yb1HJyavadul7bjv30TwgKnNL4/+Vm/8vpme+d3m8ouH3+kXHKhI/T/ fcXy1F4nD0Onv/6nG+vrzOoqLl4+bzjT4bDg6792ZmtiSiJtttadOL322COHwpf2h42sJcTs bgV59W9vc/856euljnv2RwR7RZovbdadaV6pxFKckWioxVxUnAgAxSTxiRoCAAA= 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 gcc 4.7.3 for ARM on Ubuntu couldn't link tcrypt module because of division of s64: ERROR: "__aeabi_ldivmod" [crypto/tcrypt.ko] undefined! Fixes: 087bcd225c56 ("crypto: tcrypt - Add speed tests for SHA multibuffer algorithms") Signed-off-by: Krzysztof Kozlowski --- crypto/tcrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 3788a607921e..1ff373352511 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -668,8 +668,8 @@ static void test_mb_ahash_speed(const char *algo, unsigned int sec, } printk("\nBlock: %lld cycles (%lld cycles/byte), %d bytes\n", - (s64) (end[7]-start[0])/1, - (s64) (end[7]-start[0])/(8*speed[i].blen), + (s64) (end[7]-start[0]), + (s64) div64_s64(end[7]-start[0], 8*speed[i].blen), 8*speed[i].blen); } ret = 0;