Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp16102imm; Tue, 19 Jun 2018 13:27:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLu3joCPUo7go8O0qNz8erF3ZjScqjabwHvi3V4W/rYlbE9bYtaI4fgsVIGHzV0v0nPsGMO X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr20699315pln.40.1529440040299; Tue, 19 Jun 2018 13:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529440040; cv=none; d=google.com; s=arc-20160816; b=fiIpGCXpWKzIJtuNnhwiLOCfOf4YUaIafKw7gI+XbGaxrVZWfaOwdnDNbdowyLZEOz 7oKlYMDUxTs80Uv3TCKktbdEQv7Se2C9ODY01Rah3YO8abc1U5dyGUAAZ+VmdZf1Tjyl H9mWOFsRlmZ8K4jtH+wXZtEziY70CEZndlxlA7eQ9EZIvn5CqZhP/lBiOrQTA9vn9sS1 lUnGHd6boAm+Ny0Vc1+2ljQHCt6/smEBLsNobVaSNJcFg2Tw/FnVV1fP8460Q8OgzFlf QMxUqis5YV/lgw1P+/WcfgVU1eM/sybw6bXYFVPbEm8u0ZSvWpjaVo0Z8Wje4Xrl96vg FJ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=7qXKyOGCSgz6ZKMJkgjTNbc5pHK2sr6gkv6DvO7yY6Q=; b=kmUv/zmIoS+LVFEsBjmGbh1eaoUxHLaLoeq6EQdm4UBNhmO2FtVHGY959XlT2j9M2A bpBepg1WkNI5AL+d8t3jWD/F4LcLKou6tuGrojzxfJpe5g8W13uzoheRA15XYiqQiilE DElYISCnaB/3NevH1/DBompSXNKQQpTHmigKoLHxoAJSxtbfRWPkAztQBMvMtW82NzFG O02DGO8uoMMOLI41L+G4CT5ApWR2wunwMF8dbZsAABAQ5dvcxYA+/r9BDKSfcqewBfrC 2EV+ZQzKKhpR0uaN7xEswJ0PVsny4dCkY1nFR613NGZcNGDmdHU01TuDE60+4k1zUx8P orfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13-v6si414557pge.370.2018.06.19.13.27.05; Tue, 19 Jun 2018 13:27:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757315AbeFSUZx (ORCPT + 99 others); Tue, 19 Jun 2018 16:25:53 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:46259 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967197AbeFSUZg (ORCPT ); Tue, 19 Jun 2018 16:25:36 -0400 Received: by mail-lf0-f65.google.com with SMTP id u5-v6so1427646lff.13; Tue, 19 Jun 2018 13:25:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7qXKyOGCSgz6ZKMJkgjTNbc5pHK2sr6gkv6DvO7yY6Q=; b=kfeurjPtv1eG+f4/5GWeAJKWbNnUP7AWQpOEb09z9IkMgqnbEgadsWyaOpi/RDhuPe UM2SHgBbQ0bi3RFQr3RZWOk8/a7MBd0x20tZHgIyMNL3AtF1noyVF4iU7Kf/AY+rABOz aTrztcRxDXOAcPv+sPCFaD7opyXr6fX6Oj4jhVzEDAdTDyWKU68wIxS0IGnmf9h8Kmrd CX623l9tzeb7MsFvoCQysvGQrlSQmRwtM0IhFuRPBmEfINFUGCTXvB4lBua9zKKIwTwQ sccJGresdiXxim3IqDLemUOtRQ8Oly7GzyLpDdrHb9vb7t9hmpBzFOOwFQS27gRThhUf YV/g== X-Gm-Message-State: APt69E3Q9u/7mDlxftHeabIB2qJP+j2JlNZt2tWX/85saqoVyF/V8+bu PW7EnkAHZzs8y2jZFZNLLbU= X-Received: by 2002:a19:2a5b:: with SMTP id f88-v6mr2150437lfl.63.1529439934950; Tue, 19 Jun 2018 13:25:34 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id 4-v6sm87451ljc.1.2018.06.19.13.25.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Jun 2018 13:25:34 -0700 (PDT) From: efremov@linux.com To: Herbert Xu Cc: Eric Biggers , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org, Denis Efremov Subject: [PATCH v2] crypto: skcipher: remove the exporting of skcipher_walk_next Date: Tue, 19 Jun 2018 23:23:57 +0300 Message-Id: <20180619202357.10805-1-efremov@linux.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180617174959.29864-1-efremov@linux.com> References: <20180617174959.29864-1-efremov@linux.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function skcipher_walk_next declared as static and marked as EXPORT_SYMBOL_GPL. It's a bit confusing for internal function to be exported. The area of visibility for such function is its .c file and all other modules. Other *.c files of the same module can't use it, despite all other modules can. Relying on the fact that this is the internal function and it's not a crucial part of the API, the patch just removes the EXPORT_SYMBOL_GPL marking of skcipher_walk_next. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov --- crypto/skcipher.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/skcipher.c b/crypto/skcipher.c index 0fe2a2923ad0..7d6a49fe3047 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c @@ -387,7 +387,6 @@ static int skcipher_walk_next(struct skcipher_walk *walk) } return err; } -EXPORT_SYMBOL_GPL(skcipher_walk_next); static int skcipher_copy_iv(struct skcipher_walk *walk) { -- 2.17.1