From patchwork Wed Aug 23 15:25:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boqun Feng X-Patchwork-Id: 9917625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC73A60327 for ; Wed, 23 Aug 2017 15:25:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E7CF2898D for ; Wed, 23 Aug 2017 15:25:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 902A728999; Wed, 23 Aug 2017 15:25:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3678C2898D for ; Wed, 23 Aug 2017 15:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932201AbdHWPZj (ORCPT ); Wed, 23 Aug 2017 11:25:39 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36866 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932203AbdHWPZf (ORCPT ); Wed, 23 Aug 2017 11:25:35 -0400 Received: by mail-pg0-f65.google.com with SMTP id 83so323439pgb.4; Wed, 23 Aug 2017 08:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cL+HenIWkV0elPFXV6DlCC1a/Did4JncwQ9lm0dEk6k=; b=Tq3Zt6VRPoid8OKGH1i6H0gXHeIddKI4jl4PhpZNqHoW6OSGTStoZRKdVdgiRFKv61 rbxOb0v5u7rZZTg4EZQzw6XszBWhyjUt+kKXyk6t2vYExeOgueaLUH+dbSqPtKylp7RI GCQAXgDU1yJiBYLkpWOIMMtwfEBXVYNKoyQmohiJhvz02HZ85yitAXAmwD4sKwJuYXbi YCjSLdl1rLM43lmFj+kxHq6wEyCQc2Cy91/f+Mvs509gQqbLqFePkYo+0uVsmsdjDtGY zG0ZfV+Yu13Zce4AxGiMlfuuVH9Sgpm1EOP0rgL3Cs46tTfPMpypdasKqd+vR++Bem8S C+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cL+HenIWkV0elPFXV6DlCC1a/Did4JncwQ9lm0dEk6k=; b=FbNiKg0wXqWSdBVLFkrAXIa+IQV//VvGykAVHH95Qou0nPaZSQ9QoU7EPYXKHLd4CV lom4NWRHNH7nNcqS9e6e4p/jOET11kubRR17c2WKtnsB91GqK02rt4Nrn7WlyshaRLCF IsxmgQeRkyp7ffwJ+AftHm17gesZJOdMZXN0f+23nQmLnac8o+xf7R3U/0oTuMv3Kxp5 JxyXKYefJhVg5IGPjqoPV2VtQmYZ3luwxUptyGjPJmPL8ItwjI/5MxKWZA4EDqikznYT 4cZjLzloFNxwMpI2gJcgYmZUZLq06wfFRXBaT8o8GXxstvS2wYGrFFotsVq4O3FNPELw pzfQ== X-Gm-Message-State: AHYfb5g83DtPyJ0498QIU7aoMGUrevI7Z4adMYXOH2Gb4nQtPAACDCqB MziTanGmLid0HtUoU/8= X-Received: by 10.101.90.141 with SMTP id c13mr2992079pgt.325.1503501934098; Wed, 23 Aug 2017 08:25:34 -0700 (PDT) Received: from localhost ([45.32.52.191]) by smtp.gmail.com with ESMTPSA id a63sm3542245pfc.165.2017.08.23.08.25.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2017 08:25:33 -0700 (PDT) From: Boqun Feng To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , walken@google.com, Byungchul Park , Arnd Bergmann , Andrew Morton , willy@infradead.org, Nicholas Piggin , kernel-team@lge.com, Boqun Feng , Dan Williams , "Rafael J. Wysocki" , Len Brown , linux-nvdimm@lists.01.org, linux-acpi@vger.kernel.org Subject: [PATCH 1/2] nfit: Use init_completion() in acpi_nfit_flush_probe() Date: Wed, 23 Aug 2017 23:25:37 +0800 Message-Id: <20170823152542.5150-2-boqun.feng@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170823152542.5150-1-boqun.feng@gmail.com> References: <20170823152542.5150-1-boqun.feng@gmail.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no need to use COMPLETION_INITIALIZER_ONSTACK() in acpi_nfit_flush_probe(), replace it with init_completion(). Signed-off-by: Boqun Feng Acked-by: Dan Williams --- drivers/acpi/nfit/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 19182d091587..1893e416e7c0 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -2884,7 +2884,7 @@ static int acpi_nfit_flush_probe(struct nvdimm_bus_descriptor *nd_desc) * need to be interruptible while waiting. */ INIT_WORK_ONSTACK(&flush.work, flush_probe); - COMPLETION_INITIALIZER_ONSTACK(flush.cmp); + init_completion(&flush.cmp); queue_work(nfit_wq, &flush.work); mutex_unlock(&acpi_desc->init_mutex);