Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1396129lqh; Mon, 6 May 2024 06:41:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/mvSXNiBwpseIPsBGcH1CSdm5emuQMhwmdGN/afTQ0hmElWOKckKhyRuf67gSbsdZAje0CXuOb7DH3zvAhaATCvAf/YAM+msWtDbR5g== X-Google-Smtp-Source: AGHT+IHhm1GvOwuMQWNLWYD7R4Xh3Z5bSPgjUBIxEEGkdiCMQnxT2zFXg1ZMLYDkvNCo+1A9iHI9 X-Received: by 2002:a05:6830:1d92:b0:6f0:4947:8392 with SMTP id y18-20020a0568301d9200b006f049478392mr3875744oti.16.1715002863441; Mon, 06 May 2024 06:41:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715002863; cv=pass; d=google.com; s=arc-20160816; b=rnBzLT+6m57gcgDdMh1Er2pyzHnlej3KEZqQWTiO611PFWqFPCIBVpegokO8e2FiCz edYU+TVWj7nTnyRf07zXwNAw6JqQDHmgIL31xTzBqnOUhpj7mai6NPcKkfvzWZ78J8R2 I4fdPnxNaOoyljWdnqe4CH6i2nXOK7+iYHsIg1SjObW1w3C8YWjpKfrfVOATOw0+TE4Y Qwk1ZHZQuVvqJGpYcQrES5MrspzlVEh3jmoV9mOlyY4KWVDriUU7cFal4/jD+LEDsgb9 qYrHLL1KejH7uLuMFmfeiv4GzyLu81jBMuTp2BXjpbVllzDZT3HdbaJA/dbD8SbRKGMu PktA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ee1kRZ43VDHXgxke3SIv6rh0Zaa7x6jg5jz/+C8c/es=; fh=+blSQ4m20G3lfPdcGBIdQVmlWbHLy0ZTs4gnGetmXbY=; b=Nksu7wAkkyzW0ISGSdDfXkS02gb36dT5xIlenI35h2T67PfwKr4NMzHwtP9HrqMJQ+ mmbW1nTycXfRpKW9Rvw4zKkNhqEW+GOHnl/QqYSO8JCNHjH+dZJugpD/Na6tumlgUCf9 87D5EWWZu3cLHCLwHVDzrZhGTCNLDDQoJ5QiG0WIfv5fHuwbz3LmYV8uLLVIyg5VyS4v FM3SSQHwGzEYfQ/Khyo4MuZ5eWrJFgMn/RRMAE1XKdQ8KC2KRZUt0fuoUPT5QSvwyuDI dAzXJmGhbhP0YhzCiUcVGYjoB2FvFoKeU7CTJpY6qjx2ur3YEIuRs6Nnrxp/w8DHV0cv X0Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vll13l5h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e10-20020a05620a014a00b007928f3a5570si4348022qkn.241.2024.05.06.06.41.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 06:41:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vll13l5h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2C4FA1C20308 for ; Mon, 6 May 2024 13:41:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 276D41272B2; Mon, 6 May 2024 13:36:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vll13l5h" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49F1E86AEE; Mon, 6 May 2024 13:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715002590; cv=none; b=jqf3s1uJHLy/xsPldDVJzq5wZH+wU05WOm8ygVQmK752WQpE1AuB75BiRhoCXSd/suAVdVzF1BWwRR3KHw4CIrhLy4OKXDWVPG0ddDvpCpdq3r2oYhnZiWLAAnjUF0o5OPIhB/Fd0vXUroXl+npVoTb5Yw4AFL91CFVN0ZZyHZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715002590; c=relaxed/simple; bh=IU0butsrYNaU1Rn9/Rhr8P9pxnhR+xc2irmkL7gk71M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Lta+9OJw24Gdg0JRfaLJHcJ8VdkiFNaSK0tqYoRI5qC2N/++EG4KpF7cDwou06sZFxQnEBdn5yOr214iB6f3j/Lu6/0R2Bq3VgrZ1QusOUGmbS10XthpF3BfwoYBo42ldpJKEeaXii4B4PKWn65P5S0wnflyEilnASf4Up5ovqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vll13l5h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18219C4AF67; Mon, 6 May 2024 13:36:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715002590; bh=IU0butsrYNaU1Rn9/Rhr8P9pxnhR+xc2irmkL7gk71M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vll13l5hMbESecAEa6zpZucFAHqic9XvexGbDayahesEpFFqZbj2iGntS5bPMiCAu PLTrS+W2G+s7awG3XXf+15z9qFQp8svkzgOMHW3Rzoemj2FqhI2ZuGUGqPkrdhbaoN guIRMB95b7pT8PagUJ6pBCPzzox7aTTKkCnnsbTkNFT6+VJye3iNeWq9W3Rtlql91W BWewJpKO8mGpzKVrsignptX2W08263xw6UO86j4hweW7MjKjlN+WR0QNSUjo7qStBt irlPoDWyyy5tbvUcJqKW7IE63gmVc8QHxaIT+hDfCiYRPZ/0EkvciS69rxYucv6MpS kEnTKAsHOfRhA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 3/3] kbuild: use GCOV_PROFILE and KCSAN_SANITIZE in scripts/Makefile.modfinal Date: Mon, 6 May 2024 22:35:44 +0900 Message-Id: <20240506133544.2861555-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240506133544.2861555-1-masahiroy@kernel.org> References: <20240506133544.2861555-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Instead of filtering out the GCOV and KCSAN flags, let's set GCOV_PROFILE and KCSAN_SANITIZE to 'n', as in other Makefiles. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modfinal | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index 79fcf2731686..3bec9043e4f3 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -21,9 +21,11 @@ __modfinal: $(modules:%.o=%.ko) # modname and part-of-module are set to make c_flags define proper module flags modname = $(notdir $(@:.mod.o=)) part-of-module = y +GCOV_PROFILE := n +KCSAN_SANITIZE := n quiet_cmd_cc_o_c = CC [M] $@ - cmd_cc_o_c = $(CC) $(filter-out $(CC_FLAGS_CFI) $(CFLAGS_GCOV) $(CFLAGS_KCSAN), $(c_flags)) -c -o $@ $< + cmd_cc_o_c = $(CC) $(filter-out $(CC_FLAGS_CFI), $(c_flags)) -c -o $@ $< %.mod.o: %.mod.c FORCE $(call if_changed_dep,cc_o_c) -- 2.40.1