Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5249645imm; Tue, 19 Jun 2018 07:28:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIUru1d2nAOd54oibtTA/nFem+uWyKlNqbJ/qXIsCLe2dzysUdbk7LdiGplhjX7aHoFpFvq X-Received: by 2002:a62:494f:: with SMTP id w76-v6mr18245759pfa.152.1529418534125; Tue, 19 Jun 2018 07:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529418534; cv=none; d=google.com; s=arc-20160816; b=BZ2taz5RsGa5H1QANVJSqCuORCz/vjCmig9tohnuKeuoHCd0mkPSzhA96WmRv8oDY/ 8Fog9Jk2pKaEaA/ey3JOmWzziOrm0/O8vNZBL/L57gKczBUeTNYs1PwakBUxew+afB5x 7y6wgsrh6p2Hxcxa7/0cXVX52eSDXl6WvXWOGpZp/FpcAwDNPqXM2KL+y/FureShiAfm NtY63Tpg/7+CJOBhSqwyfiWy8QV0hGv8eyGZ8tq+QNQ8Gis7GWgUCYZxMritviO+fR4o iKc+11k6sabm4fGdeQ9Cp4j4+PRf3By062jN+ooHSgBfExkfwy/AZsnAKLCRnpWoHAaK N50A== 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:arc-authentication-results; bh=BTd9npVRw6gzDkTWAQID2jsFSyszj4agex9l8dzf/XE=; b=0pWM7gsowpHcrgbbNcaYwvxlThlYxI1doPesRpaoAb7VNjUyNMk+ukgN4KZMEulwd2 CyxNDoP3JPU0BhJtCUiB5Uw8GU17N4+6LfHdvoiclSJoUe2vF9Zu2zOGs0dxx3aZj/U0 iS+/OHlhVtrGfZrEdzEjwbtLQyRNxvzVri/Iq3UBOlzfINvDIuX7SKNM/VBPtFfZ2p3T IPrE7OijNU3JCtnIlhyZyN0Myhe3+oLJb9AbV0yr1U5KYDO+N6mSgXVzJpXcWEXSzdOO wyXUglidDV2GOkBJ7yTl5l3etTFXGDYeyyCLiQgYP2DtN3NKkAWvWbfgYoxcFFKDd6zF A3rQ== 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 c13-v6si14097916pgq.316.2018.06.19.07.28.39; Tue, 19 Jun 2018 07:28:54 -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 S1756918AbeFSO1j (ORCPT + 99 others); Tue, 19 Jun 2018 10:27:39 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:34840 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756539AbeFSO1h (ORCPT ); Tue, 19 Jun 2018 10:27:37 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fVHbW-0005kR-H7; Tue, 19 Jun 2018 22:27:30 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fVHbU-0007Cr-1G; Tue, 19 Jun 2018 22:27:28 +0800 Date: Tue, 19 Jun 2018 22:27:28 +0800 From: Herbert Xu To: Eric Biggers Cc: efremov@linux.com, "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: <20180619142727.7kvtuimjufvdacqn@gondor.apana.org.au> References: <20180617174959.29864-1-efremov@linux.com> <20180618172803.GA8022@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180618172803.GA8022@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 18, 2018 at 10:28:03AM -0700, Eric Biggers wrote: > 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. I agree. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt