Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp402609lqh; Tue, 7 May 2024 02:45:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgz3gwp5LyOs0KS98R5Ly5gGT/m5yw5XItZlVm5pRqr4dB4XefOC6aXkaRFka+NESF+CrfZZ3dFY0RVWa1wgl4VBQchkH4iLPmvSR0QQ== X-Google-Smtp-Source: AGHT+IEWL1VvtiLnxnKbC8WJy1B0O3nZQz0n1rC+z7XJM65X+MIk/Rjuz59ayaDNbacnG5mHAT60 X-Received: by 2002:a50:9faa:0:b0:572:326b:c055 with SMTP id c39-20020a509faa000000b00572326bc055mr9343256edf.13.1715075130315; Tue, 07 May 2024 02:45:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715075130; cv=pass; d=google.com; s=arc-20160816; b=umPWCstRygujwlx9tlmf2YGClKio0BxY0iFK/0lNdTm5bXDZw/UoNUfdgcp8LPIOC5 DpbI76w7lBUsELcN67Ca1ue+4jewc64GKv1UzueQ7oh/zao7PWMuqavJ/NTJFfg5zU4K TrlSn8gIiNrfnQFBkwblnj4AtxaOh/13VyHpJFAuW2LMHkR7qcbSpYefQi72EnBrh4TT L9EPAHhs8uPV+VLdtWTN096LeNItbvONyffmLWqjNsGdzdv7LipJ6gjXI3d/eMy57H7G WNd26aX4zkYiDhS5QgsuRG5yfkx9SoahQsyo+4i00AoCeySkUdpmhgeMF/JeiLdoUfdJ 5S5w== 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 :date:subject:cc:to:from:dkim-signature; bh=Epu6iZvnUCozfcFQLTzyJDJ7BNw1imFQ/N79IeKES7w=; fh=OG46FnjkzV+ydnR8C555SabDzg/BdxGNN7FPqxBNTYU=; b=CYI4w5thrUjeKG6ZltBtg11a3aFXgnNBFQU9nL5QksVAivRjOLG2u2cl3ZWDBFAFke 02i3tAaoSb3GY80uK+/HC4Tv3/PwoD9K0ax9n46KLNrvGU4nK67ZfutQ6SbUVfxv+Xg7 XGhRzIUJ6Jf98p6b7WRAehRkBsWnxiUGjGFfKJwyOJKOmKR/x8dhNIhI1jINQjXmrvGX t9jgaT36k+Lk1WtR0cYuH0u5YxsP5tTnguD36A+nm4YUKasAug1Ofs//M85LpNHRGtAC eJtT3ci1EV6awCas7NnKsN2sS2FpuHp924r8EIi9hLCMaXTBqA8llZana91QecxsIgK0 Xnvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fhvw2Mu8; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i23-20020a056402055700b00572a9bcb44asi5735965edx.317.2024.05.07.02.45.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:45:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171003-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=@gmail.com header.s=20230601 header.b=Fhvw2Mu8; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171003-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 1228E1F22146 for ; Tue, 7 May 2024 09:45:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92AA616C6B1; Tue, 7 May 2024 09:36:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Fhvw2Mu8" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 873B3168AEB; Tue, 7 May 2024 09:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074579; cv=none; b=nFwteNHTlnuYxrcGCSGteIUtX1m6Iguftun5HHbGJKkL5JNzBf2y589rtVfCslFmPw0MCjoq4PnW+YBorOALa0t1YaAfsZ81m5uV8CzQgszWlESkOPEi1YxMNaJmHpiv7uQyw4BAcJDv690mpQUd3Foqou4wyaowOGGrI7CJeDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074579; c=relaxed/simple; bh=oelWA1yUmfghM3lDepfzYUmSPKLaOwMcYDivNtABeLc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WAlcLwp0g27qypHqXoxyt5v3DTm6OaVTp3d92Ivys5cfnmQ9lvSSxtIV6wMx7gGNC1gs/lCUlCTf+1GJ5FfFFljbLzxU/kuAvcD0IwKGt8qLOS5lT4lKm58pcrVpZ2uSyJfSFX86fUqUacYTzGbnbsGmN8dmMBhNk44ttcrErhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Fhvw2Mu8; arc=none smtp.client-ip=209.85.208.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2e3e1ad0b19so8257971fa.0; Tue, 07 May 2024 02:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715074576; x=1715679376; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Epu6iZvnUCozfcFQLTzyJDJ7BNw1imFQ/N79IeKES7w=; b=Fhvw2Mu8QTcCUwNyBXrGFve3VeJ2K3Q4mcRLMmkaw7UxaMu4qr4jNgro5iPBgcOaIV KQsq6NZF5X5BzEQp7xYHxYoHX+sHPuacmUr28gsRhQdutlZ/Dpc/TAC7ump0LTg/fyst dlNcILuOgWDVYBOBkbqAqJMCkcE6AvcbhHKEWw7WhNzAwLHa1BNiAgOWN4a4q4QLy/C9 NZDvipwptgZoc0om8IZw+k98qe5PI7ajQXn93iW/jfdgVkyCyclMdxDVi9HixgX3gden zwiKz6w9KTRM9Ki/ncZBa9EFadPAf4eXFK8SZOdXfoLJOjQNyhQ2oOezzZCPFQpv3Eeq BaNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715074576; x=1715679376; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Epu6iZvnUCozfcFQLTzyJDJ7BNw1imFQ/N79IeKES7w=; b=IgwpeMZ1y9QTbNwMeiQeIRMkPA7RYV1wO9ORVV71qtsTJbiKa6+EFmSaTdRmeCVIV2 wKsz/vFU8L5MjzJR6vFO0tu/+c+5QHsH4/Sjrn8LcoulHDBciOZFBuAdtjHttwZPPfyN 7/ZTgaO6SwT4BYQEUFs1eQeMD86xCZI3/sbR4PTFz7rePCtTTsBEfP83tBEVHO7CuBPJ OUrDp77ajn7+Y5Sv8EwBYFlRoYAV9o6oBeuwVlT0fG71pnmnRHuNfBCclTqDTTexiDrC C+5waKX1e59LsWSPqCeAq+KjD//4Yw+sBMttN9hATvJPUT13+Y3ezvyxZOfKpp2fh71b FWmw== X-Forwarded-Encrypted: i=1; AJvYcCVBiWNP4yHFpWA2n9lFrMEqghP09cAwXJpjcE8aK3Fd/eI6RVDyPCm8Kq5vpdLu1Qm4Pdaguj/ylPXNKCWeMjn2MepgtoMINkhvXsI+ X-Gm-Message-State: AOJu0YzbFJsuq6QdTdi2mPEnIREkh94+mIkHr82jUm/O5O6a6QaT3T8e YDpRjlXt7syRtWQSdGFHVvlJaiQbggi8kwS/Q0xMi6a+3ERfSgAn X-Received: by 2002:a2e:7204:0:b0:2df:7824:7d32 with SMTP id n4-20020a2e7204000000b002df78247d32mr8358817ljc.50.1715074575658; Tue, 07 May 2024 02:36:15 -0700 (PDT) Received: from pc638.lan (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id t18-20020a2e9d12000000b002e29c50c4dcsm1335473lji.27.2024.05.07.02.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:36:15 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: "Paul E . McKenney" Cc: RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Uladzislau Rezki , Oleksiy Avramchenko , Frederic Weisbecker , Zqiang Subject: [PATCH 44/48] rcutorture: Removing redundant function pointer initialization Date: Tue, 7 May 2024 11:35:26 +0200 Message-Id: <20240507093530.3043-45-urezki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507093530.3043-1-urezki@gmail.com> References: <20240507093530.3043-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Zqiang For these rcu_torture_ops structure's objects defined by using static, if the value of the function pointer in its member is not set, the default value will be NULL, this commit therefore remove the pre-existing initialization of function pointers to NULL. Signed-off-by: Zqiang Signed-off-by: Paul E. McKenney Signed-off-by: Uladzislau Rezki (Sony) --- kernel/rcu/rcutorture.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 85ff8a32f75a..3f9c3766f52b 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -566,7 +566,6 @@ static struct rcu_torture_ops rcu_ops = { .call = call_rcu_hurry, .cb_barrier = rcu_barrier, .fqs = rcu_force_quiescent_state, - .stats = NULL, .gp_kthread_dbg = show_rcu_gp_kthreads, .check_boost_failed = rcu_check_boost_fail, .stall_dur = rcu_jiffies_till_stall_check, @@ -614,9 +613,6 @@ static struct rcu_torture_ops rcu_busted_ops = { .sync = synchronize_rcu_busted, .exp_sync = synchronize_rcu_busted, .call = call_rcu_busted, - .cb_barrier = NULL, - .fqs = NULL, - .stats = NULL, .irq_capable = 1, .name = "busted" }; @@ -847,8 +843,6 @@ static struct rcu_torture_ops trivial_ops = { .get_gp_seq = rcu_no_completed, .sync = synchronize_rcu_trivial, .exp_sync = synchronize_rcu_trivial, - .fqs = NULL, - .stats = NULL, .irq_capable = 1, .name = "trivial" }; @@ -892,8 +886,6 @@ static struct rcu_torture_ops tasks_ops = { .cb_barrier = rcu_barrier_tasks, .gp_kthread_dbg = show_rcu_tasks_classic_gp_kthread, .get_gp_data = rcu_tasks_get_gp_data, - .fqs = NULL, - .stats = NULL, .irq_capable = 1, .slow_gps = 1, .name = "tasks" @@ -934,8 +926,6 @@ static struct rcu_torture_ops tasks_rude_ops = { .gp_kthread_dbg = show_rcu_tasks_rude_gp_kthread, .get_gp_data = rcu_tasks_rude_get_gp_data, .cbflood_max = 50000, - .fqs = NULL, - .stats = NULL, .irq_capable = 1, .name = "tasks-rude" }; @@ -987,8 +977,6 @@ static struct rcu_torture_ops tasks_tracing_ops = { .gp_kthread_dbg = show_rcu_tasks_trace_gp_kthread, .get_gp_data = rcu_tasks_trace_get_gp_data, .cbflood_max = 50000, - .fqs = NULL, - .stats = NULL, .irq_capable = 1, .slow_gps = 1, .name = "tasks-tracing" -- 2.39.2