Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5313547ybh; Wed, 7 Aug 2019 04:11:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfW9Blzb2ziSU1cV0oWnRWJg0+DOruGYpHmGE1PbAOPdXnlniz0DgghDBqcG9B8dUZTv2G X-Received: by 2002:a63:e09:: with SMTP id d9mr7587296pgl.442.1565176288817; Wed, 07 Aug 2019 04:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565176288; cv=none; d=google.com; s=arc-20160816; b=jEpUYcHw/ujsuy8VF1IT3shRLqAdf9mWauw0rj2lgOvPRSA6cpUOLXRme1cqL+3NmP RvPmhdumSlYSVSf1ERmg/irTygbgdu2GcVrdhID36qUmPlFMrKjtGileaTpYfDbj9XV6 XCq6OA699varKaVcICOLcNi7w4I94JpuXjSfJvb3NXh0IpkEMz4Vb4H0jz4iOsUoAeIB NCeICoorGU3ZcaNgHU19/V7E3J9B4bjRkKaAwFcqghxbEl95QPvyLgZFbJJlJXP4vCIR Jlo8BfNV9GrmyDI7GKIJ7l+mk1/4cLHg85ipDZRhZ2jOqeUlH5PJ7OW/+KJG8oMNk/ji jV9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yucIgd2dspnhrHcSaqxcqVZepkwRNEbXhbCCQVyj8Ac=; b=ISk0LXb3Vn8MaBClm96hcNSKusI37mdc2nkKJelq2h87a2aI50uq/6bOtUpdgJ6EuH FgGqWCCqCDDJe4MfEwOxfmc1o4L/43FEHOvHFQeh4oowIY3CMAY2BoTZJ5QV6DuTSMtz vWVRBUNLUS4SEhptHJnWj0Uw9OJ064sx3Yzh++W00wGVXM1DNdqN4u0mgCNZjYMiieTA g/RlAIfDWOxqA+QavhsU9hI2snKi792unFfJ5mMOhU24adtwEUClf9yXgRebc45C5LMo eIgI56jPNFd63caDmjwCe0eLU/hD4jTNgTx8O3SlZNoXc9DiC3zg6w+Y3kNu/x++t7qG zUkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WUv84g6r; 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 a65si23136046pgc.213.2019.08.07.04.11.13; Wed, 07 Aug 2019 04:11:28 -0700 (PDT) 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=WUv84g6r; 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 S1728558AbfHGLKC (ORCPT + 99 others); Wed, 7 Aug 2019 07:10:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:36104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfHGLKC (ORCPT ); Wed, 7 Aug 2019 07:10:02 -0400 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 EB9FB21922; Wed, 7 Aug 2019 11:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565176201; bh=Vq2npu9qMy3ZqaCzN2MnrJysGD5g2Rtrj7n/5e5Lct8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WUv84g6rvSfIfVN4nmM8/Fn817fqIm/npqcHrA8tLuIqk56sKKIUUkcBCFhZg7bqa d8+RSFhPZZVIqfyVE+yzZ7H9RC8cNxaUdYTKrolgrSUkfXYEkwLUBapWLe5iDXW9YQ s43IIo0ktgn5/Xq6JYRRklrWpVZld9z8yu+Q1bxk= Date: Wed, 7 Aug 2019 13:09:59 +0200 From: Greg KH To: Tri Vo Cc: rjw@rjwysocki.net, viresh.kumar@linaro.org, rafael@kernel.org, hridya@google.com, sspatil@google.com, kaleshsingh@google.com, ravisadineni@chromium.org, swboyd@chromium.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v8 1/3] PM / wakeup: Drop wakeup_source_init(), wakeup_source_prepare() Message-ID: <20190807110959.GA16863@kroah.com> References: <20190807014846.143949-1-trong@android.com> <20190807014846.143949-2-trong@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190807014846.143949-2-trong@android.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 06, 2019 at 06:48:44PM -0700, Tri Vo wrote: > wakeup_source_init() has no users. Remove it. > > As a result, wakeup_source_prepare() is only called from > wakeup_source_create(). Merge wakeup_source_prepare() into > wakeup_source_create() and remove it. > > Change wakeup_source_create() behavior so that assigning NULL to wakeup > source's name throws an error. The kernel C code can not "throw" errors :) Anyway, odd verbage asside, patch looks good to me: Reviewed-by: Greg Kroah-Hartman