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 C746CC433F5 for ; Tue, 15 Mar 2022 20:48:07 +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=9jl0IIbsnV1x/Cnv3q+qpAYtFotBIlR174RfoAKKeQA=; b=B02d+HEVPDqX/q 0DugmdwWsEY+t4lCVAsU4z3wDgQhRUAY/jCN/C/EyzfzCz9fv7X4Iveo2WeFj5hClmQMfTECLYBLE TZrZtxLoRYf92yVMlhntopjiK8K0B6qZve3MNQtvy5ubWj9y9aDibDhDJn4b8ie6tr2uc3v6XA6EN K31D23llduKasXMLMXYlPsogPQHRxOoz5Pf2aiS3Jn8BCnvI1qqxUbbal3lEO4KHOMcKq0hMmsyyN 46JMRN/UXULd20eIPLT7mPpoNP5RkdRROSD3MwcCJH6TMsye8vKZTX5VOaiSMCe791nUE3IshhwTb ZP9j+0VO6YUEf/p+9eTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUE3e-00Aapp-Fx; Tue, 15 Mar 2022 20:46:18 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUE3a-00AapU-BI for linux-arm-kernel@lists.infradead.org; Tue, 15 Mar 2022 20:46:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647377174; x=1678913174; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JS8e0yVWcXTi/n5NTFQIXUWYwL7puOFZOxs9LM+HZ+c=; b=n0MkbXUWYaUYaq8eSf3hEaWb0BIcsDLUSxasn7kH6qy6M3N2EpyEJcgm G8EWQ2z/Lgfao6L8k/UDc8zfv0IV9kEQHrvwrm8t1pnJgvVNkIvlmyDJf NCY8vS+av+xdChY+oubngu20NIAWHBvfudksrWzZjnCJdk/MQEF5AG+3E 6V/BKjS70lwiDuSyH6eX7bKP+fa39mJKoj8NE8gBB9PqMhi43aCfRpHb3 bJPaX8cVbe3EaLYJYErjvxgKduYAi9LOkAAAb9p1VjPMoVTtoLqxCkjAE 33u3szzSsg88wcw7wQQFYvAPcJzAUGLkFU6B6UwsEY6rIX6+xtbl7pe3l w==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="253979263" X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="253979263" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 13:46:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,184,1643702400"; d="scan'208";a="498179912" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 15 Mar 2022 13:46:11 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nUE3W-000BUi-9q; Tue, 15 Mar 2022 20:46:10 +0000 Date: Wed, 16 Mar 2022 04:45:33 +0800 From: kernel test robot To: Zhen Lei , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Zhen Lei , James Morse , Christoffer Dall Subject: Re: [PATCH] arm64: add the printing of tpidr_elx in __show_regs() Message-ID: <202203160424.FIKayRYG-lkp@intel.com> References: <20220315110926.1060-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220315110926.1060-1-thunder.leizhen@huawei.com> 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-20220315_134614_463159_535F8BC0 X-CRM114-Status: GOOD ( 17.66 ) 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 Zhen, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on arm-perf/for-next/perf arm/for-next xilinx-xlnx/master soc/for-next kvmarm/next v5.17-rc8 next-20220315] [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/Zhen-Lei/arm64-add-the-printing-of-tpidr_elx-in-__show_regs/20220315-191234 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: arm64-randconfig-r024-20220313 (https://download.01.org/0day-ci/archive/20220316/202203160424.FIKayRYG-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/1a42e34104d70b0b90fe074ba96f2c04d33ffb23 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Zhen-Lei/arm64-add-the-printing-of-tpidr_elx-in-__show_regs/20220315-191234 git checkout 1a42e34104d70b0b90fe074ba96f2c04d33ffb23 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/asm-generic/bug.h:22, from arch/arm64/include/asm/bug.h:26, from include/linux/bug.h:5, from arch/arm64/include/asm/cpufeature.h:19, from arch/arm64/include/asm/hwcap.h:9, from arch/arm64/include/asm/arch_timer.h:12, from arch/arm64/include/asm/timex.h:8, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/compat.h:10, from arch/arm64/kernel/process.c:9: arch/arm64/kernel/process.c: In function '__show_regs': >> arch/arm64/kernel/process.c:220:24: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'void *' [-Wformat=] 220 | printk("tpidr : %016lx\n", this_cpu_ptr(NULL)); | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap' 418 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ arch/arm64/kernel/process.c:220:17: note: in expansion of macro 'printk' 220 | printk("tpidr : %016lx\n", this_cpu_ptr(NULL)); | ^~~~~~ arch/arm64/kernel/process.c:220:38: note: format string is defined here 220 | printk("tpidr : %016lx\n", this_cpu_ptr(NULL)); | ~~~~~^ | | | long unsigned int | %016p vim +220 arch/arm64/kernel/process.c 200 201 void __show_regs(struct pt_regs *regs) 202 { 203 int i, top_reg; 204 u64 lr, sp; 205 206 if (compat_user_mode(regs)) { 207 lr = regs->compat_lr; 208 sp = regs->compat_sp; 209 top_reg = 12; 210 } else { 211 lr = regs->regs[30]; 212 sp = regs->sp; 213 top_reg = 29; 214 } 215 216 show_regs_print_info(KERN_DEFAULT); 217 print_pstate(regs); 218 219 if (IS_ENABLED(CONFIG_SMP)) > 220 printk("tpidr : %016lx\n", this_cpu_ptr(NULL)); 221 222 if (!user_mode(regs)) { 223 printk("pc : %pS\n", (void *)regs->pc); 224 printk("lr : %pS\n", (void *)ptrauth_strip_insn_pac(lr)); 225 } else { 226 printk("pc : %016llx\n", regs->pc); 227 printk("lr : %016llx\n", lr); 228 } 229 230 printk("sp : %016llx\n", sp); 231 232 if (system_uses_irq_prio_masking()) 233 printk("pmr_save: %08llx\n", regs->pmr_save); 234 235 i = top_reg; 236 237 while (i >= 0) { 238 printk("x%-2d: %016llx", i, regs->regs[i]); 239 240 while (i-- % 3) 241 pr_cont(" x%-2d: %016llx", i, regs->regs[i]); 242 243 pr_cont("\n"); 244 } 245 } 246 --- 0-DAY CI Kernel Test Service 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