Message ID | 20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc@suse.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67478-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp28790dyb; Thu, 15 Feb 2024 10:13:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVH3oEP8RAsvHTzKcEydNQ/sG974O+FbihtOfuCxtA7/YgoLRdkB0jQ+ZGMLFeq/scggdmqqU2W2gDdXXXgIioyQNrJmA== X-Google-Smtp-Source: AGHT+IH/s5AN7ITSAT/UIlmweWANhKb2vaUPskBMtxyGvAA6suFi9V+RTCWjTAfMm7l+DUQyGNVu X-Received: by 2002:a17:906:c309:b0:a3c:aef1:e01c with SMTP id s9-20020a170906c30900b00a3caef1e01cmr1645878ejz.14.1708020824824; Thu, 15 Feb 2024 10:13:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708020824; cv=pass; d=google.com; s=arc-20160816; b=NT3tllau74g2pEsp/BhU7dWrjhyo+kMXgPerabE37PQluTIe+yw6zPYrzDIbp21cS8 PRLRmCv0L8BKIGawXR4GeqPPxrlVmz/w5u2gSsW6VxESImWfg5gGuoUB/hHEWZ1y3WbY 59HzXlpkNjeHxZVz1DbmjXLX0uxEHzyRbMj0PMiyvNTen7X4KtduvDzi+wkCXPVJDRky cfCD8Y+Onq6121Ix2j74NHT3ktY8UXxpd2uCFmq53AR3tuO25NftSpyueghQBmEPh0rR eQHPjGldfVN5klKF4OasjaiGIquHPlp3REP6TJgHHlL2ntURF8MN+suj7vJCPISAlURV 2tYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature:dkim-signature; bh=D9P8j5qWhDJz4Oep9mbgqw672iDvJafFPD4oyhUBddI=; fh=oGTeheTGtJi/O2KL90xHksAdkswU33tM/8rayu80xMU=; b=U+H1UlocaUPzZPb+ft1A5/ztHVYDZlHbhkVJOpNylhAp3A4Xap4M9774hc+ve9eFoa ZxyBbXLd+uaXVgJ9Py++Ci41xkVJV0WRCiK8QbwCuiU5EeFn2vVOmzA9yjMv7hKfI3eu CJTw+642MOIKd8bN8r16mEZ9NLn3Kk8m1rkmD5zkk02lgpcE8XrOBrfegrwIMYy7hgv3 e0EC8gk+7tAF2sjCTu2hyqMwOIvSBpki7bvherltTUxZBTzuYh5An2L/gCCKh/s3R7Ng nXUPsrVihZ1wXwuA+5libGdHyeTQlEs3DJXXbaDxyAd1fsVeRxTS6p2QgB/4ixG69tTf v6nA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-67478-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67478-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o6-20020a17090611c600b00a3d4f27f85dsi872161eja.213.2024.02.15.10.13.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67478-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-67478-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67478-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 438F21F23FA7 for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 18:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53D2013A24B; Thu, 15 Feb 2024 18:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="KQpjfkGK"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="KQpjfkGK" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7EF613957B; Thu, 15 Feb 2024 18:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020768; cv=none; b=tvahn36Y8d0J9cp5EzbPmgLlDO9JvKg+ulaqN39h6z2AGmKVEl8yl1w2Pza5q8QogVida3zzWpGmlpCo/r6hxyCNWyi/kQ4AnKzZRycMN/XdgYzTFuLRhIaEhQtyvvWMUiVXwDAvna5uqU9aULCMsGwANMGdNGphD/+3VIiXr4A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020768; c=relaxed/simple; bh=4sRYEFsMr0x8AvEq/m65uPROo9JRLFixj6hIrz82inQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=svJ9CC6d1/Xe2SGQZ/jWKKqrHl9UuoK0UIKTltNBhWl7as4fFvUBriIu2RJ0fg8tzmH6j5x3yQpGxs9AC5NvacrtLxbUcpvI1NsXSaTxJPG2L7HUZBs06luH1QIJQnG3vW0qn4dOgr/6GNE8kJwOa9AEmLtCTs0wiJADopelBaM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=KQpjfkGK; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=KQpjfkGK; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B37301F8C5; Thu, 15 Feb 2024 18:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1708020764; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D9P8j5qWhDJz4Oep9mbgqw672iDvJafFPD4oyhUBddI=; b=KQpjfkGK5ng/v33n/Ir87kQIzKraqrPK5YGCGb+rZY6SrG6MPtnZxUD/Yo94axeOAzSvIh vO8XWdMxpZyMRfRRFRA5pyKq75AcN0BJMJTCdhZwRW2pFnmjn6r1fu94Uya7Ac6zEn22xE 6vKcDHwbUarZGh1oQGPVAZkhUP65eqM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1708020764; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=D9P8j5qWhDJz4Oep9mbgqw672iDvJafFPD4oyhUBddI=; b=KQpjfkGK5ng/v33n/Ir87kQIzKraqrPK5YGCGb+rZY6SrG6MPtnZxUD/Yo94axeOAzSvIh vO8XWdMxpZyMRfRRFRA5pyKq75AcN0BJMJTCdhZwRW2pFnmjn6r1fu94Uya7Ac6zEn22xE 6vKcDHwbUarZGh1oQGPVAZkhUP65eqM= Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 3BA371346A; Thu, 15 Feb 2024 18:12:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id 2QdrARxUzmXzVwAAn2gu4w (envelope-from <mpdesouza@suse.com>); Thu, 15 Feb 2024 18:12:44 +0000 From: Marcos Paulo de Souza <mpdesouza@suse.com> Date: Thu, 15 Feb 2024 15:12:21 -0300 Subject: [PATCH 2/3] selftests: lib.mk: Simplify TEST_GEN_MODS_DIR handling Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc@suse.com> References: <20240215-lp-selftests-fixes-v1-0-89f4a6f5cddc@suse.com> In-Reply-To: <20240215-lp-selftests-fixes-v1-0-89f4a6f5cddc@suse.com> To: Shuah Khan <shuah@kernel.org>, Josh Poimboeuf <jpoimboe@kernel.org>, Jiri Kosina <jikos@kernel.org>, Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>, Joe Lawrence <joe.lawrence@redhat.com> Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Marcos Paulo de Souza <mpdesouza@suse.com> X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1708020755; l=1959; i=mpdesouza@suse.com; s=20231031; h=from:subject:message-id; bh=4sRYEFsMr0x8AvEq/m65uPROo9JRLFixj6hIrz82inQ=; b=zcZfYignRJgaR7E+a9UrQ2W5kHaC7C6bqwgG6KEBroOV/CxO0xVhtic0jk4F0RCX1ltxR9oHO mzz7XojaO0UA5mH1no0pEF4eCUnH6RxgScd4yoA+nnO42nuUvLrd9Mg X-Developer-Key: i=mpdesouza@suse.com; a=ed25519; pk=/Ni/TsKkr69EOmdZXkp1Q/BlzDonbOBRsfPa18ySIwU= Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -0.20 X-Spamd-Result: default: False [-0.20 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_SPAM(5.10)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[10]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Flag: NO X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790989644451134517 X-GMAIL-MSGID: 1790989644451134517 |
Series |
Improvements to livepatch kselftests on top of kselftest-next
|
|
Commit Message
Marcos Paulo de Souza
Feb. 15, 2024, 6:12 p.m. UTC
We don't need new targets only to run two make modules and make clean.
We can test if TEST_GEN_MODS_DIR is specified, and then run the
commands.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
---
tools/testing/selftests/lib.mk | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
Comments
Hi Marcos, kernel test robot noticed the following build warnings: [auto build test WARNING on 345e8abe4c355bc24bab3f4a5634122e55be8665] url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 base: 345e8abe4c355bc24bab3f4a5634122e55be8665 patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc%40suse.com patch subject: [PATCH 2/3] selftests: lib.mk: Simplify TEST_GEN_MODS_DIR handling compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191502.dALlSRz0-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191502.dALlSRz0-lkp@intel.com/ All warnings (new ones prefixed by >>): >> Makefile:11: warning: overriding recipe for target 'all' >> ../lib.mk:62: warning: ignoring old recipe for target 'all' make[1]: *** [../lib.mk:62: all] Error 2 Makefile:65: warning: overriding recipe for target 'emit_tests' ../lib.mk:120: warning: ignoring old recipe for target 'emit_tests' make[1]: *** No targets. Stop. make[1]: *** No targets. Stop. make[1]: *** No targets. Stop. vim +/all +11 Makefile ^1da177e4c3f41 Linus Torvalds 2005-04-16 7 ^1da177e4c3f41 Linus Torvalds 2005-04-16 8 # *DOCUMENTATION* ^1da177e4c3f41 Linus Torvalds 2005-04-16 9 # To see a list of typical targets execute "make help" ^1da177e4c3f41 Linus Torvalds 2005-04-16 10 # More info can be located in ./README ^1da177e4c3f41 Linus Torvalds 2005-04-16 @11 # Comments in this file are targeted only to the developer, do not ^1da177e4c3f41 Linus Torvalds 2005-04-16 12 # expect to learn how to build the kernel reading this file. ^1da177e4c3f41 Linus Torvalds 2005-04-16 13
On Mon, 19 Feb 2024 15:16:51 +0800 kernel test robot <lkp@intel.com> wrote: > Hi Marcos, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc%40suse.com > patch subject: [PATCH 2/3] selftests: lib.mk: Simplify TEST_GEN_MODS_DIR handling > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191502.dALlSRz0-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: https://lore.kernel.org/oe-kbuild-all/202402191502.dALlSRz0-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > >> Makefile:11: warning: overriding recipe for target 'all' > >> ../lib.mk:62: warning: ignoring old recipe for target 'all' > make[1]: *** [../lib.mk:62: all] Error 2 > Makefile:65: warning: overriding recipe for target 'emit_tests' > ../lib.mk:120: warning: ignoring old recipe for target 'emit_tests' > make[1]: *** No targets. Stop. > make[1]: *** No targets. Stop. > make[1]: *** No targets. Stop. I couldn't reproduce this one locally. Shuah, have you seen this issue in your setup? I followed the steps to reproduce this issue (it's the same sequence already reported in earlier patches...) > > > vim +/all +11 Makefile > > ^1da177e4c3f41 Linus Torvalds 2005-04-16 7 > ^1da177e4c3f41 Linus Torvalds 2005-04-16 8 # *DOCUMENTATION* > ^1da177e4c3f41 Linus Torvalds 2005-04-16 9 # To see a list of typical targets execute "make help" > ^1da177e4c3f41 Linus Torvalds 2005-04-16 10 # More info can be located in ./README > ^1da177e4c3f41 Linus Torvalds 2005-04-16 @11 # Comments in this file are targeted only to the developer, do not > ^1da177e4c3f41 Linus Torvalds 2005-04-16 12 # expect to learn how to build the kernel reading this file. > ^1da177e4c3f41 Linus Torvalds 2005-04-16 13 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki
On Wed, Feb 21, 2024 at 09:29:47AM -0300, Marcos Paulo de Souza wrote: > On Mon, 19 Feb 2024 15:16:51 +0800 kernel test robot <lkp@intel.com> wrote: > > > Hi Marcos, > > > > kernel test robot noticed the following build warnings: > > > > [auto build test WARNING on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > > > url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > > base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > > patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc%40suse.com > > patch subject: [PATCH 2/3] selftests: lib.mk: Simplify TEST_GEN_MODS_DIR handling > > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191502.dALlSRz0-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot <lkp@intel.com> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202402191502.dALlSRz0-lkp@intel.com/ > > > > All warnings (new ones prefixed by >>): > > > > >> Makefile:11: warning: overriding recipe for target 'all' > > >> ../lib.mk:62: warning: ignoring old recipe for target 'all' > > I couldn't reproduce this one locally. Shuah, have you seen this issue in your > setup? I followed the steps to reproduce this issue (it's the same sequence > already reported in earlier patches...) Hi Marcos, This seems to be a warning when compiling futex selftest. linux/tools/testing/selftests/futex$ make Makefile:11: warning: overriding recipe for target 'all' ./lib.mk:62: warning: ignoring old recipe for target 'all' There is no such warning if this patch is not applied. Looks like it is due to the "all" target is defined in lib.mk but overridden in futex Makefile? Could you please help take a look? Thanks, Yujie
On Fri, 23 Feb 2024 11:40:00 +0800 Yujie Liu <yujie.liu@intel.com> wrote: > On Wed, Feb 21, 2024 at 09:29:47AM -0300, Marcos Paulo de Souza wrote: > > On Mon, 19 Feb 2024 15:16:51 +0800 kernel test robot <lkp@intel.com> wrote: > > > > > Hi Marcos, > > > > > > kernel test robot noticed the following build warnings: > > > > > > [auto build test WARNING on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > > > > > url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > > > base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > > > patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc%40suse.com > > > patch subject: [PATCH 2/3] selftests: lib.mk: Simplify TEST_GEN_MODS_DIR handling > > > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191502.dALlSRz0-lkp@intel.com/reproduce) > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > > the same patch/commit), kindly add following tags > > > | Reported-by: kernel test robot <lkp@intel.com> > > > | Closes: https://lore.kernel.org/oe-kbuild-all/202402191502.dALlSRz0-lkp@intel.com/ > > > > > > All warnings (new ones prefixed by >>): > > > > > > >> Makefile:11: warning: overriding recipe for target 'all' > > > >> ../lib.mk:62: warning: ignoring old recipe for target 'all' > > > > I couldn't reproduce this one locally. Shuah, have you seen this issue in your > > setup? I followed the steps to reproduce this issue (it's the same sequence > > already reported in earlier patches...) > > Hi Marcos, > > This seems to be a warning when compiling futex selftest. > > linux/tools/testing/selftests/futex$ make > Makefile:11: warning: overriding recipe for target 'all' > ../lib.mk:62: warning: ignoring old recipe for target 'all' > > There is no such warning if this patch is not applied. Looks like it is > due to the "all" target is defined in lib.mk but overridden in futex > Makefile? Could you please help take a look? I believe that I understood what's going on: Before this patch, the 'all' from lib.mk target didn't have a "recipe" only dependencies. The TARGET_GEN_MODS_DIR variable was used while resolving the dependencies from it. The proposed patch simplified the process by removing the gen_mods_dir target, and checked TARGET_GEN_MODS_DIR variable as a recipe. Per my local tests, we can have two targets with the same name on two different Makefiles (one that includes in the other in case), as long as only one of them have a recipe (commands to execute). The dependencies of the target on the included file would will be checked and executed either way. But, if both targets have commands to execute, make will say the target was overridden. In both cases, only the target from the file that includes the other will execute. I believe this matches the current expectation of the futex selftests, as they jump on into "functional" directory and execute the tests there. That makefile also includes lib.mk... It seems that planned to include more directories since they introduced the selftests, but never did: commit 2aa8470f02a9b9e6a410d1264fe6c8fa6c402eff Author: Darren Hart <dvhart@linux.intel.com> Date: Tue May 12 21:07:52 2015 -0700 selftests: Add futex functional tests The futextest testsuite [1] provides functional, stress, and performance tests for the various futex op codes. Those tests will be of more use to futex developers if they are included with the kernel source. Copy the core infrastructure and the functional tests into selftests, but adapt them for inclusion in the kernel: - Update the Makefile to include the run_tests target, remove reference to the performance and stress tests from the contributed sources. - Replace my dead IBM email address with my current Intel email address. - Remove the warrantee and write-to paragraphs from the license blurbs. - Remove the NAME section as the filename is easily determined. ;-) - Make the whitespace usage consistent in a couple of places. - Cleanup various CodingStyle violations. A future effort will explore moving the performance and stress tests into the kernel. 1. http://git.kernel.org/cgit/linux/kernel/git/dvhart/futextest.git Either way, if my change adds a new warning, I think that we can drop that patch and move on. OTOH, I believe that futex selftests could be simplified in order to remove this awkward setup to run their tests. > > Thanks, > Yujie
diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 286ce0ee102b..eddcd4a849dc 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -58,8 +58,9 @@ TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS)) TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED)) TEST_GEN_FILES := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_FILES)) -all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) \ - $(if $(TEST_GEN_MODS_DIR),gen_mods_dir) +all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) + $(if $(TEST_GEN_MODS_DIR), \ + $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR)) define RUN_TESTS BASE_DIR="$(selfdir)"; \ @@ -85,11 +86,6 @@ else @$(call RUN_TESTS, $(TEST_GEN_PROGS) $(TEST_CUSTOM_PROGS) $(TEST_PROGS)) endif -gen_mods_dir: - $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR) - -clean_mods_dir: - $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR) clean define INSTALL_SINGLE_RULE $(if $(INSTALL_LIST),@mkdir -p $(INSTALL_PATH)) @@ -133,9 +129,11 @@ endif define CLEAN $(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN) + $(if $(TEST_GEN_MODS_DIR), \ + $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR) clean) endef -clean: $(if $(TEST_GEN_MODS_DIR),clean_mods_dir) +clean: $(CLEAN) # Enables to extend CFLAGS and LDFLAGS from command line, e.g. @@ -166,4 +164,4 @@ $(OUTPUT)/%:%.S $(LINK.S) $^ $(LDLIBS) -o $@ endif -.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir +.PHONY: run_tests all clean install emit_tests