Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3266573imu; Fri, 18 Jan 2019 07:34:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN66V4UGByRYj+/5TR9irjHmu0o3TDfDV8s9KqAv6fkkuFn5g3aNuYlNynnFxL+i0A1McYFl X-Received: by 2002:a17:902:2006:: with SMTP id n6mr19934537pla.66.1547825651725; Fri, 18 Jan 2019 07:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547825651; cv=none; d=google.com; s=arc-20160816; b=SZ6e4GFNQU7ksCpuCdXlH9Y7Fae/EpiSVHF46uyHSEgNLYZ5aTlaqZOIdCxkvuQwaR YKu3ebEuz1CAez93TrO7oO02GxzaQWDA02LfSQlyPKBE8uv6O6n29M6HrkCtwUuykDfV 5UtYtzMKf76Gx2YWnOOfRQ6mCWarGUJWdMP02AtxMehtJrpt7xQQwByYC50ABVqae6Nk VLsqJmioQ3/yNpS4l+oaQlnvn6buQcc7QA0m0iphcY8pKoDbyE33r2c5dkJ/j0mgWMW4 FMHQCKiKatgFFWEwB9azshm0U4HHxtroGQmxvdZ/6XkV1miLddR7BuMK87hRjHafpJ/2 t/7g== 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=0ehW7UVH6q7I+W3fCL23jA9rSI06zoxoYwB8Fogas1Q=; b=mt81ScMPUUtWsBj9r8fxgkgjobTLfAM2A/7mIHPYiPnDLVo7f+qAi0cboZwef0lkKi UjTBYo5L732fMMphMSMaabqy4JoDpQui22HZk1s1oOFisO9GAeRtFznNPhxs0XmSjz1i xAgzQ4qgWq5bv3I3JeOtldr/RkBubJxCD/uhqZY7Xuj37/H+z4rhZcOjly+Xl5TyfgRl kETYPzY5WjNB/fr19VrQaBxZt4jvTCYbVGvlbyH5c+07IrPNrWvJfEvUYz34ktZ/W3eq 7VYk1t/rrE4e0/fVGcEo1N8Z8AEQnKgvTnRM+0BlcAsnSvhcTTUGUdNW6213Nsd1Yy38 X3Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zVfpaHJN; 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 z6si4533913pgl.109.2019.01.18.07.33.55; Fri, 18 Jan 2019 07:34:11 -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=zVfpaHJN; 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 S1727721AbfARPce (ORCPT + 99 others); Fri, 18 Jan 2019 10:32:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:58006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727448AbfARPce (ORCPT ); Fri, 18 Jan 2019 10:32:34 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 6386820850; Fri, 18 Jan 2019 15:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547825553; bh=HrhTVSLMX3w2LVPon8UoTXBjyruR8yIHMnaUErd9dQs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zVfpaHJNGqs3/dk83lkVY6FmVRxSIco88EqNV84EzsPC5yEWKvc1gS7AupVMQ7fIp owhbbvWD8h5jfW6W6+W1nqgluS2PKmVdpNiBeE7qQH+shIDcRKDV0+fbO96ah32RWh 8OOuQFFH4mI5bBkX4+lhvEZU3myaYfEtBboPPYHY= Date: Fri, 18 Jan 2019 16:32:31 +0100 From: Greg KH To: Peng Hao Cc: arnd@arndb.de, andy.shevchenko@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND V5 1/3] misc/pvpanic: return 0 for empty body register function Message-ID: <20190118153231.GA27443@kroah.com> References: <1545282888-38059-1-git-send-email-peng.hao2@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545282888-38059-1-git-send-email-peng.hao2@zte.com.cn> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 20, 2018 at 01:14:46PM +0800, Peng Hao wrote: > Return 0 for empty body register function normally. > > Signed-off-by: Peng Hao > --- > v4 --> v5 : resolve kbuild issue: handle all typo "drvier/driver" > in funtion name. > > v3 --> v4 : use pcim* function instead of pci* function. > handle typo "drvier/driver" in funtion name. > > v2 --> v3 : resolve kbuild issue : a uninitialized variable in some path. > > v2 --> v1 : resolve kbuild issue : arch=sh don't support pci, adjust > CONFIG_PCI macro. > > v1 : QEMU community requires additional PCI devices to simulate PVPANIC devices > so that some architectures can not occupy precious less than 4G of memory > space. > > drivers/misc/pvpanic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c > index 3150dc2..f84ed30 100644 > --- a/drivers/misc/pvpanic.c > +++ b/drivers/misc/pvpanic.c > @@ -125,7 +125,7 @@ static void pvpanic_unregister_acpi_driver(void) > #else > static int pvpanic_register_acpi_driver(void) > { > - return -ENODEV; > + return 0; No, you want -ENODEV as this can only happen if acpi is enabled, and you are on an kernel without acpi. But, that can not happen, as if CONFIG_ACPI is not set, then acpi_disabled is always set to 1, and then this can never be called. So I don't see why this needs to be changed at all. thanks, greg k-h