Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp343968pxb; Thu, 21 Oct 2021 00:08:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzetf2nnrvs4eV8lxelrCpsYNjCCWSQd/xxI0W984AQot+2Odt7bSY4eQjVl3IGuoPMmPQ+ X-Received: by 2002:a17:90a:6b0a:: with SMTP id v10mr4699784pjj.130.1634800135655; Thu, 21 Oct 2021 00:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634800135; cv=none; d=google.com; s=arc-20160816; b=qE+NMzi3mo6LvlskWHfYLViMsQKIoufUY6hwZ0U9T3DqxqVfyc3ZTseBusm4Q5JDBU 7ntQ6YFLCrzM0l0+aXCkENCBgQjtTZ1oxtyQpzkQ9DS+Ub4NqNMjOB9eLvs6t68TJync Lult6Znt7mpgOd+h9sh8Ejll4vg8/Uqq7zdfxbXTEG69hYI4mFArakzP5U8eanoZ81xU EuVx1wZTlEO09G+EykTwSdyMiSb6aNqS1OsHmiunL9XlOI/oWf8KMUV7tWiKvZUEY2py WluYIRVyDDinnzkZCCPJZLcfvHhrPaxqhbtcVEhnylreqyO0wAGX1XCZg/Eh/1SHsAI+ ydlg== 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:message-id:subject:cc:to:from:date; bh=kPiAo0MvJBAlAWgl1pYj4nuErKvS/IPS/Ffd5Y/8FaQ=; b=PZK9F+5A0wK/defvJFyitDmVku40YZ3iBO3YkUArlLFVPy8QmhsE2rYRA1T4GlOCBg j/W0E/jSLmu6K0iYwhekH3uaXUgOHapAhVSQHOJpjQj0G+J6CoR1SLNf25VlCcVTzIWs CdlTYYM64g6Y7+pOnbdOpxyCdNRVCbTpdytGNe5v0Kk1KxXv9Ve11SamGjhn0CmmQ9d0 LoADtOw05EjRSFfurtiDv0B7Cdx6xuFIteIqvqj9tKX7oqvxFSgjrkujrXsCCHflyfcE DN6LK1/VZ0YkkQXCUkhBb0rGfKgySOgEZxsOWZzb+g1Qmo7hDhLsGjitvzLX9BmoYRM5 b8HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si6130501pfv.239.2021.10.21.00.08.33; Thu, 21 Oct 2021 00:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231287AbhJUHJj (ORCPT + 99 others); Thu, 21 Oct 2021 03:09:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:53986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbhJUHJi (ORCPT ); Thu, 21 Oct 2021 03:09:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D6D3A60F5D; Thu, 21 Oct 2021 07:07:18 +0000 (UTC) Date: Thu, 21 Oct 2021 09:07:17 +0200 From: Greg KH To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Linus Torvalds , Oleg Nesterov , Al Viro , Kees Cook Subject: Re: [PATCH 20/20] exit/r8188eu: Replace the macro thread_exit with a simple return 0 Message-ID: References: <87y26nmwkb.fsf@disp2133> <20211020174406.17889-20-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020174406.17889-20-ebiederm@xmission.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 12:44:06PM -0500, Eric W. Biederman wrote: > The macro thread_exit is called is at the end of functions started > with kthread_run. The code in kthread_run has arranged things so a > kernel thread can just return and do_exit will be called. > > So just have rtw_cmd_thread and mp_xmit_packet_thread return instead > of calling complete_and_exit. > > Signed-off-by: "Eric W. Biederman" Acked-by: Greg Kroah-Hartman