Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5867093yba; Thu, 11 Apr 2019 07:25:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVK32mr3ptU1tHhgxrSFJwMkXhOsN6GRu8U17JffiLI8KEBNyMVxyoUk6OPgK2FhynFzAi X-Received: by 2002:a62:6a81:: with SMTP id f123mr49910839pfc.40.1554992700186; Thu, 11 Apr 2019 07:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554992700; cv=none; d=google.com; s=arc-20160816; b=oHAzC7M5G6LzAsgaFQa/UbsXKvmu9SXF8mBJdUtImI3QAVdQLwAxjgXeEj98VidFfl iHvzZx+XY91eZb+Q0fQvGelaDr3bBed39TkKaQ6DF8VqLb2vM0kYkYS+8uK4GaWpcV0l C8jmxNJ79i64cXm7N1wubc/CuFc9MbQ6RlRKrlwo48ZDDpL1s3mNJNqA5xz4htx+mCUH Q4Wg/mg1adSQSgKIKrBcbMQJx1TrmH/X6MwoYWdiLPvjFkgGSNo+hEV4uumoCCZc/f5f q23/bkHBduPCIDdFFrgWamlW/XeOx5lHQ43hKBoQo8ND1QAV1VCq9Hlq8ZuJy+nMfNvS u87w== 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=n/2Uc/c7hLBI9nJ+LonSeTiSbBWQup3kE+zZQxb/+9U=; b=DeDgpP16UFSFWUeB8UVAEYUjRI+JvynccVRYB+lsBjJeCu8Cg9oqL/GCY4SIHpimhW hMzciFlbWDX7RsghxFhJwAd6YdZGnon8dXgpMywAsmVFTdjun4ZNDKuY6cnYiPsqdTXo WapdPLitXXOcE3jiL3Jzxh8JSP6P6xRQlxDoE65FGnhzsNUcFik2Z511HssB4o7rEvPo ErS2fjvg+7xTxAQkmefO5eynDbvLYZvRZC9gaghhFF0ajHLmaa4Zllb84tq+22AZW4qb uXce1rQ8TVl9JagfsDWDun/dvj2VlPR/Bc2ITQHpmS58xtigDc+cisb5RHA9YGHHNZeF gbQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RATLULHp; 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 v9si5523311pgs.17.2019.04.11.07.24.43; Thu, 11 Apr 2019 07:25:00 -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=RATLULHp; 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 S1726677AbfDKOYC (ORCPT + 99 others); Thu, 11 Apr 2019 10:24:02 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:64966 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfDKOYC (ORCPT ); Thu, 11 Apr 2019 10:24:02 -0400 Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x3BENvlX011093; Thu, 11 Apr 2019 23:23:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x3BENvlX011093 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1554992638; bh=n/2Uc/c7hLBI9nJ+LonSeTiSbBWQup3kE+zZQxb/+9U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RATLULHpzteFwAFxHH/tkDvZ+EcfjwJkZTVAMPxa8+NJ4Rt7Pn914LN+Nx6E55VB2 PY52xBoPFMO4ypU/4ZR/ztroxx0e9c6gXZGWAD0XZPam0oNssbbfK06ESR5yVtB6KG gdVsCjHyGvEi/W4J8nAUq/z8SF5npqtrMGZdLlISWpyD6b0PEPoppmGUpyfjSPmLLk yaKMxuPmzOuvCuqI4sfShSw0+wswo+HK44S3+JlAplMAi1LmJZ7sgSyHuj1J3OC/2o imhzCD+abQNNVTl6mqrME7gjWN2OIaKOkS73Y/PH0BVlAhpYI4nzFGgWIs0U05aV26 h9amWr1poRpYg== X-Nifty-SrcIP: [209.85.222.52] Received: by mail-ua1-f52.google.com with SMTP id n16so2076263uae.10; Thu, 11 Apr 2019 07:23:58 -0700 (PDT) X-Gm-Message-State: APjAAAVDtu8MN71NNOn/K9A6HvFmMgEgYJgo7V10PIzh0ygAlrSo47gC sDkYhbCfFgJ18mEcj0MBlFOBrc8AeGDlYuHi35A= X-Received: by 2002:ab0:1c1b:: with SMTP id a27mr4504805uaj.60.1554992637150; Thu, 11 Apr 2019 07:23:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Thu, 11 Apr 2019 23:23:21 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] 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" , Jonas Gorski , "linux-kernel@vger.kernel.org" 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, Apr 11, 2019 at 6:25 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. > > As this patch changes the default behaving from warning to error, > users can consider to fix it for external module builds by: > - providing module symbol table via KBUILD_EXTRA_SYMBOLS for > modules which are dependent > - OR getting old behaving back by passing KBUILD_MODPOST_WARN to the build > > Signed-off-by: Wladislav Wiebe Applied to linux-kbuild. Thanks. > --- > 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