Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1882700ybz; Thu, 30 Apr 2020 07:10:17 -0700 (PDT) X-Google-Smtp-Source: APiQypLoh4JjFnlWrozUStw1WIQ/wzaSqkn/GODwEgGjPd+3l61dHBTiQGyE4VIOrRIEqALMtkEe X-Received: by 2002:a17:907:42fe:: with SMTP id oa22mr2756735ejb.98.1588255817011; Thu, 30 Apr 2020 07:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588255817; cv=none; d=google.com; s=arc-20160816; b=OG6GjbtAwRXGwrrJbSahyJvhcjHfs1LE0x+e324wa1XbVkgVkLIAhZ73Z/SiVUWyFS 1R1icIzzsTSxFC+oUF21F9U/MYUQtoD7OJ9R6YT37uAWbPPueP40f2ds6tgYt8FQueIM Z8Zj55Q8LpfJ8BhWwKDQHaJUIEoSDXl87MHFkY653DpxxZBj677I0G1j4qQabPAduyet EC4+moM6j/MLkN1lmADDsucZW6JeaOJPpLFNcHsL5k4Fjk35SJ5lhSNs6B4+Ru+U6TBq 3bsSE2tR+qqcm72mm//riY04RibyKvaglOeHGsjgwFLP1mlpKY+Y7eBaLTGXTFs/hrI4 T7+w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GkzbCOmXSBiaLGwHM3kf3f7oe8xQjldSFnb11ZeeOgc=; b=Dgu/XuMJ2zL6Tdgs70taYZNgtiCZ3rBR97WcTOXnu6HKNAlynJXhswoEcc3j+R9QyU EwEKU21+Qu5IfYXaj5YRJuXoLS6nOlS70ANOXcdnQmbI/KbN98K7YXEU/eYGY7HlErlA caoyY+TRxNA9YZnZys5uIEFIrySW3+0ULLtLgShMRd1X5TYnpTzL83eY/zZetFbof0V9 ZM7FavOokJX52JJUPZlM2jCYlOGMBBxyk7hk6sJ0Ls/LGxpxxLJxgVdfNQrljkISnjKa GS9XKHK1JJPNd/MEwLPbbSLYo6sIuzxseW1ZQlzfesCNlQENV/XvLrQx/HlJ/qdAAs/B e1CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vQj5DzH6; 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 u19si4862494eda.10.2020.04.30.07.09.47; Thu, 30 Apr 2020 07:10:16 -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=@kernel.org header.s=default header.b=vQj5DzH6; 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 S1728348AbgD3NwR (ORCPT + 99 others); Thu, 30 Apr 2020 09:52:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:60784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728246AbgD3Nv6 (ORCPT ); Thu, 30 Apr 2020 09:51:58 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F11E6208D5; Thu, 30 Apr 2020 13:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588254717; bh=EturXDdmuhBBBinF/mcrRmdf5FdYX9aTc5Zb5f3bQPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vQj5DzH6BBn77RpFmhClJnt6hPa6z40xK6GI8Tl13fuPFK9vLK+5TTVX/D0ABongs YEgK5ZwliAui/fcV+y3gXR1YqYS1hxT+eQ1MJRHcDFiZEM/AiAMbS8SVXaIBpSOmV+ tWZam9EXm62FexpRTQYgb30+qm1nHReaysiQNbek= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vitor Massaru Iha , Theodore Ts'o , Masahiro Yamada , Brendan Higgins , Sasha Levin , user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net Subject: [PATCH AUTOSEL 5.6 65/79] um: ensure `make ARCH=um mrproper` removes arch/$(SUBARCH)/include/generated/ Date: Thu, 30 Apr 2020 09:50:29 -0400 Message-Id: <20200430135043.19851-65-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200430135043.19851-1-sashal@kernel.org> References: <20200430135043.19851-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitor Massaru Iha [ Upstream commit 63ec90f18204f2fe072df108de8a021b28b1b173 ] 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 Suggested-by: Masahiro Yamada Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins Tested-by: Brendan Higgins Link: https://groups.google.com/forum/#!msg/kunit-dev/QmA27YEgEgI/hvS1kiz2CwAJ Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- arch/um/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/Makefile b/arch/um/Makefile index d2daa206872da..275f5ffdf6f0a 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.20.1