Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2541531ybf; Mon, 2 Mar 2020 10:41:34 -0800 (PST) X-Google-Smtp-Source: ADFU+vvyeggh7f462gN0LsI/rmGw6CDs6XbuB5CTtccYIPbe5pKvMfbFHr29+NFFy/PD9inXWu0c X-Received: by 2002:a9d:674f:: with SMTP id w15mr402464otm.243.1583174494151; Mon, 02 Mar 2020 10:41:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583174494; cv=none; d=google.com; s=arc-20160816; b=Z9o4aMtKrgd1kimg66kUTDcl9eg5uAiSGCFw/+MOKucSG17jr0TPwlcvq6NZ3//Bnw yacFfVQCl4UU79wq15A3f9PlLla3yq7JT4KMDS7fPyc0VNJYU4TK6puZsE8nXhKK+arB YtkKEqPZ/XCm+knbOKPxStn5G0atM5L3kTcGiC7GGLeV1Ogni0u+is2aoIDg/PJAN5Yk 60l7+zLd/QMcKQtKg1e3fx+PkQu+NEUTtU5+A7ekAZwpJ0s8AQnmS8cwG6+XkzCOJ0HN bZTet89x6bM/Pup9YQC1/WeOd0iNaNhEHR/iRUVjkiWXRX79xpMaeWuQoNS8UfTp1JHs 5bRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lD+/Vu8mqq2JBH1zTlWKGnTg8u+Lddov+2PpqBmDNhM=; b=haieV4way/15uS7H+ouauN8LtThdQMk8T6uHoIN24SAdJsyDFkLVT+TMkzssuowEx1 xx2QSxHEDWj3IWbAhDGm7wyZ1ZN1za6PHMeieTx+6LayNNLRot3HbSBMH7sTZxwQaObz y22p5r1qnFhAR262vc6WAQ2y0uOyfoq/z2VM9dUq+8LyVWBdNDgJEhgkI63tnllB60Ix QchZOyg5e4WqakdocdpWazQ82E1L2N0ywxltNBoxAwFPzxNoFR6jhaMt7v57OOggtpc1 aXBqoez77pan1+etlADRTfUEdOrfdjvl6WE/XX0X1V82hi7zwR1fsrzm97FbCeKakISH pGog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tue91unT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si6681335otq.59.2020.03.02.10.41.22; Mon, 02 Mar 2020 10:41:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tue91unT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727481AbgCBSka (ORCPT + 99 others); Mon, 2 Mar 2020 13:40:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:57748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727362AbgCBSka (ORCPT ); Mon, 2 Mar 2020 13:40:30 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4058C2166E; Mon, 2 Mar 2020 18:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583174429; bh=6DLnZ2Zf66pt7VKVRWxot04T4F3DGFl1pn1DT9jHh7I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tue91unT4DUxXF/pJjA0movpxeFA7lsfEyrSjfNN69R8oLyXfqMXQIl2ZfHkb9WSJ I4L34YzSQjdERZqP7opT1z5y55mwOlXmyaQbOmJI09XpxmDxoYLd5KaU1ysCPn1b6c TCnUDk3v/KkjZKjxKWlBIQi8OvXp+vIbSjJuHnj4= Date: Mon, 2 Mar 2020 19:39:54 +0100 From: Greg Kroah-Hartman To: Alexander Potapenko Cc: Todd Kjos , "open list:ANDROID DRIVERS" , Kees Cook , Jann Horn , Peter Zijlstra , LKML , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Ingo Molnar , Dmitry Vyukov Subject: Re: [PATCH v2 3/3] sched/wait: avoid double initialization in ___wait_event() Message-ID: <20200302183954.GA166273@kroah.com> References: <20200302130430.201037-1-glider@google.com> <20200302130430.201037-3-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 02, 2020 at 07:03:19PM +0100, Alexander Potapenko wrote: > > > case BINDER_SET_MAX_THREADS: { > > > - int max_threads; > > > + int max_threads __no_initialize; > > > > Is this really needed? A single integer in a rarely called ioctl() > > being initialized twice doesn't warrant this optimization. > > It really does not, and I didn't have this bit in v1. > But if we don't want this diff to bit rot, we'd better have a > Coccinelle script generating it. > The script I added to the description of patch 2/3 introduced this > annotation, and I thought keeping it is better than trying to teach > the script about the size of the arguments. Please fix the script, don't add stuff to the kernel that is not needed. thanks, greg k-h