Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1855699yba; Sun, 7 Apr 2019 02:06:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyc30GG85Z2b2sIRGEw9RlTLyyTf682bGJMtAblXKCyauYq74qSnvhyQli7ePMdYMeBTGY7 X-Received: by 2002:a63:6942:: with SMTP id e63mr22300617pgc.102.1554627993694; Sun, 07 Apr 2019 02:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554627993; cv=none; d=google.com; s=arc-20160816; b=OXOcw7LTPPxeZDIMrGNkGjJne8tlxESDoWR1DAuqc8uVVcx/JOLI9tgyXq9qgtdvau B1JJDtwpLjHw728xbX+PPEIQhDUmfCAj5LiDNEDfjao2muPYBf4VhZaSd7Mb0Q4HZlWS LVHBC12lrEpM+FLFS40bokChXR30PUh3d+U3aq4bLNhqz1adVkeSfmq3ikJuytLAo+M3 0GfvR0l6nXea9p73IQk4xCsi0/6i8UWNgsWNmwG6YhS054msVWzPbLIxaUJrGGvu4+d/ Z8CiB4t3AHQIOFET3yWUUTL+VsUHqlFvju18MKRDSHls0Q7+v6UW6QyyL7wbEdLid74T ++OQ== 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=kLpXAcvSQHgloL1x+icxlYdRnxTaQZINJIRzBf5b6dc=; b=rJRkN/63hZ5PgeXciqfSZaEHojbzx/krwbrKZkoO8zbyeHQ/hSdQF7ETd5vAtwNxTL 8JwiHblgfHXRSOxAjZyC0qnfTDUU1SAV6grLsOZshFEFOcPpIGGxAQzSoj5pihbxsKek UGF+ynomHr1y5RHnd35qTFCb60N8QQe6nNPgwA3CgsIymiurMmRbiOzlj3JNHBfZHUFE EzuQXidjPVYWqyoTcKUD3OcyWNdgJZ/qAW5WShZRI5jwUD67AkHeVK0G6YfSwJ2ftlil lraIi6xLkSrjPR655AVPJDHYnSivWx3hgtexzIKvoPrtdQY/yjI3FpizhEUoeLYMJcoE Jp5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JKkpyvWw; 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 q4si24476236pfb.264.2019.04.07.02.06.17; Sun, 07 Apr 2019 02:06:33 -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=JKkpyvWw; 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 S1726329AbfDGJFg (ORCPT + 99 others); Sun, 7 Apr 2019 05:05:36 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:33941 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfDGJFg (ORCPT ); Sun, 7 Apr 2019 05:05:36 -0400 Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x3795RuM018906; Sun, 7 Apr 2019 18:05:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x3795RuM018906 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554627928; bh=kLpXAcvSQHgloL1x+icxlYdRnxTaQZINJIRzBf5b6dc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JKkpyvWwG9CVCBZbBEnXPNiWAf4689dBIKJMaD28zfDQ6Fo9YpDqruvEP0SDRs72H Nkfs8GvmT0+ZHFvFq0tr5mm96oJttbTkPr7hrWDe7AhXs6lkCgNx9Gb+O0DG+y/qvH ndVTN23e2ZEZk3Am8rle7KQXa7CUtH2G2JKMTgNZBTcTqjflfvWTU6pcUb2Q6GEC84 CWHHhdK9uijUTe23oG+zy+J/UXwXvVm73dZ+SuUHXC4tYjm7S/yTF+NBlrVYKwFhLw tnyjO/HoN4idUcPEzDfAv/3kAhxYI9FS7pZ1Wi6W99H+RQ+Vvs+qEoUSOSRkoCTQNc pPonyHN1X/R7A== X-Nifty-SrcIP: [209.85.217.43] Received: by mail-vs1-f43.google.com with SMTP id t78so5905012vsc.1; Sun, 07 Apr 2019 02:05:28 -0700 (PDT) X-Gm-Message-State: APjAAAUSnxwOoDgkLKe/V0jzz0PbLzmNoncBKNBinU4O8NTvfHMv8P+b HO8IGulgdS3OMvUq8y9W6GQVPKnypRhpM9KRrCc= X-Received: by 2002:a67:f714:: with SMTP id m20mr13807543vso.211.1554627927315; Sun, 07 Apr 2019 02:05:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Sun, 7 Apr 2019 18:04:51 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] modpost: make KBUILD_MODPOST_WARN also configurable for external modules To: "Wiebe, Wladislav (Nokia - DE/Ulm)" Cc: "michal.lkml@markovi.net" , "linux-kbuild@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jonas Gorski 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 (+CC Jonas Gorski) On Tue, Mar 26, 2019 at 6:58 PM Wiebe, Wladislav (Nokia - DE/Ulm) wrote: > > Commit ea837f1c0503 ("kbuild: make modpost processing configurable") > was intended to give KBUILD_MODPOST_WARN flexibility to be configurable. > Right now KBUILD_MODPOST_WARN gets just ignored when KBUILD_EXTMOD is > set which happens per default when building modules out of the tree. > > This change gives the opportunity to define module build behaving also > in case of out of tree builds and default will become exit on error. > Errors which can be detected by the build should be trapped out of the box > there, unless somebody wants to notice broken stuff later at runtime. If an external module refers to a symbol provided by another external module, this patch will turn the warning into the error by default, which is probably a bad idea. I suggested a desired change in the following. https://patchwork.kernel.org/patch/9980691/ I am poking Jonas Gorski if he plans to send v2. > Signed-off-by: Wladislav Wiebe > --- > scripts/Makefile.modpost | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost > index 6b7f354f189a..fec6ec2ffa47 100644 > --- a/scripts/Makefile.modpost > +++ b/scripts/Makefile.modpost > @@ -78,7 +78,7 @@ modpost = scripts/mod/modpost \ > $(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \ > $(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \ > $(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E) \ > - $(if $(KBUILD_EXTMOD)$(KBUILD_MODPOST_WARN),-w) > + $(if $(KBUILD_MODPOST_WARN),-w) > > MODPOST_OPT=$(subst -i,-n,$(filter -i,$(MAKEFLAGS))) > > -- > 2.19.2 -- Best Regards Masahiro Yamada