Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5926295pxb; Mon, 14 Feb 2022 10:52:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuRCBd1l+szLuMfsVh5z0q4it2FMu3nF5c79YUXMKxgQu2t093OhuJB0ADJOyEKvY7YcGh X-Received: by 2002:a17:903:404a:: with SMTP id n10mr145198pla.132.1644864742329; Mon, 14 Feb 2022 10:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644864742; cv=none; d=google.com; s=arc-20160816; b=O9QdwJVOum5V4PwgxxLMBk84SWQZ6CaKUi8cmF/oW4/lrOLFIsX7KaK6N8XdfZhAX1 G+FnnTSjbKusbqiNu7LxaqlWwfqKDPzcGAzmcIv9CEwjxkOYJBJF5gxvqf+t13JgqYPD bnLJ8p4AUs0oT73miMocC/Jx69lOl1JtJCpnIS5hA9n+ILfv90VtAZzClileY76V5jYw yLq5yldg0BIUhNHhwU5QDGfvcaBWuM3SSZUJxpeAWi6pR9QXMLOLo8bj7gWGZ2QGFMo4 c2Ng9dc4RXL16OgTPcVSNMyF+jmY+m8Dy+MhEkqVqZhPtpnhhWLjzLYzCaZa/wInKGtR 7Kmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=h7Pzaz5RBBg06E8yMrWe6CyGrDSuduk4HF1EPcvMZ7A=; b=utyJC9MMOFhYlHHKwgHH9lBuN+VAfIDhg5Z5Mj+gASaWr6mOghAEC15mDHriXiq8kw uF3rtbFN8+FHM78YjLo+g6UYFx+0ILDjPc320D+x6Qv6HopfxGMwsOcjGMBgGc19u6kX FmmfhmvElkenF5UwkzU7kHAoGD8fjQPAKZg5nLn1A5G7wR+IpTESz9Su8YSSWyEhwPgI pAHQtN8ogmnIUBqDOy+0wscTa5RoPfUel8965EWKrylNCUg33fjuPSJeoW1EInsuSaJE 2tLBeFXvTsRSJvgUqjThE7O8SFWdGLcAE8T6WyNxSwl2ZoutzhX14rqImdPQxYN5889V j7uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n11si12010619pla.516.2022.02.14.10.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 10:52:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21BF06E34C; Mon, 14 Feb 2022 10:51:29 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242018AbiBNPUO (ORCPT + 99 others); Mon, 14 Feb 2022 10:20:14 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232806AbiBNPUN (ORCPT ); Mon, 14 Feb 2022 10:20:13 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0192119C25 for ; Mon, 14 Feb 2022 07:20:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7FA90B81151 for ; Mon, 14 Feb 2022 15:20:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 855FCC340E9; Mon, 14 Feb 2022 15:20:01 +0000 (UTC) Date: Mon, 14 Feb 2022 10:20:00 -0500 From: Steven Rostedt To: kernel test robot Cc: chongjiapeng , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: kernel/trace/ftrace.c:7157:20: error: unused function 'ftrace_startup_enable' Message-ID: <20220214102000.1d3af66e@gandalf.local.home> In-Reply-To: <202202132037.4aN017dU-lkp@intel.com> References: <202202132037.4aN017dU-lkp@intel.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sun, 13 Feb 2022 21:03:29 +0800 kernel test robot wrote: > All errors (new ones prefixed by >>): > > >> kernel/trace/ftrace.c:7157:20: error: unused function 'ftrace_startup_enable' [-Werror,-Wunused-function] > static inline void ftrace_startup_enable(int command) { } > ^ > 1 error generated. Strange. I always thought that static inline functions do not cause warnings when not used? Especially, since they are often in headers when things are turned off. Or is it because this is in a C file? Is this a new warning caused by a commit, or is it a new warning because the compiler now complains about it? -- Steve > > > vim +/ftrace_startup_enable +7157 kernel/trace/ftrace.c