From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2838C433EF for ; Mon, 13 Dec 2021 19:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=w8+nDcy8HOEtkag/tepma0EHoswT4v1cQnKoNsDln0I=; b=bN7HwQTwUcx9+3 yi7gxpTUhXShMYWkaRopnLgJY/lLRQvpmWNZBz5nNemMjBcaVZpos5x6g5Cxs19s/rt2uEsN5PGbx ShWaPXCgWyzSutB89vACH6ftmWAN7EtMtkiTL3zxDYHxvvijvyzJggthE1sW1kUkVo7jSSznE6nSy SBiX2NsTULlxoS+6vNMggWXpchgryAEo/E84zmKXLx12BXrEtA84RvzjBFWqBub3y2wcjck6N+gbj DdUH27VF+P8Bb8Rh4Lu6Iw8l/rFCj5FbTzVoy06enIIhtoNFvxN7N2SXbG/JQAj1LGPZ3rzIyRwlf vMcLiZRcDBpftwOMfU0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrIo-00BCYW-J6; Mon, 13 Dec 2021 19:48:02 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mwrIj-00BCXc-VH for linux-arm-kernel@lists.infradead.org; Mon, 13 Dec 2021 19:47:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639424877; x=1670960877; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=BXOlpb85cWRWIL2HuIS1h4sB0JpmQfhe0W8/DKIs/2A=; b=ihUMe3jJodfiXWsTWBxy2V8Jj5G2r+MdUCqtR3EpzRGpPQAQ1TGkjbGz msdAV+yF+HLHdRmWJRBlIzFQjX2Ng4hckiVtlQpWetbfH29Dia+JB9oqk DpenlZes1rMxbNRJYrT5aUl1mI4M3vfzTxu71M2HftMk+U6G1xgdbUbzu tB4KsacG8wV5idb1yKxWlmg0tE22TOxgC+mA+GzWFMBAOncWx+i/jZB44 t2Tsqcsf1YcHdVftKxdCxqJXMmMjMYY8kREvucVO7rzsELRt+5PdGUoGo yPweRz03FA24baioSuFRVtHp+NrWzv6PIeWojL8Anmrm5kHsjWAGmhhj8 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10197"; a="325086500" X-IronPort-AV: E=Sophos;i="5.88,203,1635231600"; d="scan'208";a="325086500" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2021 11:47:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,203,1635231600"; d="scan'208";a="603838051" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 13 Dec 2021 11:47:54 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mwrIg-00070X-1R; Mon, 13 Dec 2021 19:47:54 +0000 Date: Tue, 14 Dec 2021 03:47:22 +0800 From: kernel test robot To: Leo Yan , Mathieu Poirier , Suzuki K Poulose , Mike Leach , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Leo Yan Subject: Re: [PATCH v2 2/4] coresight: etm4x: Don't use virtual contextID for non-root PID namespace Message-ID: <202112140333.58pdbVRp-lkp@intel.com> References: <20211213121323.1887180-3-leo.yan@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211213121323.1887180-3-leo.yan@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211213_114758_068239_4BCC3F41 X-CRM114-Status: GOOD ( 14.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Leo, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.16-rc5] [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] url: https://github.com/0day-ci/linux/commits/Leo-Yan/coresight-etm-Correct-PID-tracing-for-non-root-namespace/20211213-201632 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2585cf9dfaaddf00b069673f27bb3f8530e2039c config: arm64-randconfig-r034-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140333.58pdbVRp-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/0day-ci/linux/commit/3b7eceb25155c98432dea4821c4fc571b44d72e3 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Leo-Yan/coresight-etm-Correct-PID-tracing-for-non-root-namespace/20211213-201632 git checkout 3b7eceb25155c98432dea4821c4fc571b44d72e3 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/hwtracing/coresight/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/hwtracing/coresight/coresight-etm4x-sysfs.c:2118:7: error: implicit declaration of function 'task_is_in_init_pid_ns' [-Werror,-Wimplicit-function-declaration] if (!task_is_in_init_pid_ns(current)) ^ drivers/hwtracing/coresight/coresight-etm4x-sysfs.c:2139:7: error: implicit declaration of function 'task_is_in_init_pid_ns' [-Werror,-Wimplicit-function-declaration] if (!task_is_in_init_pid_ns(current)) ^ drivers/hwtracing/coresight/coresight-etm4x-sysfs.c:2169:7: error: implicit declaration of function 'task_is_in_init_pid_ns' [-Werror,-Wimplicit-function-declaration] if (!task_is_in_init_pid_ns(current)) ^ drivers/hwtracing/coresight/coresight-etm4x-sysfs.c:2193:7: error: implicit declaration of function 'task_is_in_init_pid_ns' [-Werror,-Wimplicit-function-declaration] if (!task_is_in_init_pid_ns(current)) ^ 4 errors generated. vim +/task_is_in_init_pid_ns +2118 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c 2105 2106 static ssize_t vmid_val_show(struct device *dev, 2107 struct device_attribute *attr, 2108 char *buf) 2109 { 2110 unsigned long val; 2111 struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); 2112 struct etmv4_config *config = &drvdata->config; 2113 2114 /* 2115 * Don't use virtual contextID tracing if coming from a PID namespace. 2116 * See comment in ctxid_pid_store(). 2117 */ > 2118 if (!task_is_in_init_pid_ns(current)) 2119 return -EINVAL; 2120 2121 spin_lock(&drvdata->spinlock); 2122 val = (unsigned long)config->vmid_val[config->vmid_idx]; 2123 spin_unlock(&drvdata->spinlock); 2124 return scnprintf(buf, PAGE_SIZE, "%#lx\n", val); 2125 } 2126 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel