Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp314853ybj; Wed, 6 May 2020 18:33:59 -0700 (PDT) X-Google-Smtp-Source: APiQypIXQF0RL2Sg1VcpFpmNSv28GLRo4dz//i/69KMr9t11Mj9Lm8N6V9FhVWzfDE8BfC/YvfyH X-Received: by 2002:a05:6402:95e:: with SMTP id h30mr9633810edz.117.1588815238867; Wed, 06 May 2020 18:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588815238; cv=none; d=google.com; s=arc-20160816; b=ObCveUULH11TC0YVfoZe8mGexqFjAP+OrsXHiu13yUg0Uz8W3Ivcp6kwBrB7f7eQMn JtIi7lwROpwxqg7+TZl0eSpeNIwaXx9O8ed8lBFd1zovfE84fyzMh9v9gTF95DU3sVX8 /1EeC75K7hekjqMhTRSXDdqkILWi6qBSlY+gcx87A/JpdTA79Q4R933tWBp5CwoASaQd jVE/sQN+qO7AJP4QLy2lUidGQK31n66gEWsKtpXJHeVZKfjfuFQI9tItSCgZfYujdFEM UMtkaWhcrd4cb6Q5xuMuyb4UWTiMpnf+yf831k7tc7o5Gp6pHbW7X80E2Kqg4N+sjfdt 3pHA== 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=wbaIwcHbiAi9QFigRcq0m039Les723waOhEs26jAtfw=; b=b74+i6TPrCNmd8y/fi2wiE0aV3jjKk0OfL1++vO0+5UHz+cSR6GXQtcb1wCtpAA4Kj inkgFJDvejm/XSk+qeiK6fhrHPebPt0PgZLaFlyWHvmIuPCTQfAdY61ugp+2gPiuRc4S jHVj5j46fsgSdf0sZcSj2SopoPk+l8Rh+0TDGYDV7CXkhlviuB2R5/OjNacSaeNcoFM2 DsQQj7efk+RqwEkrkAMo8Jn6q0ZgkjP1FggLdBizX615D/ZYQ15gxB5uSIUsEZHk4fko SQDuogxSAtFClkjKmGtgD90eSfzoCzac7bD5M0W1fB3+GI8BNC46PzrROKBYyw8THjB4 LBDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=QGLf0HjL; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si2395770edb.156.2020.05.06.18.33.33; Wed, 06 May 2020 18:33:58 -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=@nifty.com header.s=dec2015msa header.b=QGLf0HjL; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730303AbgEFSg7 (ORCPT + 99 others); Wed, 6 May 2020 14:36:59 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:54822 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729757AbgEFSg6 (ORCPT ); Wed, 6 May 2020 14:36:58 -0400 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 046Iai4k018523; Thu, 7 May 2020 03:36:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 046Iai4k018523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1588790205; bh=wbaIwcHbiAi9QFigRcq0m039Les723waOhEs26jAtfw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QGLf0HjL5TBDfB6xTHLb4X/nifP3TPUngISgC+amRyt5/ML+RJQ3n2vOpFueN7eQ5 xcfxiFnHD7wrASBMBcs9WRkNQ/Q5OMJgmgjzQiStTM/7cZlxRoIg/zVG19A7iRU+Jg iRPHLFP1GIQxcks1i59Ldp30WkRO5roRHgqSUgIN3I/k1dM//Zw5Y1eP09fsEHfh6I zy7v9mIhSw1lg7AsHjsZJfSHDbuORy8DYMnNI2BSz3Vex75VSHCQkgSFXg7ONFmQvF Q8Eu40aEW5JoIR/v1IvjRuxZ0uq4K9sUEw0giZ1sU1N9ECbRwJWn9AEBN/UF5nwNpx tpOIIKAGfBylw== X-Nifty-SrcIP: [209.85.217.42] Received: by mail-vs1-f42.google.com with SMTP id x136so1686052vsx.2; Wed, 06 May 2020 11:36:45 -0700 (PDT) X-Gm-Message-State: AGi0PubDa/EIqUvR4+CU8ct6JrWWpF99awDP8OawI68nuvXXexu/k5k/ Jkmq77WsTfAcKW1XoyyRQtlBMKMU67M0FzYpkVI= X-Received: by 2002:a05:6102:3c7:: with SMTP id n7mr8677259vsq.179.1588790204256; Wed, 06 May 2020 11:36:44 -0700 (PDT) MIME-Version: 1.0 References: <20200505115420.18765-1-anders.roxell@linaro.org> In-Reply-To: <20200505115420.18765-1-anders.roxell@linaro.org> From: Masahiro Yamada Date: Thu, 7 May 2020 03:36:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts: fix deprecated always and hostprogs-y To: Anders Roxell 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 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. You sent this patch to the kbuild maintainers, but samples/watch_queue/Makefile does not exist in the kbuild tree. Also, please drop the fixes tag. 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. -- Best Regards Masahiro Yamada