Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1868522ybk; Mon, 11 May 2020 06:21:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIA2AelhAA2swPFFI6B0vh0ZgVZhe+jfSkAcooxlWm4iDfcd0AbYLm7enFfyDCDWFCcLZoU X-Received: by 2002:a17:906:328f:: with SMTP id 15mr14095611ejw.33.1589203307833; Mon, 11 May 2020 06:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589203307; cv=none; d=google.com; s=arc-20160816; b=QMHVhOg2OSirQa1D8ZABygMeB/Ml9OJ36URNvQhYJsnenX9iRt2kWq3LbDf5cJfe3c z6tdrDB896uM4ctz9CMKp0lW6Lj7M74NruWN/c6fBQZpbTIW7bilfeSOEUIv5gqEMeVR 4IeeKubj3EP/mO01LQpkRmGZ29kpZdnnJewHLVdpHz+rYZBsFXKGX3zUmoxU8/LNzRdE lNok0q/iz8MU091fX0m5UjRzu6HARPOaZlztODcI11tjOyuKKbl3tF7//7pb+JY2/lX0 GdRd2XD98o+wg9MYefiYX6N9adfkW0dkvXKrh9EOkzVc/FXTqvDhEZcmtNNJCkOFkCzR 2ayg== 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; bh=nSnS7Ie9UNZzxFtT0FPY3YdLhDlPLgdcToB0TW/eJg0=; b=KkKEktUZrJzKWQG5h7sbH/tYt0oDVWni6D1ciUQwDIBsY1toqAVNRykF28cn5fgJcp LDm4EhjOczWZkg8bkz2QT5mtmGaRSH5BOZi4dHwcGHoELv7CEn33vX58SJGpRwdtvtuA Ygw0RVJXZHZ75u6g1WTvZmiR71GrI2GyrNqGUMkZdXmtCjOJF5NF02uzwHQ51WrI5EFC SCuFDV/yp7lp4unDhm6zDjzOTTS7fEgGEQq0phRgQ046LVC8+GM+/wvFFz+RsCbKaqY9 9aI/g3Jfm3ECzZATsIwWVPjxP+5iFeXNdzJdvmeCjRvQFZcGSATxxPuq7IEtI5hBr7MA IWJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JoL4nZBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn23si6072788ejb.331.2020.05.11.06.21.23; Mon, 11 May 2020 06:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JoL4nZBS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729287AbgEKNTL (ORCPT + 99 others); Mon, 11 May 2020 09:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725993AbgEKNTL (ORCPT ); Mon, 11 May 2020 09:19:11 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC4FFC061A0E for ; Mon, 11 May 2020 06:19:10 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id s9so7490212lfp.1 for ; Mon, 11 May 2020 06:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nSnS7Ie9UNZzxFtT0FPY3YdLhDlPLgdcToB0TW/eJg0=; b=JoL4nZBSDZztmVrBLOHK7hCH/R93C83xJ8g+4nQTwPOC3pvybxZKQ8jDzL/Pn16UcC OW7PpuAjZBExsCIE+cfPrBJzeJ9eUTgpr0IQ3gr6sDH+92v8UvMCjopEW4ZpS2RqphXg iPp0tSNcmMHyze+geUPBeMLreZgMirsjuT/SqkTLn1y3vp4o3eBmRcRtM1T83uhc/mtm guoHXI4v33wpgxZKoXEPQ+eNT7mYyrcySBEftYTouad+MGWtGH5KUOjk40cFiFpRbgZZ 6sLaDQtaimgVJHNxtMXqUTtZ2JFeBldWgk8jbSc841TWeU8KfzOLVpG5B9c0JtwOHg+d 4vMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nSnS7Ie9UNZzxFtT0FPY3YdLhDlPLgdcToB0TW/eJg0=; b=qry2b2RYot4k2SFxEQWXadnc+7tjcnR92LQhgFtDmITksKq57F9nfC4CpyuUg+F/VP +RBALZu74CohdMr+rRgax1JHNymapt7LNzsY63FItwUIH59a8EbtS4lB4RZ2HFzddUSU 0kvMyPUxJ1JHu5ZdxQhbQRLHCIShCvEYRbzZ1z9slRflliplY86lZdhc8cKxUf9OU/De xp648uEK61N9ka4Hp7NHc1bLUPjWvhrYlhNQFMG9uslvYtnQDEl4lDGAL66cjc+keb3S 2omfl1AH4G8MKwCD5WBlLx9cZu3Nv3AXwaY+g7AOv591m+phAhxKyi87mm8o9r3tnQ// UnCw== X-Gm-Message-State: AOAM53172NAU1f8prI+gr4V9Qgtx3YjdpKhHcgc9OD5T74PUot+OXm8m OBpFmg9lLChG+VPCOI06SoYDf61OPUtgwpIu3lK5aA== X-Received: by 2002:a19:c6c1:: with SMTP id w184mr11135402lff.20.1589203147183; Mon, 11 May 2020 06:19:07 -0700 (PDT) MIME-Version: 1.0 References: <20200505115420.18765-1-anders.roxell@linaro.org> In-Reply-To: From: Anders Roxell Date: Mon, 11 May 2020 15:18:56 +0200 Message-ID: Subject: Re: [PATCH] scripts: fix deprecated always and hostprogs-y To: Masahiro Yamada Cc: Michal Marek , Linux Kernel Mailing List , Linux Kbuild 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 Wed, 6 May 2020 at 20:36, Masahiro Yamada wrote: > > On Tue, May 5, 2020 at 8:54 PM Anders Roxell wrote: > > > > When I did an allmodconfig build the following warning showed up: > > > > scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead > > scripts/Makefile.lib:12: 'hostprogs-y' and 'hostprogs-m' are deprecated. Please use 'hostprogs' instead > > > > Rework to use the new 'always-y' and 'hostprogs'. > > > > Fixes: ee066c3ddf7b ("kbuild: warn if always, hostprogs-y, or hostprogs-m is used") > > Signed-off-by: Anders Roxell > > > As Stephen Rothwell reported > (https://lkml.org/lkml/2020/5/3/392), > this warning appears by merging the > two different trees. Right, I see. > > > You sent this patch to the kbuild maintainers, > but samples/watch_queue/Makefile does not exist > in the kbuild tree. oops, I'm sorry. > > > Also, please drop the fixes tag. I will. > The commit hash might change. > > > > --- > > samples/watch_queue/Makefile | 4 ++-- > > scripts/Makefile.build | 1 - > > 2 files changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/samples/watch_queue/Makefile b/samples/watch_queue/Makefile > > index eec00dd0a8df..8511fb6c53d2 100644 > > --- a/samples/watch_queue/Makefile > > +++ b/samples/watch_queue/Makefile > > @@ -1,7 +1,7 @@ > > # List of programs to build > > -hostprogs-y := watch_test > > +hostprogs := watch_test > > > > # Tell kbuild to always build the programs > > -always := $(hostprogs-y) > > +always-y := $(hostprogs) > > > > HOSTCFLAGS_watch_test.o += -I$(objtree)/usr/include > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > > index 3665b1a0bc8e..abdba70f33a1 100644 > > --- a/scripts/Makefile.build > > +++ b/scripts/Makefile.build > > @@ -15,7 +15,6 @@ obj-y := > > obj-m := > > lib-y := > > lib-m := > > -always := > > always-y := > > always-m := > > targets := > > > Why are you deleting 'always'? > It would immediately break > the downstream Makefiles immediately. Thank you, you are correct. I will send out a new patch shortly to the correct list. Cheers, Anders