Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp343768pxb; Thu, 21 Oct 2021 00:08:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlaZECljLb9KeUDTlOxCFgqgkZLxF8GefMtDUd/SkEmCPazhvJmXXXVqQe7tYims8dFmHD X-Received: by 2002:a17:90a:ac03:: with SMTP id o3mr4685069pjq.130.1634800120378; Thu, 21 Oct 2021 00:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634800120; cv=none; d=google.com; s=arc-20160816; b=CExqnuU6O4uHdrMH6c2WPgiyugSJRFLH6eK0F8Ge65nbJmj71n5+f5Fy/JDAMvIsB+ +3KUiyuCES4nJekKX7VJC7KTt2KR584Q5bjHpwtM3IBdLqldjQ2pPLZmWVeJGQY6KsHi KLM8oeuaUcPdwaUcD8ySexDiz69bsU2c8bfgt5Opb+JFztpikdL0GhmpN7wSpud4eB/b I9e+LHQL6d8eaupIW9MZ0LR6+8sLeUzs2PzJCCvol6KAH6AuW3wkCB0PsyiuJUOMNF3H JmjLoTZ5Q/dg3i4dIKu/DXQmFW86jSsR1hGAFxJAvRHO8ZD7FHgA4fF/SU9coHdOrlS1 3grw== 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=HZa4Q/SGxnHVR++QqX3K+E2HFhfVNjVzrRF8waFREDI=; b=CA6MLtVF5H0UB7O6eh6/e9Ejry6sbKw4aSa47Q91pdKVZufDOrHKg8YMFHcbACwJkA 2HW+M22zotLooWEDNsecyIEc8UrFNeeXb0aBwjRtPB8nxGY4iryjz6R7VlVAhkihTBGK OH8869FclcyAvsTzChgn6D+kYEDXkULAn/qd1MW4F2MZqimaAcYw2+h09wpNXzbSezMd ZBN7hgWIXj/e9StDWw6MMq/gItNQIH+mucV7U43rLnDuPTAjNqe07cnrLJKJbC/LTpKO Uw10z4MzEIB1BpYqlqyQaDsGTWrHswHiRxy6QZzihLd8amGdIT4SKOF/StUhBA1NlULu lSPg== 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 d22si7772508pfv.30.2021.10.21.00.08.16; Thu, 21 Oct 2021 00:08:40 -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 S229499AbhJUHJT (ORCPT + 99 others); Thu, 21 Oct 2021 03:09:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:53704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbhJUHJS (ORCPT ); Thu, 21 Oct 2021 03:09:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3417960FC1; Thu, 21 Oct 2021 07:07:02 +0000 (UTC) Date: Thu, 21 Oct 2021 09:07:00 +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 19/20] exit/rtl8712: Replace the macro thread_exit with a simple return 0 Message-ID: References: <87y26nmwkb.fsf@disp2133> <20211020174406.17889-19-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020174406.17889-19-ebiederm@xmission.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 12:44:05PM -0500, Eric W. Biederman wrote: > The macro thread_exit is called is at the end of a function 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 the cmd_thread return instead of calling complete_and_exit. > > Signed-off-by: "Eric W. Biederman" Acked-by: Greg Kroah-Hartman