Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5583405ybh; Wed, 7 Aug 2019 08:16:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqo3Gw15i9npiZAaqvkvnLgPCgZWrYkFguWTV2Aus9xxneC96mYvxj4wjeX2oaCog6vS7T X-Received: by 2002:a65:52c5:: with SMTP id z5mr8191161pgp.118.1565191002276; Wed, 07 Aug 2019 08:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565191002; cv=none; d=google.com; s=arc-20160816; b=VdnDuBriKQj62mKyoL99+7yC9YVwhfG70GHkyjbJmeqq7bUI+DF0JYc2vJeCGFOGmG +hhN3SKlkhD41KeFWidtEAf2hUXzqJGPn6ugiTrMTijFsvfDHy4WItEEMbtRN+NN102a DyjaMchuc90zjdsr23++zHeG2OD5ITG4W8/ngdlpSasImtA5IbPLybhQuOxG+INQynpx tcR4YOT81xvDKKL6q/CXEcJsprWjYGNVgKcSCdfH6FkJEcVXWE2D+afSfTLKXLsAxQxU /Fplvnq8c2ZRrxLZET62DN8t6UqHjmGaEgRJMD59YQlhmigKjitPaNwoXZPUdyT4ouP8 QIvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=XMNA60wRAOzSL1uB07FT9Mk5JB9lAGHaUwpsWNnQtEA=; b=ZbYjzME8HKa+mMJ9GorTc4Zlg00k4NnHxn7BzsbFTJFNU9Jt7+xJd7e6SFAOZwqRRh s/CT/j+/x97qO47LK0TRoKuEFPLOj7U/SNIxawV80HwQfx532XOrol5bihaS1TZLn9WQ H65YB1G8LRJPY3gIgjQzbEFW5NU0utB6qZLo+OTtudBFQYHtczfaEUP6J9KoumG0dbNd xxWTHNMRQShWukB/3z8Yxkk+Ofo+7aYhpwx5dyS4Yx7wKjlr/Bm8WTYs9rVbIVPMmqxZ e+flI8zqdLVyIxxxWZZvZdNmEAua8ZSyU9GH747A0eKaH+EalAL2hXCMHC2PM58t8vWv bDgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=G94bXiS8; 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 m99si126219pjb.107.2019.08.07.08.16.24; Wed, 07 Aug 2019 08:16:42 -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=@nifty.com header.s=dec2015msa header.b=G94bXiS8; 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 S1730147AbfHGPNG (ORCPT + 99 others); Wed, 7 Aug 2019 11:13:06 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:17775 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726773AbfHGPNF (ORCPT ); Wed, 7 Aug 2019 11:13:05 -0400 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x77FCnrq010499; Thu, 8 Aug 2019 00:12:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x77FCnrq010499 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1565190770; bh=XMNA60wRAOzSL1uB07FT9Mk5JB9lAGHaUwpsWNnQtEA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=G94bXiS82+L4z619k2H6+p8sx6dXwiPhKN0AiTNVX41HeFvgFRTla/SrlegWf69nB lbfi8xY50vucLOObFV31c9uTlEqjohIaC/8BITQ8B53u4WicL9Q9/VtVmH2gHU2nup dOtQd0X/RQRq0PIbzdJ/ONs8IvM3HiXHM8z/gmEW9qelWhyPQ9jRZ3Gx/ko2aIhsfj OAfezTFbSZPU7/CqZlZN3bDNhrimFf0uxHE6P/0jMihdBjKAYuSYBHfx18c934FZD1 sPpv3+PkqBkyg/5rxxYU+tW80WTcJ8jRvdYdURgiaCLVDA4Pxy9/I1HRmEDywQQdjj uHGrJJd3nL6XQ== X-Nifty-SrcIP: [209.85.222.54] Received: by mail-ua1-f54.google.com with SMTP id g11so8330440uak.0; Wed, 07 Aug 2019 08:12:50 -0700 (PDT) X-Gm-Message-State: APjAAAVCCrBgx8UwGGI6j2jw+x0lWUDbK0NQFWvxbjxCvtdWUJ0fdIre RIoflfTH8sTsQ90AJnbBSF7sdz2c18DlaccbD0Y= X-Received: by 2002:ab0:234e:: with SMTP id h14mr5964979uao.25.1565190768849; Wed, 07 Aug 2019 08:12:48 -0700 (PDT) MIME-Version: 1.0 References: <20190714152817.24693-1-efremov@linux.com> <20190801060657.5932-1-efremov@linux.com> In-Reply-To: <20190801060657.5932-1-efremov@linux.com> From: Masahiro Yamada Date: Thu, 8 Aug 2019 00:12:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5] modpost: check for static EXPORT_SYMBOL* functions To: Denis Efremov Cc: Michal Marek , Emil Velikov , Stephen Rothwell , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 1, 2019 at 3:07 PM Denis Efremov wrote: > > This patch adds a check to warn about static EXPORT_SYMBOL* functions > during the modpost. In most of the cases, a static symbol marked for > exporting is an odd combination that should be fixed either by deleting > the exporting mark or by removing the static attribute and adding the > appropriate declaration to headers. > > This check could help to detect the following problems: > 1. 550113d4e9f5 ("i2c: add newly exported functions to the header, too") > 2. 54638c6eaf44 ("net: phy: make exported variables non-static") > 3. 98ef2046f28b ("mm: remove the exporting of totalram_pages") > 4. 73df167c819e ("s390/zcrypt: remove the exporting of ap_query_configuration") > 5. a57caf8c527f ("sunrpc/cache: remove the exporting of cache_seq_next") > 6. e4e4730698c9 ("crypto: skcipher - remove the exporting of skcipher_walk_next") > 7. 14b4c48bb1ce ("gve: Remove the exporting of gve_probe") > 8. 9b79ee9773a8 ("scsi: libsas: remove the exporting of sas_wait_eh") > 9. ... > > The build time impact is very limited and is almost at the unnoticeable > level (< 1 sec). > > Acked-by: Emil Velikov > Signed-off-by: Denis Efremov > --- Applied to linux-kbuild. Thanks. -- Best Regards Masahiro Yamada