Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp660397rwb; Fri, 23 Sep 2022 02:18:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4brEHD++FMy+Sa7TRI+Q9yFdlv0tpnVgpOp9kr6+E3XVYs2/gWs5hSoWGSMfBBkZRVYgXH X-Received: by 2002:a17:903:25d4:b0:178:37ed:20b9 with SMTP id jc20-20020a17090325d400b0017837ed20b9mr7642306plb.125.1663924725479; Fri, 23 Sep 2022 02:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663924725; cv=none; d=google.com; s=arc-20160816; b=oKSxtwNjcGpRkrQnomUVcfK+tYQAw/Y7Iasp5doOHiHH2PP64W+uj0XahcULpmJhFE xPcgEzMB0pm1xL9f4s2+QJyUfN+AFmH4GmYaeK8L/9DSax65OTTlzdz7MV+IInPufIxl G9XxEZpXoX1QEXsJSPzpYLAww7PjxXxHqQYNhRqf1Jg5mV8/2Ime/N63YX+MFfgu8OcG VaUYYMUoVndxP5iq8w5rdEP6eWkNxJtvyfEfo3Dpjp2APihd/ztX+3Cd8453fkKecC3K 4kF5q0u5ZAVCszEvzTfh9cVgkeuMeOyqkbcM97YZAMfbZJoxJV5TkDjJ14mZpQy8aMt2 OZRQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NNGVGWihGsZOrV7ZeLmIL373DCD/bCFrxl7uAgsgH5o=; b=PmqXwIMa1o0PSzVt7yRfDVQy5s7XOej4sG9PVzP8YNm3NJY61fVl1yFLIMl/gZS/5p wmNjUTw+CHvfyI6hnsc3ShmVU7zKnqhCZFKRGL/RKoHOVm9lIEiPt0sswgfv9UafWWpx JcAh7Z2VK0yPvBLQboVGVhep+gltG+Pv2/SUivWdVhLZAHdcM4LFxHPit+BOFd7vyUph qEJz0jhUC05S6KztJXqeEGHNcsC87ficp8Ko9atsEH4GEDNn0NAL8A5Du/VAGZq7k4Wa p5KZAEGded1LM6w7K+t8nAqrmO2a0cybrg1nIVP08qrXIXspfvMbXBvJvpm+pMjLnu9K owNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a056a00130300b00536ee478380si8178028pfu.7.2022.09.23.02.18.19; Fri, 23 Sep 2022 02:18:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231579AbiIWJIp (ORCPT + 99 others); Fri, 23 Sep 2022 05:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbiIWJIe (ORCPT ); Fri, 23 Sep 2022 05:08:34 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1105312E436 for ; Fri, 23 Sep 2022 02:08:27 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MYmRg2LNVzlXSd; Fri, 23 Sep 2022 17:04:15 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 17:08:24 +0800 From: Gaosheng Cui To: , , , , CC: Subject: [PATCH 3/3] crypto: scatterwalk - Remove unused inline function scatterwalk_aligned() Date: Fri, 23 Sep 2022 17:08:23 +0800 Message-ID: <20220923090823.509656-4-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220923090823.509656-1-cuigaosheng1@huawei.com> References: <20220923090823.509656-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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-crypto@vger.kernel.org The scatterwalk_aligned() are no longer used since removing blkcipher and ablkcipher support, all use of it has been removed since commit d63007eb954e ("crypto: ablkcipher - remove deprecated and unused ablkcipher support"), so remove it. Signed-off-by: Gaosheng Cui --- include/crypto/scatterwalk.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index 6407b4b61350..ccdb05f68a75 100644 --- a/include/crypto/scatterwalk.h +++ b/include/crypto/scatterwalk.h @@ -46,12 +46,6 @@ static inline void scatterwalk_advance(struct scatter_walk *walk, walk->offset += nbytes; } -static inline unsigned int scatterwalk_aligned(struct scatter_walk *walk, - unsigned int alignmask) -{ - return !(walk->offset & alignmask); -} - static inline struct page *scatterwalk_page(struct scatter_walk *walk) { return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT); -- 2.25.1