Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1752523lqb; Sun, 26 May 2024 16:17:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV85HTuJ4MR7RNBvkqnI85WOvyN4ZmxLK2kdi+1k31dCIxtczU3lZI1iKXgxqGdBaOU46oYWK8+dkNJFS6dFZcwy6FpB70iagQnCvPu5g== X-Google-Smtp-Source: AGHT+IGvSjFTjoSuGZnj0X1VBrZKiI+TSrxFf+wlz/B6dsPE5IPI4aqkMD5FRN/Zw3zxPaZzDKqm X-Received: by 2002:adf:f00f:0:b0:354:f304:cd36 with SMTP id ffacd0b85a97d-35538a61547mr7119678f8f.70.1716765450227; Sun, 26 May 2024 16:17:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716765450; cv=pass; d=google.com; s=arc-20160816; b=FVtptB1V60JiqeBZ7mXyxrAaqrWH3db7vcO6j+LNj+XDYEVMLJIVJsIu8VaZnSgILf 8Ii6/b+SfixhgtK5xjmI7k57mHfji4BzFcV5nVynjF0K/Resy6URh4+19A0U9g7tX2ce nE/1DevFVvbqvWV07rYAtRCapDn4NcPXhKVsf7vYhDdJIkq4C1sL/Es6KliOq5C2vTVH 5MOf7iSC7Q6KiG59Q8CLaaTso4nQ1ylMGbTOM41vnqbo8OQe0zsKINqWlQOyfcMgkrwc y3V00riqLaybQOG8l0bUZ184ITk+0uJIjA2+toXeH3u5g49+17ysinRRO6H5Y3DwN76J +icw== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=WPr96BTcQlnjU3b040vfY0T/sqr+r8ZOoG4Zo25fOko=; fh=FtolZJ2+ObKgGae5lZ3frF7z3j1LrL0x7qZfyvyhllc=; b=HustK+AHpp40j+tKKki388hd+Ozz0nxeOE8LQabhj1GklbEwytcME5dx/SatgrKD9j qsKMCYicA7pGpg+neKlgr1lLoG1Eo+P6xbjl63H0x1zPLBKSbN4QNxSb1+J0k0bNO/ZR V0MWmdqUIL1vMy5U7wCdgWf/yM6Gma7UfQ8Yc+QJmCZLwOmXvOZTEvHeKls92aOoJ3cc nVbbUXhndr9GSOJTAZE/++bQw5MZGVcJeDPLpPMYs4iF8SvUpX2yFPt2LEoH1QGYWw1i W4org13JBc6HPRrp98tE5QLBsukLVkmzCg8Vd+71V7C9bEFIvaD5Qg4oT3pRvNaG0Iqo OEGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dkv3zkx9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189897-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c8005b9si313719366b.81.2024.05.26.16.17.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 16:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dkv3zkx9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189897-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 am.mirrors.kernel.org (Postfix) with ESMTPS id F0D831F219D3 for ; Sun, 26 May 2024 23:17:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F239513A272; Sun, 26 May 2024 23:17:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dkv3zkx9" 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 194AD1C27; Sun, 26 May 2024 23:17:23 +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=1716765444; cv=none; b=b4ZSd+MKCIrt8aLK343RjiK3/GM50wgM13hzQWEq1IjbsgL4JaQjjj37w8QMrJKTN2YgbhY2+jiYff8/Hbbsm1Q/o4kcVe/OaRAcw9heVY3JPm+xsB8lAux62qPiLEtziOQu1GLWCha9D9zCHULxZn+GZ5tFP9oW4K1ttk0OFSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716765444; c=relaxed/simple; bh=lqV71dyGNzoKcV/Iv3TfEMBsKD/L3s54JM57KtyVYmo=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=Nny6eokHVuYQ9c5fLZD9WjXop6+s0byi4h3tCZhEopsbV2w0FOMX3UwVZmoEBZvZYhhNJqR20leDeicz1xoqq7QsopujssYmZ3K6plrct7zx2IQdUx2aEsf4ipr4dK1s08t+/9u9nw1VlKhGQI+RWtu6cTbvTgwk9v9MC1rLaCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dkv3zkx9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E861C2BD10; Sun, 26 May 2024 23:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716765443; bh=lqV71dyGNzoKcV/Iv3TfEMBsKD/L3s54JM57KtyVYmo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dkv3zkx9qPFKNDRFoa351crEdyWzXNNHPoLvdZYvN+w9aarqlWKSPo/pay8YVUgG/ KjRcXMefFa4YFPGgaXXDoDTzKin5YTBi6AeCNAu6ifEyMu86Y18E6bqObOnPvFPj5t jEK6mSBl1Uja7hd6WHM/pKJ4HDtmCPS5z4ANq0kaESRfFV21H1zixHj0YQAnb9nqej wJHrQnbS0VASvaem+zQAo77fql3mV31eb8VtvNT5ltEOB+FHkrSm3l1c8dWqCFimrO TkY9gw/w3wmdKswCRNkDDXSQkomyAbormsKri2kGqHRRspPPtgkz4Ud3fZ5yPNj7ef CXRiBh/0MMPMA== Date: Mon, 27 May 2024 08:17:19 +0900 From: Masami Hiramatsu (Google) To: kernel test robot Cc: Tatsuya S , rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, mathieu.desnoyers@efficios.com, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] ftrace: Fix stack trace entry generated by ftrace_pid_func() Message-Id: <20240527081719.a3f5b4c270d54a0453e3464f@kernel.org> In-Reply-To: <202405262232.L4XH8q6O-lkp@intel.com> References: <20240526112658.46740-1-tatsuya.s2862@gmail.com> <202405262232.L4XH8q6O-lkp@intel.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 26 May 2024 22:51:53 +0800 kernel test robot wrote: > Hi Tatsuya, > > kernel test robot noticed the following build warnings: > > [auto build test WARNING on linus/master] > [also build test WARNING on rostedt-trace/for-next v6.9 next-20240523] > [cannot apply to rostedt-trace/for-next-urgent] > [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] > > url: https://github.com/intel-lab-lkp/linux/commits/Tatsuya-S/ftrace-Fix-stack-trace-entry-generated-by-ftrace_pid_func/20240526-193149 > base: linus/master > patch link: https://lore.kernel.org/r/20240526112658.46740-1-tatsuya.s2862%40gmail.com > patch subject: [PATCH] ftrace: Fix stack trace entry generated by ftrace_pid_func() > config: x86_64-buildonly-randconfig-002-20240526 (https://download.01.org/0day-ci/archive/20240526/202405262232.L4XH8q6O-lkp@intel.com/config) > compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240526/202405262232.L4XH8q6O-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202405262232.L4XH8q6O-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > >> kernel/trace/ftrace.c:102:6: warning: no previous prototype for function 'ftrace_pids_enabled' [-Wmissing-prototypes] > 102 | bool ftrace_pids_enabled(struct ftrace_ops *ops) > | ^ > kernel/trace/ftrace.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > 102 | bool ftrace_pids_enabled(struct ftrace_ops *ops) > | ^ > | static > 1 warning generated. This is because the prototype in linux/ftrace.h is placed in the #ifdef CONFIG_DYNAMIC_FTRACE block. The prototype needs to be moved outside of the block. Thank you, > > > vim +/ftrace_pids_enabled +102 kernel/trace/ftrace.c > > 101 > > 102 bool ftrace_pids_enabled(struct ftrace_ops *ops) > 103 { > 104 struct trace_array *tr; > 105 > 106 if (!(ops->flags & FTRACE_OPS_FL_PID) || !ops->private) > 107 return false; > 108 > 109 tr = ops->private; > 110 > 111 return tr->function_pids != NULL || tr->function_no_pids != NULL; > 112 } > 113 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki -- Masami Hiramatsu (Google)