From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by gnuweeb.org (Postfix) with ESMTPS id D819181F43 for ; Tue, 24 Jan 2023 10:05:14 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Ay1/0Fjt; dkim-atps=neutral Received: by mail-wm1-f48.google.com with SMTP id bg13-20020a05600c3c8d00b003d9712b29d2so12445895wmb.2 for ; Tue, 24 Jan 2023 02:05:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I/W5I/vqz3V9Du0W8qMK3o31sfx9Hv291VJjdr/iY8c=; b=Ay1/0FjtPY2v0KXDZbSY3HWfuU/jfE4xE6celhemKLNencUMV6a6nWb8Pn/qM3FH8k MSgjh7NVgMoy6rqD2UTY7tGJ6EVfkHn/OHivUDC+9K6N+OzzJa6g/j950Q8IF/Z0/lEZ Hx23NB9URwIeqrlym2Sz7ez/vaugpUKVaj2Q5trFZil4Z/2pIEBQK9ndPIo/tLiNiUHw ocaN4prqMjooyyqZJJZWkPWTtBnubEk9p7osStx9Cy3bLkGlJ4G6VpB5hWrACb/eoC03 Fvtx5cin1i40kaO0BkVpPw/VDx5vh65GgWNr5YqLya9pXxPrv35rtL+ckEMrt3qyl4Eh jSrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I/W5I/vqz3V9Du0W8qMK3o31sfx9Hv291VJjdr/iY8c=; b=As7Jx/c1h69hfvIx/hOglA6w+LgLqpXgfho7M/Gcf8wRtbTIDtAzPUARFOstb4AIyE oo1P/Aj2j2qrMA+eVVO+q6WnTbYIhEgjMvVDOIsDhduKSGTQEyoNZWzjvJRh0Lx0qAjA QXxkP32Hk8PFYZwxmn/hpAdkgM/SmQUUSuqVtHPYeCAqMDiZwi9x2OR7SqAujrShjEHa AJ6puMkUUgA/C6tYNtpBFiXeBjf5XfZiehFBliBYmGv22ERSnfDA8kkK9GEbDhnaVRsp XVibZK0pMPRb2GJcBTVCyyDsVXjcUclD+KT02q7QjTCt9S/7SqIJOl8L9nKeG9fqw78p njyA== X-Gm-Message-State: AFqh2krWsIzkkUA7C03zEvsloPYbPluDCIJNbHI97YFlz7z3tnZpHkzT n4oSQ42LxLuVbjkqx5J+mJ8= X-Google-Smtp-Source: AMrXdXvawR1Z9dpyZQr5mf9tXVGIKpU34bT6QfGgxtdGRPohERF+RuxsiAEMLdo7RZyvYiNBLOsNGg== X-Received: by 2002:a05:600c:6014:b0:3da:2032:6c0f with SMTP id az20-20020a05600c601400b003da20326c0fmr35017550wmb.31.1674554713096; Tue, 24 Jan 2023 02:05:13 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id b19-20020a05600c4a9300b003dc0d5b4f75sm1476875wmp.43.2023.01.24.02.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 02:05:11 -0800 (PST) Date: Tue, 24 Jan 2023 13:05:02 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, "Paul E. McKenney" Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List Subject: Re: [ammarfaizi2-block:paulmck/linux-rcu/dev.2023.01.19a 55/61] kernel/rcu/rcutorture.c:3548 rcu_torture_init_srcu_lockdep() warn: for statement not indented Message-ID: References: <202301241716.MgPWF6fU-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202301241716.MgPWF6fU-lkp@intel.com> List-Id: On Tue, Jan 24, 2023 at 12:32:14PM +0300, Dan Carpenter wrote: > Should probably > create a static checker warning for nested loops where the inside loop > resets the outside iterator to zero. Done! I'll test that out tonight. kernel/rcu/rcutorture.c:3582 rcu_torture_init_srcu_lockdep() warn: re-using outside iterator: 'i' regards, dan carpenter