Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2503261ybe; Thu, 12 Sep 2019 10:20:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTMVVSfAxFu0q115Vk2dctOCx5SClDu9Ih6LCJDzKdLV1f7pWGDKRaHhT/w/7j73lx0LAN X-Received: by 2002:a17:906:4985:: with SMTP id p5mr35338860eju.106.1568308845532; Thu, 12 Sep 2019 10:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568308845; cv=none; d=google.com; s=arc-20160816; b=ypTPHKe/YobeqRnWPnIGVjdaeyhnhzbhn/VFcys4fZ01+77HcX7IFomWJ9F/qyV5Oa /znq4h2ULUUpNAvKbvTPBPqFPQokB/ryMEABpLiXUzHKaC1T6duAhE2PcsaZH4KOHk3x a5phNH262hk4GdcgRpSgrlfKZ+EMarQFsa2Q5mJRr+Z+0hSgmqHfrBpOLGu1/t+5CrRc TUG4Vnldtgeop6xQ090VDs6vByIcfcaUNiyyCUP8ubPy8VNh1YXpdn3xv3Jqy41+I3r5 yQ+3+5dPDI49Id6azQr7jZHM4pNIXP3QWfrVfaUotZ9lFUavq6cL78NLGkgek8L+Dnj3 9sug== 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=0+B2s1BHeRtBzhZHTUV7cDcSQ77zkpQhfIda4L+RBiw=; b=zA1hz3u8uyXcgZAIFPitACrRhuOVC6w2SOLUwVQx5puv6D3f1Q1hBDCWgCfN+lqp+o mJI6EM6Ch0q4hTEdTzH+NlODboaqWHpJfAiMRNRipHj4amVOi+eR6HbQbxMb6NRVfdiq INrX3oWJeLv+6BqBAtQNxwoKpkg68EBSW1Avi3DDOG6lJ6+In9R+I8DomS/qAfztg4SC UgUrX1mFVZxsJRfp05b/wLihZ8rWfwq3Lo7hHCWn8xVFRngoHOsK25IVG+C4PJrXAMfH tViaWXDa85N0hb/ERw54VNNYkgxjuN4FCexh9GbNMzHNnT/UpEsi0jP66BP7jfjlp1L4 ugXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=o2SScnqe; 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 y8si15479193edd.355.2019.09.12.10.20.21; Thu, 12 Sep 2019 10:20:45 -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=o2SScnqe; 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 S1731376AbfILLtT (ORCPT + 99 others); Thu, 12 Sep 2019 07:49:19 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:18090 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730680AbfILLtS (ORCPT ); Thu, 12 Sep 2019 07:49:18 -0400 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x8CBn5nw001321; Thu, 12 Sep 2019 20:49:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x8CBn5nw001321 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568288946; bh=0+B2s1BHeRtBzhZHTUV7cDcSQ77zkpQhfIda4L+RBiw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=o2SScnqef0V5KdEt6IWMpXhatQgQ6RbDBh9pu8kvH70twCSUsCdO9b6QNk8OKv6YW ZltvjfGliJrAN4rk3RD7yIXjOXfMqAOGRdiMDhwSLPNArsss/S2B5juyaWSqoyH5oN VzP35fLGx00J5dJp6ZlQ+FsnwqoKqQyKe7WqFFRtG82Z5eC8jdBUwm9IGVY30FsvyZ 23FiExEoGxb50ZesGozWBAdcjkcTBIsCGnkcwJY5DIjOxuAoRlPyL35jHcn/Q4b67M HKrDuzyYovg3EdDSKHz4eNLMjYzFCQ4a/7ZqVaC84WCviktkBlXD7ghT3dXUmT7Nb/ +GNIr4wy6nIrA== X-Nifty-SrcIP: [209.85.217.51] Received: by mail-vs1-f51.google.com with SMTP id g14so10432092vsp.1; Thu, 12 Sep 2019 04:49:05 -0700 (PDT) X-Gm-Message-State: APjAAAVkUEJ+sseSUTQBQdiB3Iu4pAjiKbJ2Y1LHXH2N4a8c/uP0yWSy xcBA7E9olPYg29AanTj5zhqShmxAyUZLNLqOU3Y= X-Received: by 2002:a67:f496:: with SMTP id o22mr22508774vsn.179.1568288944787; Thu, 12 Sep 2019 04:49:04 -0700 (PDT) MIME-Version: 1.0 References: <20190909105317.20473-1-yamada.masahiro@socionext.com> In-Reply-To: <20190909105317.20473-1-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Thu, 12 Sep 2019 20:48:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] export.h: remove defined(__KERNEL__) To: Linux Kbuild mailing list Cc: Arnd Bergmann , Denis Efremov , Nicolas Pitre , 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 Mon, Sep 9, 2019 at 7:53 PM Masahiro Yamada wrote: > > 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 > --- Both applied to linux-kbuild. > 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 > -- Best Regards Masahiro Yamada