Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1090234rdb; Fri, 16 Feb 2024 05:14:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWcJ3hDSiGpkGgMLpviHCEbhJ9Eh49RktUbUramgQifKNz2KLdpI73UaPMwqP/mRPQ2+ctI3FibwFTtgiA0tlrhm25Naz+YKjV8aNaCNw== X-Google-Smtp-Source: AGHT+IF7MhtXoGRQkYGRxoHDH14abFQGy1cJiDpuN1NT66/6j3fZSZEtR3V8TK0tre14w6iomuuT X-Received: by 2002:a17:90a:ae12:b0:298:ae3d:eb8c with SMTP id t18-20020a17090aae1200b00298ae3deb8cmr6493363pjq.22.1708089266660; Fri, 16 Feb 2024 05:14:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708089266; cv=pass; d=google.com; s=arc-20160816; b=Smo20W1X1GCqXBMlYuZnNZxhHevRB45Tgk+zkSTwmRXW32OL/CPai5Q0qUKkRzTfLs Xl4+a3dKyIuNea9YXh9m4LRtqNVAi8LFijq0rO9Tb2wWJLVSYtJr3m7HkDidUP5vnktm VZDQVv9aS5A8Vv/WFXpkwOixP9fhV50VperOTjjRcB2tO/F3BVhHTl9AsT7GxiHpwMse FpJpDLn/pDebR2BbeGlWNF8J6Pj4Byx3ZpfkjN/IFeRk7kv9NTkSKVzPlFNUVUoWPIbY 145jIJa8aysqnFW6SHPg16sxrM66lPeERlPAfpRdWRFO4iKFQRNhmEiufNHxHasO9Dem 5hHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:autocrypt :from:references:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=3s+4FGQGfhDXMkAG+h9Yj5T4moVUyHj7hFzcqI04ZxY=; fh=CZcJbRUh1KabY/T5KZynxfenjWWEbdwA8npPVOAe8FM=; b=nWKxQvF/23VgM0tmvV3PGun1/SYc8K8K/geruBSfCTmcXELI0rb42xKLUpX0AlOToy bcEVv/JGM4xf/yMP5j4zlh4QK0u5p4wR22epZB72QBnRLv8WK4jLlv0vsO2KRQ8L19GP +LpefME7gr2hDDo3mFCxPhaaCV89NHSfn8pAZBoXXMJTSzuYshpcZIBA1g8FmvgNeoYb Rgzfsg4F2oXfQradQWiC+zk4RJujchaw37KX0iWDJe88Ur9ePrIxH05/fOgXBGH3csPe DVk/upX7JV74cdD+hdMPx0QQWhcxvVRp8AfDY6CArDi8V17NpVld/k+R936+UrYkzvlI NvWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=V4kKaAhP; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-68627-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ee15-20020a17090afc4f00b002972e2132eesi3138954pjb.64.2024.02.16.05.14.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 05:14:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68627-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=V4kKaAhP; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-68627-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5C3B6288823 for ; Fri, 16 Feb 2024 13:14:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F850129A6E; Fri, 16 Feb 2024 13:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b="V4kKaAhP" Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 C606878695; Fri, 16 Feb 2024 13:14:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089260; cv=none; b=DgRoUUjlEIYggB14RTeHQD0NFOLGotN3BKMO69U3MDuBwj7V0qFnBHS44ji48DR1GwOZH8bMe3LNd2vVieSyt47Ip8CFW4POmOxHhpNpjD51/hbuVvAjYwTuhK/nUUdwQyLgsx5hMphvzX/ZGK2cRIpsMUGJzgvRI3xCuL6lZds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708089260; c=relaxed/simple; bh=f0LUsS9SDzP69bj7Fmp7ctSUX2hl6rFEkJO/i6dzlZc=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=FOjdtX3cFRIK5osdgx3+pM0mGEsfjv1xFRhVMld1y1Ktg2gvZqFoannx7pgaailOWDjvcLLYfEhdAzClGOCjCavH9HZ+dh0J6qGx1n2lBNMfsOYBQyPXSWEzbj3zf8S5j9fJjJzXGE6D0TUsVnOuKFnQBfn7qvJLs1J4B8aaoEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=deller@gmx.de header.b=V4kKaAhP; arc=none smtp.client-ip=212.227.17.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1708089236; x=1708694036; i=deller@gmx.de; bh=f0LUsS9SDzP69bj7Fmp7ctSUX2hl6rFEkJO/i6dzlZc=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=V4kKaAhPbVZ5jB0TiDaes3SlMfjWRvJ4pZ25o6HFjeXnfmKKpqFJIwkSdrB1Ogke bWRWvZzR9EBWnbf/oHHYaUVywBrf4g3Ze5+ZGTDrf8Spyp9a4zQkdJLVTrzgiRZBh OmKf+dHPiPiHhmqhU8jXDJ/2FNF4p8WRutFIJj3BMTCW3PRGlqT0WJzC0QEVLglGo pGLK4vvzYp6U7IH3T1ziofzhXsBMAwiMOP8fWhqi2Eh93HabA0mO9oulRTTi1Dd63 OPKvCcJzCZPTABn0qLUSlm8egbwH+NuihLPWYwWCkyYmNsAV0kEP2U1nzJgug5Qfp DDUmJFSOYpgJiXoq5A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.55] ([94.134.148.214]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N95eJ-1qvWVA3Z27-0164q4; Fri, 16 Feb 2024 14:13:55 +0100 Message-ID: <2eac5921-1bf4-4013-8002-f62a96d71829@gmx.de> Date: Fri, 16 Feb 2024 14:30:14 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check Content-Language: en-US To: Max Kellermann , rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, James.Bottomley@HansenPartnership.com, linux-trace-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240211224314.169314-1-max.kellermann@ionos.com> From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= xsFNBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSYzaHkcHrjn4cQjc3CffXnUVYwlo8EYOtAHgMDC39s9a7S90L 69l6G73lYBD/Br5lnDPlG6dKfGFZZpQ1h8/x+Qz366Ojfq9MuuRJg7ZQpe6foiOtqwKym/zV dVvSdOOc5sHSpfwu5+BVAAyBd6hw4NddlAQUjHSRs3zJ9OfrEx2d3mIfXZ7+pMhZ7qX0Axlq Lq+B5cfLpzkPAgKn11tfXFxP+hcPHIts0bnDz4EEp+HraW+oRCH2m57Y9zhcJTOJaLw4YpTY GRUlF076vZ2Hz/xMEvIJddRGId7UXZgH9a32NDf+BUjWEZvFt1wFSW1r7zb7oGCwZMy2LI/G aHQv/N0NeFMd28z+deyxd0k1CGefHJuJcOJDVtcE1rGQ43aDhWSpXvXKDj42vFD2We6uIo9D 1VNre2+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nqYK3/yWf FwRDcGV6nxanxZGKEkSHHOm8jHwvQWvPP73pvuPBEPtKGLzbgd7OOcGZWtq2hNC6cRtsRdDx 4TAGMCz4j238m+2mdbdhRh3iBnWT5yPFfnv/2IjFAk+sdix1Mrr+LIDF++kiekeq0yUpDdc4 ExBy2xf6dd+tuFFBp3/VDN4U0UfG4QJ2fg19zE5Z8dS4jGIbLg== In-Reply-To: <20240211224314.169314-1-max.kellermann@ionos.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:lp3J+gk+fOmyD1YDJc2WUVnFI0sDL9yYEI89g3O1Z/HwLiqp5D6 niRcNqXUi9ZDjEag6L1hF0qBAGHsW/6dD0pCSV2ZwOpa9kMbYiHAc371hE3usDlBPlq1E0U TItUW741aD9oe7w+O3okXpz6DW0ZlFHXO8OlMYCel7qejjQst3NUPS46NG4PPlStxnCt+A+ 77ifW3Kor/IXyfauP/h+g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:whPwJXuJBm4=;4ST2qXZ2d/a/PxkhogzX1I3vrw2 m27z4gJeBYQF/1tXxcUKSuZSx0nRsHI6sfa18ZZQ95X46RgzkygFBl6D2S+Q2w8jJDzENV6P3 PxcirTUAmHXlKj0Q8H8eu4BLALD0bOfVjaHNPXbH7NHzkUT8CLAWEZWtdg2V6pGarweaEIwpY aJFimgaQ6FqxwDrR5SJrkyC3yjpkz5p8RFsUIiZqRwJWOkyyQe8bEuZtXU/N3b3kQnWRZxNsZ F0uosfueK6yFKMaRUoHIYaplw4SznCMWg89YKLWgchtUuE6iignm5NS1fRsvil2HgB9foHiGm 6LH9MEDYprVpPVS1UV1u3iqiWIpS+318eE8fyVAQI5jrJiSC8+eyTEj8K0sz25v768s4eWnLM OV5N5w0v8d0TFqjt879x+uSE/HsN3TIEHwHuIo/IcnseWEnlwCeeY3fsVc/IY7hvDIAXZPj+8 5kzfy0G2KYZ6WYXl842/1Pnzc95sgzOTpsZbFy1QudhPXXAWkTSw4hLy1GoR5ixABNPWaXghv VK+1YtG1b1QZhrSDIWta9T3gbZCvSJZZx6bbL7CUzrUulP8a8J4ApPPKJGTn1feWTl7bJRW15 qQ6d0F+IezU2LouzluLfRzMxTqNAUt30y6vDvi4dH/eOAps9BgxvuyyuGhmNV/0VNVKeZxZke tvzLEUUAxss9VAzTD64JifYf+1l95HpVlFdY4dRsjorosle9yKeWAc/5BPkIf2JUsGLJ/ZIWM xSiy3ibXo8jmaUvVppSjbI1H68j4DPfcVrsKwFPXLKlHXrYStviKCqSTiFAqFlhqtU9SiHwEb OaIoizpmkBT03C/DoduCWFYUrPE8umGTI2KQew7fd4CUE= On 2/11/24 23:43, Max Kellermann wrote: > Fixes a bug revealed by -Wmissing-prototypes when > CONFIG_FUNCTION_GRAPH_TRACER is enabled but not CONFIG_DYNAMIC_FTRACE: > > arch/parisc/kernel/ftrace.c:82:5: error: no previous prototype for 'ft= race_enable_ftrace_graph_caller' [-Werror=3Dmissing-prototypes] > 82 | int ftrace_enable_ftrace_graph_caller(void) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > arch/parisc/kernel/ftrace.c:88:5: error: no previous prototype for 'ft= race_disable_ftrace_graph_caller' [-Werror=3Dmissing-prototypes] > 88 | int ftrace_disable_ftrace_graph_caller(void) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Signed-off-by: Max Kellermann applied to parisc git tree. Thanks! Helge > --- > arch/parisc/kernel/ftrace.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/parisc/kernel/ftrace.c b/arch/parisc/kernel/ftrace.c > index d1defb9ede70..621a4b386ae4 100644 > --- a/arch/parisc/kernel/ftrace.c > +++ b/arch/parisc/kernel/ftrace.c > @@ -78,7 +78,7 @@ asmlinkage void notrace __hot ftrace_function_trampoli= ne(unsigned long parent, > #endif > } > > -#ifdef CONFIG_FUNCTION_GRAPH_TRACER > +#if defined(CONFIG_DYNAMIC_FTRACE) && defined(CONFIG_FUNCTION_GRAPH_TRA= CER) > int ftrace_enable_ftrace_graph_caller(void) > { > static_key_enable(&ftrace_graph_enable.key);