Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4184250imm; Mon, 18 Jun 2018 10:29:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKgr7xlHhD8LjETgxpsiXoMca9fZjNPDyYBkCb6+m2qvzDLDolJP3xV8rwQCBKPLqrQSGXx X-Received: by 2002:a62:a054:: with SMTP id r81-v6mr14379902pfe.10.1529342946752; Mon, 18 Jun 2018 10:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529342946; cv=none; d=google.com; s=arc-20160816; b=tj6Y9uP/75w7Gdp3LGegY1WgqvBv9VaIkyP9vWWdC51zCoyl6IPLvoxvGzbMLY4aHm 8lnwjJZrT0rtbPyADolnkmWbPGYBwLo2/R9vIk9loIBAKPbXdMReL3KspruH9fh+UrLx xVpH4IPEt1M6BZCEnETl8DNR+MoRSq2vLPHcyS6hWvfCzN6BuEUeLNlZynmfFup2lajm Ok+INO3k74draIPFLV+kYfKbAiwWsNJPNMYeIwKhcvybepKMhCy/OKfaoJJgdEMULWYh 5ZLuExQzEGpCBMP8Cii5pVQt6+FNNodzzF6f+k0nq54OYqAzjwjs3uHLPPjKDclO43NH 47wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=usOd83h4X1BW/PHIq2Khx7PTLKe0GW+IESd1VM5Klxk=; b=j+lv4ffb4zzua1pZ4bCGvGJnpz9STEVPFJQK9dLcq5sQ/VmDWyPvL8rzwhczcyV2q8 kl/OYKje2yY0l4mFgHMw4fzkW6yo7ilOtChcI03QnkjIurV0QC45++NpOMrV7BAfTyX9 QfRY8PDSgsSvQ5aX4CksQUF07Yqc+a6dBAvoV26+CkuRlJ2gvjez5e1lPnNWzS2pEDDQ loogKDMNJBNPX4hLRii2yOKUXhXXUripCKaeU4WnW5962lbur7gGmJ3UycvYoTgabZwY Mj1EMXIesv7Hk0xzFu4E+MEnNFDZxfnpJRxmrqNDtU3oFzqN/tdaN6MVidYL8U6TF6SQ P/2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zwq8he5k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p76-v6si15320655pfk.275.2018.06.18.10.28.52; Mon, 18 Jun 2018 10:29:06 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zwq8he5k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935344AbeFRR2H (ORCPT + 99 others); Mon, 18 Jun 2018 13:28:07 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34482 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755035AbeFRR2F (ORCPT ); Mon, 18 Jun 2018 13:28:05 -0400 Received: by mail-pl0-f66.google.com with SMTP id g20-v6so9407216plq.1; Mon, 18 Jun 2018 10:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=usOd83h4X1BW/PHIq2Khx7PTLKe0GW+IESd1VM5Klxk=; b=Zwq8he5k83Pq7ysb10IoFXx8w2+mkvrMQaLBQvAX0RtUjCZ1jIdoxd4McC9qJIILh+ k1ekq/dknqiXY5/rzTrNL/3DHxEnHEqyTFYtIVqTb77QebqV72RSX1aS97WO1nvygjDf P8j/zYiW/70OuHCfRMsdUHpYwu0J7FemsUfAcTAIUZWiGVnZ6T4TiBBtbe+Et5WTBvJt MdJ7+ctDos3C88dGSMe36OzLFzvxdgcDYLv8NCBd8oZRsOWL4wFmAFqCnbV1CO3Z7tUv FzNYp4Ow0WyvKmR6cka7iim77gR5XO1/ZDK49bMxakn9vPMG9iTTjIOHGQ7/fkFXx3eD MuZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=usOd83h4X1BW/PHIq2Khx7PTLKe0GW+IESd1VM5Klxk=; b=o4fFZ+Kst5C5KpFFGWxBQZmpb0+p9AUeTk5J5bt2HVz/I0wwdmhyPiC2aWdBOU7rRr LIeDNXk3EQLQ5bi5xmZ/IwNjz7m6N2eKwBte0q0T+lHGiSHLbUNPJuluehSEtR5UzMHw MVShLiJ1TRUZZSYkgtdqdGQKI2xeHc/YAvyvZRfMZupLZ6sffIZ04BdXUzW25VSrO+zX lGx3YRVcs4FoyB3odXeYxacjsgatrQEXdjdY3axzI5pdEsiTvt2bjO/bxkroFlXn8iUl Kxb+4Cz8kZQCdOOlXKOuGaV/LB7L7QerbibWny51dqBG1nzDZagZ6miA0OfFCzuP8KcR RO6w== X-Gm-Message-State: APt69E0zZITKpvryUBd0JOEUvDyaJvlkh2UsNKszHqtKmBQqaVKolbPf n7h03zDQUE2xIEJt3pJeJdo= X-Received: by 2002:a17:902:b110:: with SMTP id q16-v6mr15105376plr.286.1529342885370; Mon, 18 Jun 2018 10:28:05 -0700 (PDT) Received: from gmail.com ([2620:15c:17:3:dc28:5c82:b905:e8a8]) by smtp.gmail.com with ESMTPSA id m1-v6sm21906828pfh.155.2018.06.18.10.28.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 10:28:04 -0700 (PDT) Date: Mon, 18 Jun 2018 10:28:03 -0700 From: Eric Biggers To: efremov@linux.com Cc: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org Subject: Re: [PATCH] crypto: skcipher: remove static declaration of export function Message-ID: <20180618172803.GA8022@gmail.com> References: <20180617174959.29864-1-efremov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180617174959.29864-1-efremov@linux.com> User-Agent: Mutt/1.10+28 (db52f11e) (2018-06-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 17, 2018 at 08:49:59PM +0300, efremov@linux.com wrote: > The function skcipher_walk_next declared as static and marked as > EXPORT_SYMBOL. It's a bit confusing since export symbol means that > we want others to use this function. 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 > that such behavior was not the original intention, the patch just > removes the static keyword. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Denis Efremov Why not remove the EXPORT_SYMBOL instead? It has no users outside the file. - Eric