Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1075448rdb; Wed, 16 Aug 2023 00:18:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOZiqApSrUDl/uUGc7OSWTc15xmj80hCRgp23wQ+pibcmKWa9wef0Sm+hbPaKz3GAQzSVv X-Received: by 2002:a17:907:7625:b0:99c:ae35:ac0 with SMTP id jy5-20020a170907762500b0099cae350ac0mr790138ejc.61.1692170311895; Wed, 16 Aug 2023 00:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692170311; cv=none; d=google.com; s=arc-20160816; b=XViMJtbjqZMZIjt6MZoOGmhv6Wqli/krj6FXDwxRchkQreMWmV/gz2TKaCwn8yrvF4 ZZhAR20aNoQBx0dXuZKytb48kgy/wR8wQ7LFkw7gAL7OYOOZwGkQUs6zKhX6gEShhwdn NIxg9BXqk+DmyxhVixQFcIuwOPZaiJCj+WneMk+blLoPyLlSTajhvoUn+9mI4ChdCNBr TjGTp5VsozvTXuIHouvkIxILCZchSGlF3m6dfig9lKeD50Fqxk5mPaAO0kWgjLxR0ZHI jc07iZWEQwMxo4MlhxVGtWdpYgLp2+ws+VXli539990lgdZZ7LXAG6g2X8VCIZLPHdWC dQLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=iqDUG0Ovg7AiQ+rk2cJZnGyWWmdw8WqCYColSBI3gVw=; fh=Wru2kmh53JbfQeGKz1ROmOWw/S+eajHTzHw7Ry7luUU=; b=t+200fBuHE58IOHJt+InNICYIw0Mz56rltDkyR2uWZVEmKZf1jKOmc+vdF/daNnsKW R74w9qpRV9ijCQTQcnEiUlXHvPWBDhK6mtMoVht04aSbEus/OpuytbmgYH9dGyoAnB0W pJStqnE/g9qRV9cVdGBKT5CyA3eMoiJBqe57ookRDeQBNl2wC7z0tPTBhh1aV3P2GPcE dNLu/DZ+DKFXFcN6//q6ILXKOme3jzEHLCFzeg2G1AK1z5v/o/VhruwCF5rJXFOqUGn0 m3fGKkn12WAC1qXbxyx7dhsrlqFwIw8ED0YnrPQdVUs/gJFgYt4zTCMPGwaRQBwY51f4 MX5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=opILOkjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a170906b08d00b009930c030830si10707600ejy.633.2023.08.16.00.17.53; Wed, 16 Aug 2023 00:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=opILOkjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237420AbjHPCUB (ORCPT + 99 others); Tue, 15 Aug 2023 22:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241268AbjHPCTm (ORCPT ); Tue, 15 Aug 2023 22:19:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 167F310C3 for ; Tue, 15 Aug 2023 19:19:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A62FF65466 for ; Wed, 16 Aug 2023 02:19:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0707FC433C7; Wed, 16 Aug 2023 02:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692152379; bh=shV+iYA7ut2oA2tvBRQwaaEfQePJeM63FpWOFvBMNzw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=opILOkjnSzAtikHhouPRe/B1MGm/T8bpR5tBJ5LMf7oVz1E33jcjs979N0Q23wffY WQUyazv/GKGdaL/9WIyAWCMxibCNMJjBM2vXQ2Ho9DJB3dFtEMCFu27rswcxhU/Jpy XT554ZE57pZi8PnnVVk+l2TQhnKMlsEN/5/BiWOVokFOVMo6G8Q3FtFT371d+YnwT4 ND2yQxEdQKpVGs30MPq9WrZ8K2nIkW/XjFj0WClhpXoRkb7T8595G40Po6wOHVA9fJ JNJe9hzeJe5tshfqzxwHiD1VqJyvUW4c4xtJj0WdnJ9YHdqZ62w2slFjgIRpF9uBM8 RtkNIipr5YD2A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 9AEFACE0592; Tue, 15 Aug 2023 19:19:38 -0700 (PDT) Date: Tue, 15 Aug 2023 19:19:38 -0700 From: "Paul E. McKenney" To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [paulmck-rcu:dev.2023.08.14a 49/51] kernel/rcu/rcutorture.c:24:10: fatal error: linux/rcu_notifier.h: No such file or directory Message-ID: Reply-To: paulmck@kernel.org References: <202308160930.YEekR3Wf-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202308160930.YEekR3Wf-lkp@intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 Wed, Aug 16, 2023 at 09:55:30AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2023.08.14a > head: a90c4cbc91475bd5df35f712a954972fbfff40a1 > commit: 37730a9ba11627b63d8108dd8b3061ea2ee04df9 [49/51] rcutorture: Add test of RCU CPU stall notifiers > config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230816/202308160930.YEekR3Wf-lkp@intel.com/config) > compiler: sh4-linux-gcc (GCC) 12.3.0 > reproduce: (https://download.01.org/0day-ci/archive/20230816/202308160930.YEekR3Wf-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/202308160930.YEekR3Wf-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> kernel/rcu/rcutorture.c:24:10: fatal error: linux/rcu_notifier.h: No such file or directory > 24 | #include > | ^~~~~~~~~~~~~~~~~~~~~~ > compilation terminated. You would think that I would remember "git add". ;-) Does the patch below fix things up? Thanx, Paul ------------------------------------------------------------------------ commit 2b7e462695eee212f81f7000af4f4af2523ece35 Author: Paul E. McKenney Date: Tue Aug 15 19:17:50 2023 -0700 fixup! rcu: Add RCU CPU stall notifier Signed-off-by: Paul E. McKenney diff --git a/include/linux/rcu_notifier.h b/include/linux/rcu_notifier.h new file mode 100644 index 000000000000..ebf371364581 --- /dev/null +++ b/include/linux/rcu_notifier.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Read-Copy Update notifiers, initially RCU CPU stall notifier. + * Separate from rcupdate.h to avoid #include loops. + * + * Copyright (C) 2023 Paul E. McKenney. + */ + +#ifndef __LINUX_RCU_NOTIFIER_H +#define __LINUX_RCU_NOTIFIER_H + +// Actions for RCU CPU stall notifier calls. +#define RCU_STALL_NOTIFY_NORM 1 +#define RCU_STALL_NOTIFY_EXP 2 + +#ifdef CONFIG_RCU_STALL_COMMON + +#include +#include + +int rcu_stall_chain_notifier_register(struct notifier_block *n); +int rcu_stall_chain_notifier_unregister(struct notifier_block *n); + +#else // #ifdef CONFIG_RCU_STALL_COMMON + +// No RCU CPU stall warnings in Tiny RCU. +static inline int rcu_stall_chain_notifier_register(struct notifier_block *n) { return -EEXIST; } +static inline int rcu_stall_chain_notifier_unregister(struct notifier_block *n) { return -ENOENT; } + +#endif // #else // #ifdef CONFIG_RCU_STALL_COMMON + +#endif /* __LINUX_RCU_NOTIFIER_H */