Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp166845ybz; Tue, 21 Apr 2020 17:50:31 -0700 (PDT) X-Google-Smtp-Source: APiQypLaXzXUiSqqTDUEtvzO+3u8rm6LgbixXk9jnI1B+Rmp4PJoICK7zKkO16Za0hcVnOYggc1M X-Received: by 2002:a05:6402:688:: with SMTP id f8mr15286459edy.233.1587516631090; Tue, 21 Apr 2020 17:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587516631; cv=none; d=google.com; s=arc-20160816; b=GMibC2WZRMOkAMATZKHkqTclqIMjevDB3IqJ+eOi9st17tlsuHUTuSpkpxs5JetQwl WKVQJmZQOBjSgfU3CMjJS5q021XjpbVUgnsMmgXj1CVG78bMuJVtagqUr2TWv/88sqcO tYNQQsFv0ZYAUTlBqfEJRtH/6sdnZHWjBfdKb1bV+rYD4nY9Xzha7MaX4IiuooFF7kNm LXC9qlFgYr0oR/yBl6iF2Wv80FVsuuywK/FZIXKZVj1nMFrER+NHSE6cwIqlhtfHnO/F 8Dp/ZSlf1vLekPXXq/1uAZN2LYg6ldzAI53dsT1+zHrdcJrchpn/aL63l1z/+CWXjdKN ImxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=63fb5nFeJN7PoJsX4tG8GdYMct2l/caN8RuSWQJuLEw=; b=GBGw/dVFRCsJAehFx3zRAg2OrwSkk2emhj2QvaSy/cDpJ1K3av78VpLDmltxTZotII n6jWBGZ8sytxrz+Vkf2YVNgyVfRhn4BGTXlKWGJ8jwcuErkS0nUjFlDHSzdNMTzWtsBZ TncJ9VIZB68KevkW0qPnzG7QZ1itWU6YMQIYQHLcIJ3VmHa9ySyNZJn/a6zQ3YTjYbNz zMay7oOZh8Kv6wMf4tTuSjxz+3ztKrZpi8SHFG4ZCg4NZDvDdpoRwshF8or0tBjGooGG P1awtF7MqH4zJME9M8JAqbOQ2qNAP7Eq+gMvUJ90Afte+CPpnDWwCJld2x6nzMaI+SCU D7jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=KNhsmWT9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce18si2842469edb.493.2020.04.21.17.49.44; Tue, 21 Apr 2020 17:50:31 -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=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=KNhsmWT9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726055AbgDVAsv (ORCPT + 99 others); Tue, 21 Apr 2020 20:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726012AbgDVAsu (ORCPT ); Tue, 21 Apr 2020 20:48:50 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E540C0610D6 for ; Tue, 21 Apr 2020 17:48:49 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id s188so9903qkf.0 for ; Tue, 21 Apr 2020 17:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=63fb5nFeJN7PoJsX4tG8GdYMct2l/caN8RuSWQJuLEw=; b=KNhsmWT9X7NXWyY5qb/yjj1tgaB4Sc31PWWRCMn2oniNkKQO+l8nFnvWBfaZoB8LrW MdmRsF69wY3y2esQ1/pOy1OTG71Wa3LSfHHLpIoETLNZ5Ff06H0Zu3/8SJ4+aFm5yDaM InnJDDkCl8D/h1TdruetLvGvYX3Spyr9N3LVM40J4npyDDgpjQiN/lgbomNITF6ZsNsm uw9oIuZ8OKxunofr/JwEa8PnFT0VGMIofbo7dlMLMG3KuA0Ohe+Ke1zjLh7I66hRmOoF EQyPst2FljABILEn0ty9aYHmzBfeyWeX2XI8biSmgAZs2HeQ1Pi8Kg67NNjKB7m3Fk0D TZxg== 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=63fb5nFeJN7PoJsX4tG8GdYMct2l/caN8RuSWQJuLEw=; b=XrcuuwN3bqU/FE1zxdGToamkZLyJTxpRCsflG+13iDEDRV0fq1ddN4qNPT7PsppZTA 1enBPp7K0Xzav8SxCA8EyJQ7e6q3tuD8Lx0UXfJcYVZay4cFtdK9Z4/1iwKYcJ9PDNkO zlx3gy/JWbv5MvQxBOW1MXSZb/a8g8XbmLUmPoAjWGdSAOSp6Urtk/aQA8HneVxziBgu Gz6YMuatX+HbOFotkbSI2S+V45W6ztvQswKNzfNe66e0H+b7C9bNCKbWzzr2h1f/YTUr 9zeEXZSgztGtrxHXI5hPJQLDPXjrR2V5OHsucDNUmWgY75Dk78ao/IlsXPJiVPRRE9bU e/Og== X-Gm-Message-State: AGi0Pubf98eZ8HNyCj/zStVEgwB8BpcxmanullhJGfHGsPc2EqrzUcU/ B/xYQkSrF9c1S6v1YuLhx8ujsA== X-Received: by 2002:ae9:f30f:: with SMTP id p15mr23756693qkg.178.1587516528359; Tue, 21 Apr 2020 17:48:48 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id 60sm2867135qtb.95.2020.04.21.17.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 17:48:47 -0700 (PDT) From: Vitor Massaru Iha To: kunit-dev@googlegroups.com Cc: masahiroy@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, brendanhiggins@google.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH v3] um: ensure `make ARCH=um mrproper` removes arch/$(SUBARCH)/include/generated/ Date: Tue, 21 Apr 2020 21:48:44 -0300 Message-Id: <20200422004844.53284-1-vitor@massaru.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In this workflow: $ make ARCH=um defconfig && make ARCH=um -j8 [snip] $ make ARCH=um mrproper [snip] $ make ARCH=um defconfig O=./build_um && make ARCH=um -j8 O=./build_um [snip] CC scripts/mod/empty.o In file included from ../include/linux/types.h:6, from ../include/linux/mod_devicetable.h:12, from ../scripts/mod/devicetable-offsets.c:3: ../include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory 5 | #include | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [../scripts/Makefile.build:100: scripts/mod/devicetable-offsets.s] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/home/iha/sdb/opensource/lkmp/linux-kselftest.git/Makefile:1140: prepare0] Error 2 make[1]: Leaving directory '/home/iha/sdb/opensource/lkmp/linux-kselftest.git/build_um' make: *** [Makefile:180: sub-make] Error 2 The cause of the error was because arch/$(SUBARCH)/include/generated files weren't properly cleaned by `make ARCH=um mrproper`. Fixes: a788b2ed81ab ("kbuild: check arch/$(SRCARCH)/include/generated before out-of-tree build"). Reported-by: Theodore Ts'o Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins Tested-by: Brendan Higgins Suggested-by: Masahiro Yamada Link: https://groups.google.com/forum/#!msg/kunit-dev/QmA27YEgEgI/hvS1kiz2CwAJ --- v2: * Explains what this PATCH does and the importance as suggested by Brendan Higgins. v3: * This problem only affects ARCH=um builds then arch/um/Makefile has been changed as suggested by Masahiro Yamada; * And with that the description has also been changed, and also to explain missing points and correct the tags as suggested by Masahiro Yamada: - Fix missing command `make ARCH=um mrproper`; - Add build error message; - Add "Fixes" tag instead of "This bug was ..."; - Add "Link" tag instead of "Related bug ..."; - Add Reported-by and Suggested-by; --- arch/um/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/Makefile b/arch/um/Makefile index d2daa206872d..275f5ffdf6f0 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -140,6 +140,7 @@ export CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE) # When cleaning we don't include .config, so we don't include # TT or skas makefiles and don't clean skas_ptregs.h. CLEAN_FILES += linux x.i gmon.out +MRPROPER_DIRS += arch/$(SUBARCH)/include/generated archclean: @find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \ -- 2.25.1