From patchwork Tue May 5 11:54:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 11528869 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B00D21668 for ; Tue, 5 May 2020 11:54:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 97C2A206B8 for ; Tue, 5 May 2020 11:54:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fl8nSvJh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728481AbgEELy1 (ORCPT ); Tue, 5 May 2020 07:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728180AbgEELy0 (ORCPT ); Tue, 5 May 2020 07:54:26 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3FDC061A0F for ; Tue, 5 May 2020 04:54:26 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id g4so1301755ljl.2 for ; Tue, 05 May 2020 04:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uml5U42DUBDTh4vmv37IC5qSO5nYUkK5/4LFg2c0Ji8=; b=fl8nSvJhFZ0g5sbLGBqmv9Jt5aq4btP+PN321WfcrkM1oPwxWcTa24dNUSPmmEeocb M0/kSkMgncARzOWJNF+ASfjXvhDkxi5QGZY7PJtVL3qvrKD24k8UYRPNSUhXOhx6J564 6k+wAnULsYQvmYYLLUG+B+55gLYS9gBe3VPBKld7R5+AIl5f/A4p+QslqkAz+xtEKx6b 3Mg1s/iKCRjUPBqxFxk4UJ13JkOEoTN7XfrNXQqTj4epqqN0zc28k7zscqYo5iFaSLFm 5ZiehNIJSLslbol7hT9Y8z4SG1W8hcrNV3UiPsT4bwssIssZaqS0KJLhzaOr6JdK6VKX 8+Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uml5U42DUBDTh4vmv37IC5qSO5nYUkK5/4LFg2c0Ji8=; b=OzDyqJ+LcmZ+CmBepg7K3wqVzv9CRgWwARFYNO3iLZjT3hZYVqTHcqyfpsuFrrpkkZ 0qkaxaSD/6vGV2+9cVh3tdAGISicrJmSymoFTLNquVmX5W0nY9ouADJNtWjAQrB6Utkq 5i1bvqN76jeehJAHJxcWwWxY9vq39G5i1rk7dahxZ4INJYvl5ZpKbeFORC9T6r+b5gdp CPMhXHvbIrANwzEIoudYlUrUT1HLJkRk5iUauf/+nwH8PaN18RD6AFHaHa7YG+ER+b4Z qUUKYp3W0VuyaeMc7EKOQmjEQvt756UhM03EvxQsZfb4RAuq8kRbYBrdYnA3nNsUKwQ6 fQ6g== X-Gm-Message-State: AGi0Pua/o2ztcFraDSQgDpwY2WZnKtJyy9o+buA5fHZ0rRAnA1aUd9Uv LnD1qG2HE5rULiN+HGIEshI9sAEIDOikaiBs X-Google-Smtp-Source: APiQypJnwDsbvj52jO1SlptQqc2ppigC6TLoB6HZ7LPx7W3OJyppghiHk6hhdd4a8VsxqxOW+U2HXA== X-Received: by 2002:a2e:2201:: with SMTP id i1mr1584565lji.31.1588679664636; Tue, 05 May 2020 04:54:24 -0700 (PDT) Received: from localhost (c-8c28e555.07-21-73746f28.bbcust.telenor.se. [85.229.40.140]) by smtp.gmail.com with ESMTPSA id q26sm1612347ljg.47.2020.05.05.04.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 04:54:24 -0700 (PDT) From: Anders Roxell To: masahiroy@kernel.org, michal.lkml@markovi.net Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Anders Roxell Subject: [PATCH] scripts: fix deprecated always and hostprogs-y Date: Tue, 5 May 2020 13:54:20 +0200 Message-Id: <20200505115420.18765-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 --- 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 :=