Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1395780lqh; Mon, 6 May 2024 06:40:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXZYu446+1cL4WafwxRiWrjII1tMCOzdDSU8OVUNIDEEuKH1oRmGXv6n8Le12ni9XIUvNyd+r+XYm2GNBaNMCjTETmruFzzhv051NFvw== X-Google-Smtp-Source: AGHT+IGBmD0kJonOVfBd5IK1GSasoocQbo3HS+2b9G7ynZFCcfjR/GEW6A/YXW4MWPBaUtEgYFOs X-Received: by 2002:a05:620a:60f3:b0:790:ef14:a649 with SMTP id dy51-20020a05620a60f300b00790ef14a649mr9300498qkb.53.1715002825613; Mon, 06 May 2024 06:40:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715002825; cv=pass; d=google.com; s=arc-20160816; b=dDJtip/o3s8lN57Gmi2SNGF1TCJ7rZd9ShPFM9eGFppAfu9A6DZuaIKoMPHqblY75d HGioBxi6/Bwqhhlal8L7rOY1Rlats7EcwaeialmKTxdJ04nMKzD4r7Ra8925Xwu/q+g+ IStCR3ZYNNFevBrSxDpi0MtGFpkKU4Fpt6PqUXEdtk0hDpqsDFodl8dzZSW54785qKNR Zc5BFz7V3Tfvp1ZKz5rV10LX/BDr1NO31yvDB2KEz9raTqudyFdSywm6X3lDPfipx8wf MVQhyq7lBKGe8LQvxnjyb/rYno0EniZxD+z5wkXgAzhCxj94REPNLTTM0STcKVYLOK/z S18Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=FJlms0zWm2XqDdTza4ZtmgUJ7z1xKQXp5Yv6oiSv1WI=; fh=+blSQ4m20G3lfPdcGBIdQVmlWbHLy0ZTs4gnGetmXbY=; b=goYdl4siOcYB/428NHDopbtp9+8iegBJy4I97NPrmpjVuotWNJu1conXlTcvSaadyJ D4k+xr5O3ywssp1WFzmP+/vgE9qe1JusHDaVeMSzOryET9dFHnUnR5OZp52lHFwT+I8F s3Fab7STWq8URQu//w1R5DxAf1NEKi2+daUb4ZEOBUoKxQgtNp5Rxl2NmPS2YEIu5iD+ Q3URuOGByoNGUVZ7qtf0uv4Gc8OsgkqNS/AgUNnr3tL5mW2xrcrt+UhHaCBVToAjvC65 2XLPx7LN/Myq6yXcxA1583AOgLp9VtUUDLYYq+KvLMaPR2dh9Q9ztolwKbw26MdhTl8z 2anw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=seSAopKE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169913-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 bp11-20020a05620a458b00b0078efcffadf2si10203419qkb.315.2024.05.06.06.40.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 06:40:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169913-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=seSAopKE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169913-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 88DDB1C218F4 for ; Mon, 6 May 2024 13:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD0CD4642B; Mon, 6 May 2024 13:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="seSAopKE" 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 CF31C7F492; Mon, 6 May 2024 13:36:25 +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=1715002585; cv=none; b=nZmIT9a97fTR4jwUBKpGeVGrJNAAyLlYiMkCopdL4OqJAQH7gjexLvDDRtBVCv8ZA+PpKKsyv8UkWTCPxpRg8xa92MtvfHxvVwx5TylIVTAdAYa6LaetEpiawGPg0QkatxDh7ZPrajtnsQExE/hTcp8TC19vCh8LZ88ku4Zk7B8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715002585; c=relaxed/simple; bh=e3iVBxf7ew9k9UDXLu373Pt8xf4Tqy85cxmJoR1r8ig=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mHLSw9FBVWDNplmmnb3GILOYXY3EFR3Wn5OwmedxPmTtcmbIEBNlxddsMWM6pEF3AN2B7L+HeAuB5aZRzs/WufG7rmsuWAHlbgLQJb+EOzD41eCQLyvzeWb/JKBurCnvcFy9XpcyCjkNRMpD7aiTfd2OZiybW39a0wbDGrok/Ko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=seSAopKE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2896C3277B; Mon, 6 May 2024 13:36:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715002585; bh=e3iVBxf7ew9k9UDXLu373Pt8xf4Tqy85cxmJoR1r8ig=; h=From:To:Cc:Subject:Date:From; b=seSAopKEibaYZCabMJg/0pxoDwn18EuNih4eTQhgHMvQFG0B/zvJAXlDjBj4t7qI1 jWfUx9bZ9tPLBOytvFz9kykXzjVdMzghyM3aQkcMQVwdtXa0vM2L7dMcr1VDZZtQ/X B5lByOqHFWKV9nqcC7E8wCbpqcWip3qp8HT752tGvnPyr7FFxZjQZGisp/w0irgiJ4 DzcmwZhKF7BLXpxyHbOo7lN88B9VtH2b/40J3SMtIERZQy7cnq2Xqr3v1pM6pfyCvM KAhoOHsu9OR4O0d6dvX0otKfU1KI760TBm2mJhdxxLLTjPbnBTLtJW5tAR1Ks85dUB IgoBZ5zTx6UPA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 0/3] kbuild: remove many tool coverage variables Date: Mon, 6 May 2024 22:35:41 +0900 Message-Id: <20240506133544.2861555-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch set removes many instances of the following variables: - OBJECT_FILES_NON_STANDARD - KASAN_SANITIZE - UBSAN_SANITIZE - KCSAN_SANITIZE - KMSAN_SANITIZE - GCOV_PROFILE - KCOV_INSTRUMENT Such tools are intended only for kernel space objects, most of which are listed in obj-y, lib-y, or obj-m. The best guess is, objects in $(obj-y), $(lib-y), $(obj-m) can opt in such tools. Otherwise, not. This works in most places. Masahiro Yamada (3): kbuild: provide reasonable defaults for tool coverage Makefile: remove redundant tool coverage variables kbuild: use GCOV_PROFILE and KCSAN_SANITIZE in scripts/Makefile.modfinal arch/arm/boot/bootp/Makefile | 1 - arch/arm/boot/compressed/Makefile | 7 ------- arch/arm/vdso/Makefile | 9 --------- arch/arm64/kernel/pi/Makefile | 6 ------ arch/arm64/kernel/vdso/Makefile | 8 -------- arch/arm64/kvm/hyp/nvhe/Makefile | 13 ------------- arch/csky/kernel/vdso/Makefile | 4 ---- arch/loongarch/vdso/Makefile | 7 ------- arch/mips/boot/compressed/Makefile | 6 ------ arch/mips/vdso/Makefile | 7 ------- arch/parisc/boot/compressed/Makefile | 4 ---- arch/powerpc/kernel/vdso/Makefile | 8 -------- arch/powerpc/purgatory/Makefile | 3 --- arch/riscv/boot/Makefile | 2 -- arch/riscv/kernel/compat_vdso/Makefile | 6 ------ arch/riscv/kernel/pi/Makefile | 6 ------ arch/riscv/kernel/vdso/Makefile | 6 ------ arch/riscv/purgatory/Makefile | 8 -------- arch/s390/boot/Makefile | 2 ++ arch/s390/kernel/vdso32/Makefile | 8 -------- arch/s390/kernel/vdso64/Makefile | 8 -------- arch/s390/purgatory/Makefile | 8 -------- arch/sh/boot/compressed/Makefile | 3 --- arch/sparc/vdso/Makefile | 2 -- arch/x86/boot/Makefile | 15 --------------- arch/x86/boot/compressed/Makefile | 11 ----------- arch/x86/entry/vdso/Makefile | 26 -------------------------- arch/x86/purgatory/Makefile | 9 --------- arch/x86/realmode/rm/Makefile | 11 ----------- arch/x86/um/vdso/Makefile | 7 ------- arch/xtensa/boot/lib/Makefile | 5 ----- drivers/firmware/efi/libstub/Makefile | 11 ----------- drivers/misc/lkdtm/Makefile | 4 ---- init/Makefile | 3 --- scripts/Makefile.build | 2 +- scripts/Makefile.lib | 20 ++++++++++++-------- scripts/Makefile.modfinal | 4 +++- scripts/Makefile.vmlinux | 3 --- scripts/mod/Makefile | 1 - 39 files changed, 18 insertions(+), 256 deletions(-) -- 2.40.1