Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5327407ybe; Tue, 10 Sep 2019 01:51:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjC5fhA7IUffB8FANQMjufSW9NA2VqqkAk9NxgEbLgYUuS6awSxTigvnyrRbRPLq11H9uj X-Received: by 2002:a17:906:134e:: with SMTP id x14mr23584922ejb.280.1568105511957; Tue, 10 Sep 2019 01:51:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568105511; cv=none; d=google.com; s=arc-20160816; b=0HG5ICbDugDwkV9S5RPhCr5V48NJuBMhBDZQHMDt4hRWZsVcyHR5h5GEiw2f9zdzeb ixoP+6wyhiO1PiiOeSxYUDFAeoxcEPBDebTTh64tlVkjmrZvL2DtVgRuTFwpVd+2Li2b 7znMH9DzJqPWoeoP6N8RT/+bBi12mIq8ZQUvdDklgJtyrNIBEWrgTJh4Uzm3MhXSaacK 0oOYLyE4MLmaJxx36PJrRMZr6ij62S4E+9jwrkp/5EGZdtWC7rvHFG06ZiB86PJHrXjN 5Mq5ywM5kpTckq00gDKHafbjZXsE+exwNwibrOHQS+yKND4Cd2XymxGxnspBr9a8x45X GLcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=65QhiyXUvTH0EqT833QjG6Ngl9WRWuM9291xMhi4CtA=; b=BJkyvHYxXKsmEFvjFnbAL4JL8+ZUZ5F4AnVJsRz7/nnsSZC9r14FHYUTIKbRN4LfKL AqTTtByoN/VFzA0Qnwue2z/RJa2wCxATBZ2kmBVmqXxVk6A0YeRDaZY9T7cYOcIw/6zy wtbszzM5+mQctXnQsPSBH2AwHFlRzJXN0fGyA5q97GhatxZGxDzVFS5LQHvoeLoLtu5F Vkh3XC1DfOaxrs3XvIfHdus/Ry6tImY4LrjuNzvpD60lC/+kJf5ZVzpenR4BOhBMDP/R HqSIBAoAfB5WQvxj7V+i0MjyrgI9Xn44oOr0Gnc/P5KF0iFR56CHP9egbtGsyvpTmNbv 6LeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=f4rs2BZg; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=IfQfu3JB; 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 v6si8938552edr.36.2019.09.10.01.51.28; Tue, 10 Sep 2019 01:51:51 -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=@pobox.com header.s=sasl header.b=f4rs2BZg; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=IfQfu3JB; 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 S1732913AbfIIQGt (ORCPT + 99 others); Mon, 9 Sep 2019 12:06:49 -0400 Received: from pb-smtp21.pobox.com ([173.228.157.53]:57941 "EHLO pb-smtp21.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbfIIQGs (ORCPT ); Mon, 9 Sep 2019 12:06:48 -0400 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 5CA9991A03; Mon, 9 Sep 2019 12:06:48 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=Mw+zE4u1Nc8ITHHRwi48kwG1yI4=; b=f4rs2B Zgm4cAJb8FKRYIXBdMnO6gcvaD87w8XiqSy+D5J2UeVZbvZ30b0BHTZ4Fwn0g7EP k9Bxs07qYOxlAm152gKxR8gOiCRRXaKk/S2xWfrYJll7BtpMTcGR3R3ovF8v5lzL AXcCScrAiIfhEa1wcaBGHmnNf2e1bBrWyroMQ= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 5350F91A02; Mon, 9 Sep 2019 12:06:48 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=f5W8o8MLNoQ4vC0NqI61uvY1XxY7d/L27+zthWmdDUg=; b=IfQfu3JBH+UDvExLwmHK02Itw89W3YcVj0Rhx1FTP1sjmItJuUKBjveOcIsB1NzLm7QgNVkvIS8HimHNSl5pJzO7BokEOBsAOd/76OZ037p/u6onufFozj2K4cz0SJN1IokCdlv/ZvCuUZWPaKhewG8HeosZ6S/w0AhRZGsnOHg= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 4498B91A01; Mon, 9 Sep 2019 12:06:45 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id 6AB692DA01B6; Mon, 9 Sep 2019 12:06:43 -0400 (EDT) Date: Mon, 9 Sep 2019 12:06:43 -0400 (EDT) From: Nicolas Pitre To: Masahiro Yamada cc: Linux Kbuild mailing list , Arnd Bergmann , Denis Efremov , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] export.h: remove defined(__KERNEL__) In-Reply-To: Message-ID: References: <20190909105317.20473-1-yamada.masahiro@socionext.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: D209E438-D31B-11E9-80EF-8D86F504CC47-78420484!pb-smtp21.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Sep 2019, Masahiro Yamada wrote: > Hi Nicolas, > > On Mon, Sep 9, 2019 at 10:48 PM Nicolas Pitre wrote: > > > > On Mon, 9 Sep 2019, 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__). > > > > I'm pretty sure it was needed back then so not to interfere with users > > of this file. My fault for not documenting it. > > Hmm, I did not see a problem in my quick build test. > > Do you remember which file was causing the problem? If you build commit 7ec925701f5f with CONFIG_TRIM_UNUSED_KSYMS=y and the defined(__KERNEL__) test removed then you'll get: HOSTCC scripts/mod/modpost.o In file included from scripts/mod/modpost.c:24: scripts/mod/../../include/linux/export.h:81:10: fatal error: linux/kconfig.h: No such file or directory Nicolas