Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4846072ybe; Mon, 9 Sep 2019 15:53:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDlcth/XIa0XDdUAMV8bKQIuQItJUfBSStnE5iMFSrX4Bxwqyi4BJLaOGO+wxMN/aaLhOA X-Received: by 2002:a17:906:e0d1:: with SMTP id gl17mr21562750ejb.4.1568069604793; Mon, 09 Sep 2019 15:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568069604; cv=none; d=google.com; s=arc-20160816; b=vrpPvxpbbzvyDOieAFs3aQjK/aDVg7j///j5ELfeVTrUFkTYx/X+wrQoBnC0/4TZEx +IhFKeZ8yOsqcmz8GNDwNG1WVqTWYIKhdEBPOyH7WIpw9x7RSWOusO2zcKkC9OFFG2hR DTHY5qM5AgVg70ngPRvxUvaVN2XFfq5le9Bf2GcKirZQRs5gO8wyjtpi4+H6D2cO9O6N 5Nfth2zUY1pc8Bhkn1n6teweiAbYMDxNFuBPDoa7YrZkTne5epZpbkkqENEyfETzEdZr OUBIPuYhuhYAkaSXaolDBvUxhJjXmZk3bfGVWJkXYkNq1URDOAoYx+Aniqnv5EcaRZAG 5WAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=JUGLW57UsVm5dqkHawVFsjR557zZIe+tiYuceaDlomE=; b=delg+IAuCrDlvbX9dko+eIEoqs7We+hiPidfJ4LfXDVdbkdTkRkVT9z8qLc+MiN1nt ZeXI2Q4h3jpVLwJOTENCsflV4andTWtYPJrDCegjtSMoCJ10QvBGZLKLwAQ7nTrljOJL wrLN/xi0pn7kbZ2Kcq/n3ff3jeHqrAH1lc2etp8Dn7UI6mZB8FMqioQ3WwPCcpDwngHF EHgM+73Zydz8en0+qkuPNzz82be7mBgpK8mhvp9vjej3r2qGORIijm9g0UcEN7S+do+w 3DAw321h8B7MkEgfxxTEuOVFx4jyQ1YL70yYGAYzq0vTivav+iBF6SiM5ee0aRTpUGef 8rYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=L+wtOVxb; 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 o32si9767734edc.94.2019.09.09.15.53.00; Mon, 09 Sep 2019 15:53:24 -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=L+wtOVxb; 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 S1729585AbfIIKxm (ORCPT + 99 others); Mon, 9 Sep 2019 06:53:42 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:54370 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729369AbfIIKxl (ORCPT ); Mon, 9 Sep 2019 06:53:41 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x89ArI1L010864; Mon, 9 Sep 2019 19:53:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x89ArI1L010864 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568026398; bh=JUGLW57UsVm5dqkHawVFsjR557zZIe+tiYuceaDlomE=; h=From:To:Cc:Subject:Date:From; b=L+wtOVxbYdZtfMGs0sRygO3/+lILWFRY73LurajYu/oIclqGD5LOQ25fvH291Dicm amEPS9Bu7gu2bIKTHUQHhxiRH4m9yDcmI/qU8n0sJ9Cv/MbCz+IzYbUNFjicpKlsox Dz3616Du+bZSnYOLfc1EvjvLwGk4zbIqy4hPALas5QxXQigQQNamPGQMb25bj7AqPg /E4zaVk0oZZCm/EZBLYxrGPrYPskkkTQbW0NrqiWNeDfCjYk3SZN9me8c2nTbrFwU0 krmIEiz0mRgFPu1yu4yMaEg+64wZkvKoc/9F63DlrflSpw0oLT1zSsmVjldq2DL3Sn CEU/nw/QQVMSw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , Denis Efremov , Nicolas Pitre , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] export.h: remove defined(__KERNEL__) Date: Mon, 9 Sep 2019 19:53:16 +0900 Message-Id: <20190909105317.20473-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This line was touched by commit f235541699bc ("export.h: allow for per-symbol configurable EXPORT_SYMBOL()"), but the commit log did not explain why. CONFIG_TRIM_UNUSED_KSYMS works for me without defined(__KERNEL__). Signed-off-by: Masahiro Yamada --- include/linux/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/export.h b/include/linux/export.h index fd8711ed9ac4..cdd98a0d918c 100644 --- a/include/linux/export.h +++ b/include/linux/export.h @@ -20,7 +20,7 @@ extern struct module __this_module; #ifdef CONFIG_MODULES -#if defined(__KERNEL__) && !defined(__GENKSYMS__) +#if !defined(__GENKSYMS__) #ifdef CONFIG_MODVERSIONS /* Mark the CRC weak since genksyms apparently decides not to * generate a checksums for some symbols */ -- 2.17.1