Received: by 10.223.185.116 with SMTP id b49csp1045157wrg; Fri, 16 Feb 2018 11:23:47 -0800 (PST) X-Google-Smtp-Source: AH8x227n+1Wv7AMrvrd80jfHwF3UWQ1084RvE99rb6Ix+xKm/77sLFLr1xUBnwD03dHp24XtT2ED X-Received: by 2002:a17:902:7486:: with SMTP id h6-v6mr6706420pll.216.1518809027354; Fri, 16 Feb 2018 11:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518809027; cv=none; d=google.com; s=arc-20160816; b=1JaRecY24tTL6hRlmETjGbVbRBWHmsuBpe3vSrFWStHjo4vvFY7KYwjs9IRCfYLbVo NlY+H4cMZjdpni+MnDAs782XPRO3ycQfCUdmtGz6SYm6aRwDLdfmsN8zjVLXfXieWFV4 Rz5DaYEcN5AxieV2bV7chTKGlx7kO0nB44kTEOwPF6hII/Hfk+HNpPwPDMIQvCcW+MHS ADsdmHivka4yKGE+1aHObAYQ3rUeBq+TQ03TKBjBvTXE/3IRRlhS9KZuwr9mcJ/jhcQc BCkGREAOwCDpHs6WYj9FKzETpAFCqWh1NF8MXEbp107D3/KggqABBY7Q3XAwSbglaMlf 10VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=5E3V+lniGkXthizHMXYirjjRQ8c47R+TtsbPm2hC14Y=; b=RdFEQ91E5S/i4wCQ4V9WJEsSpWWsaBi1Bkv7V3u58SKhP1oAxbnpTO8zFAvc0YqkBS uGS1PPMyySjGZirtX7Twfw/6isiqSWyuiWZx4t6yOgU8+zGMJsL+kY19TJGBxxgjoWYE WpBq43XiaOraY6YWWsv077DNUGnjuvCkACXP7YG7/PxOYIPpyn1yvHWX23WmvmU+KLXN KsUNLw6pWrEn0PaYzOnWFM+Rb9/L8ucwqfNt/6TmIwR0PaLigeBuW3iwmp3Z8OAIdjns kSBchldOyyGUxlExltYbCOB9gJEiL8sl0GOGdbG4rZfCbBrr4MQFD4g5ShxvTed29Lyl 0GMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=oJRN23ux; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b190si1855727pgc.312.2018.02.16.11.23.32; Fri, 16 Feb 2018 11:23:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=oJRN23ux; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752964AbeBPSls (ORCPT + 99 others); Fri, 16 Feb 2018 13:41:48 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:57824 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbeBPSlU (ORCPT ); Fri, 16 Feb 2018 13:41:20 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w1GIdBTL013418; Sat, 17 Feb 2018 03:39:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w1GIdBTL013418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1518806370; bh=5E3V+lniGkXthizHMXYirjjRQ8c47R+TtsbPm2hC14Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oJRN23ux3B0UQd2L3uUo5l471O4o0PGGEd/jSN8TZr9AYmboOsaPxOGtAahLq/C1i 4hiVj3VfBNrBW+7U4fUk1RNiplWjFs94BeRh4I6sEIR8y1+iAS2JwD7wdt0A8fooye 4EqMB1wbdE0mmm8H0j/4ct1a//RAIKFbvVsGe0pbio7kghfAK6G23vjKsROVhSF67N G9f96uCdFb7Bo/622KHfDs+TMJCKlCIaSSTFaEdPxd2jNUhBRAMgeDfltejp9KrulY +r2d8eoNb28Tz4Y8GocuvxQ4oU6/Hk1hVoXK7HsxwIhaXF6xtTJVLveFKRN+ovmprg 5NiX/LVkV9Ibg== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org, Linus Torvalds Cc: Greg Kroah-Hartman , Arnd Bergmann , Kees Cook , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Masahiro Yamada , Peter Oberparleiter , linux-kernel@vger.kernel.org Subject: [PATCH 18/23] gcov: remove CONFIG_GCOV_FORMAT_AUTODETECT Date: Sat, 17 Feb 2018 03:38:46 +0900 Message-Id: <1518806331-7101-19-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> References: <1518806331-7101-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_GCOV_FORMAT_AUTODETECT compiles either gcc_3_4.c or gcc_4_7.c according to your GCC version. We can achieve the equivalent behavior by setting reasonable default in the 'choice' with the knowledge of the compiler version. Users are still allowed to change it if they need to do so. Signed-off-by: Masahiro Yamada --- kernel/gcov/Kconfig | 18 ++++++------------ kernel/gcov/Makefile | 2 -- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index 1276aab..c56bee7 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -53,20 +53,14 @@ config GCOV_PROFILE_ALL choice prompt "Specify GCOV format" depends on GCOV_KERNEL - default GCOV_FORMAT_AUTODETECT + default GCOV_FORMAT_3_4 if CC_IS_GCC && GCC_VERSION < 40700 + default GCOV_FORMAT_4_7 ---help--- - The gcov format is usually determined by the GCC version, but there are + The gcov format is usually determined by the GCC version, and the + default is chosen according to your GCC version. However, there are exceptions where format changes are integrated in lower-version GCCs. - In such a case use this option to adjust the format used in the kernel - accordingly. - - If unsure, choose "Autodetect". - -config GCOV_FORMAT_AUTODETECT - bool "Autodetect" - ---help--- - Select this option to use the format that corresponds to your GCC - version. + In such a case, change this option to adjust the format used in the + kernel accordingly. config GCOV_FORMAT_3_4 bool "GCC 3.4 format" diff --git a/kernel/gcov/Makefile b/kernel/gcov/Makefile index c6c50e5..ff06d64 100644 --- a/kernel/gcov/Makefile +++ b/kernel/gcov/Makefile @@ -4,5 +4,3 @@ ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"' obj-y := base.o fs.o obj-$(CONFIG_GCOV_FORMAT_3_4) += gcc_3_4.o obj-$(CONFIG_GCOV_FORMAT_4_7) += gcc_4_7.o -obj-$(CONFIG_GCOV_FORMAT_AUTODETECT) += $(call cc-ifversion, -lt, 0407, \ - gcc_3_4.o, gcc_4_7.o) -- 2.7.4