Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp407016rwn; Wed, 14 Sep 2022 23:59:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR4s9uQapMM+w6mxacCPOCylP8DyOh0ZvoKNIPevjv4RBZIqvxoW486Q3aurAqGl0xjES1mN X-Received: by 2002:a17:906:8a78:b0:77a:b1bb:44 with SMTP id hy24-20020a1709068a7800b0077ab1bb0044mr19288708ejc.200.1663225184841; Wed, 14 Sep 2022 23:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663225184; cv=none; d=google.com; s=arc-20160816; b=TSr9/8KIUK/xCspGZrCtTplNh2V5GeTpskWuUGhURz4hWCTmg6j5uG3o2b4P4xIjuA lXTi19x2AsnzljbFo4rDVunlEWZv4G0H1Y97uxRIM0aiGqPZT3L1+fuNOrCPQENfZXNW lia2PkjxbJYajiOOmb6xJGb5R/zuf/EscmtrwDt92K4Orr8pXLRFzq90WTTz7FyX8CFg G2/kQ8/kZ6aQGGN0wC87pbuCNFxARPujuu7lXTBJrEt2af3GPi966AQDDdwNJh0nQzKH P3lqPwesn/Ro1Y4qJ/Q9Lj4Jj32VXz78rAPkXDFnL9T+80n6wNEFcRtOKP1KNxKIDDn+ 6Ndw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:user-agent:in-reply-to:references:cc:to:subject:from :date:dkim-signature; bh=VEbTNybxmKmxaaOiLXroQ2jlKviqDhSyY+6f1s4O6xw=; b=rJRMLHVykjURHc2qJdcIvfYIyxBsKGh/RGN1jA4rrdPBMi4w56CfsR+DDLv16EAUVO 2i02SscbG2UMtC+oYsgpSuk76ppyGLF+Knn8sQdS2BwCJ3+jYok1gUkipVOAb3hzFEMy zB3F2eUFbd18QAT/dY1+NQQlXWILcM44LWmlsUmw4ZcZfuvcSb4E26j+B1yvBnOzdR2O OtvAUbrOB11E8y4OMn8ON7HwvRhsGSKAD2tgCxN+3C4wHkP6ux5Xeaje1w48oV6H4YXm K6xJ7ddY/uR5hNYFbROo+i6NSkBn1oN6GizVylXbQdA33Am/Oo/LHm73+ittiTT72g0j XCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=COZ5EBb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs20-20020a1709072d1400b00773db351c39si15094244ejc.64.2022.09.14.23.59.18; Wed, 14 Sep 2022 23:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=COZ5EBb4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbiIOG5e (ORCPT + 99 others); Thu, 15 Sep 2022 02:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbiIOG5D (ORCPT ); Thu, 15 Sep 2022 02:57:03 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9345B80368 for ; Wed, 14 Sep 2022 23:56:54 -0700 (PDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28F6UDZB024030; Thu, 15 Sep 2022 06:56:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : subject : to : cc : references : in-reply-to : message-id : content-type : content-transfer-encoding : mime-version; s=pp1; bh=VEbTNybxmKmxaaOiLXroQ2jlKviqDhSyY+6f1s4O6xw=; b=COZ5EBb4ZZZzQ0XkndCKGyHLeCavwbBoMBrIFyPhC+R0WWSZ3NC7aNllaGH5uUjfJ4Hu ItpeFlua7fqGv2gCNdzo0+L8T0D/CXXFUflR7bjNJ6Mgd+KSJDuIguyafQwZ0M+MGDZw GhzcqaUF2h2lrDFZ27nMIYmRFzU3RCxW4y0aPQzxuEVTucuiq0rUzAWN3bUNfoO4sul9 IhofHbMVp7OvrnJ3HAr54GdPZc4s+MxMWPo3fTQKvrgYCD5yzD6J4kQeN4i4/wzG9Bti Zj1i4WiK9xDvMInYre+t44SBraNNUlx5ftuQd4wSR1IA40j2Mg9m+3DARmsM0OmeWe0t pA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3jkvuuv8s7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 06:56:14 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28F5woB1031355; Thu, 15 Sep 2022 06:56:13 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3jkvuuv8r5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 06:56:13 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28F6pwgf029024; Thu, 15 Sep 2022 06:56:11 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03fra.de.ibm.com with ESMTP id 3jjy25sgsn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 06:56:11 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28F6u9bf41943374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Sep 2022 06:56:09 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 206F142041; Thu, 15 Sep 2022 06:56:09 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 94B354203F; Thu, 15 Sep 2022 06:56:08 +0000 (GMT) Received: from localhost (unknown [9.43.117.180]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 15 Sep 2022 06:56:08 +0000 (GMT) Date: Thu, 15 Sep 2022 12:26:06 +0530 From: "Naveen N. Rao" Subject: Re: [PATCH v3 11/16] objtool: Add --mnop as an option to --mcount To: linuxppc-dev@lists.ozlabs.org, kernel test robot , Sathvika Vasireddy Cc: aik@ozlabs.ru, chenzhongjin@huawei.com, christophe.leroy@csgroup.eu, jpoimboe@redhat.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, mbenes@suse.cz, mingo@redhat.com, mpe@ellerman.id.au, npiggin@gmail.com, peterz@infradead.org, rostedt@goodmis.org References: <20220912082020.226755-12-sv@linux.ibm.com> <202209130240.GpGMxW7T-lkp@intel.com> In-Reply-To: <202209130240.GpGMxW7T-lkp@intel.com> User-Agent: astroid/4d6b06ad (https://github.com/astroidmail/astroid) Message-Id: <1663223588.wppdx3129x.naveen@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: x-5wh-fBxHda3hOfVgmV9Jba-vKB6N3Y X-Proofpoint-GUID: bFSofjGk_B3eU0eLu_FuXhJNh8zjDUcx Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-15_02,2022-09-14_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 adultscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 clxscore=1011 mlxscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2208220000 definitions=main-2209150034 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kernel test robot wrote: > Hi Sathvika, >=20 > Thank you for the patch! Yet something to improve: >=20 > [auto build test ERROR on powerpc/topic/ppc-kvm] > [also build test ERROR on linus/master v6.0-rc5] > [cannot apply to powerpc/next masahiroy-kbuild/for-next next-20220912] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] >=20 > url: https://github.com/intel-lab-lkp/linux/commits/Sathvika-Vasireddy= /objtool-Enable-and-implement-mcount-option-on-powerpc/20220912-163023 > base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git= topic/ppc-kvm > config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20220913= /202209130240.GpGMxW7T-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 > reproduce (this is a W=3D1 build): > # https://github.com/intel-lab-lkp/linux/commit/ca5e2b42c0d4438ba= 93623579b6860b98f3598f3 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Sathvika-Vasireddy/objtool-Enabl= e-and-implement-mcount-option-on-powerpc/20220912-163023 > git checkout ca5e2b42c0d4438ba93623579b6860b98f3598f3 > # save the config file > mkdir build_dir && cp config build_dir/.config > make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash >=20 > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot Thanks. >=20 > All errors (new ones prefixed by >>): >=20 >>> cc1: error: '-mnop-mcount' is not implemented for '-fPIC' CONFIG_NOP_MCOUNT is used for FTRACE_MCOUNT_USE_CC, so instead of: diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index f9920f1341c8..a8dd138df637 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -189,6 +189,7 @@ config X86 select HAVE_CONTEXT_TRACKING_USER_OFFSTACK if HAVE_CONTEXT_TRA= CKING_USER select HAVE_C_RECORDMCOUNT select HAVE_OBJTOOL_MCOUNT if HAVE_OBJTOOL + select HAVE_NOP_MCOUNT if HAVE_OBJTOOL_MCOUNT select HAVE_BUILDTIME_MCOUNT_SORT select HAVE_DEBUG_KMEMLEAK select HAVE_DMA_CONTIGUOUS I think you should do: + select HAVE_NOP_MCOUNT if FTRACE_MCOUNT_USE_OBJTOOL I was hoping we could reuse CONFIG_NOP_MCOUNT seeing as it is only used=20 by s390, but I now wonder if it is better to just keep that separate. We=20 could introduce HAVE_OBJTOOL_NOP_MCOUNT for objtool instead. - Naveen