From patchwork Mon May 24 09:30:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 446429 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp3178171jac; Mon, 24 May 2021 02:30:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7x3WlwOfTPaw4AH0GmedIfVMMHIpB0VeJwtTF06cXadJE6vd7VlH0uC82837GYu6cZRFb X-Received: by 2002:a17:906:e0d0:: with SMTP id gl16mr22707399ejb.509.1621848625117; Mon, 24 May 2021 02:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621848625; cv=none; d=google.com; s=arc-20160816; b=xmwcUz8N9HHPYuky3uBc2KIqOEoBiR76sf8hWF/gYtzBEg4xIm0sRBtJAflT3cdmi6 3+OIB92hwO2SuOr1cYJUgkfbmggh0hNALSL59RIrIViitLsq2qk9M5mz7wffwTzlv3GX kI+Av6vlammd3oC3I2RHjcCxrB8v88mSANKxhaADYiQyX/ZBarlzJjygYdpCIUQRXRZI sTrM/gHnhld9U5mk7FOVjYphoQfR4/XTtFmMg8IhicGrLXjo4PdDNmrnwo26yTeWgVjl 4FlKjDRf4zGNCv9Frgob3TB3bWZCXezIVdo1uYCHEVnBQ/oPRCa25dMb6tLR9/Oz7Zg4 wbYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vVAgCRZmQM7RH7ugYzyvYSUzURJQ5I+1r9VJ7psFkIw=; b=nYFSx4p+LWmnUl+tIwn6ErHXapz2+tVrlJKpCoB0iQ+KT7Qf1EobJKxGFb5JZkOFod PWwsakTp6rv8XqxwpU1LhxK8JFA8nv50n8rqbvjKqb6JJlIgIApbb/thA7GIpNgK9sK3 GrWlK9byKAjd4tqur1PgtOUqFUksRCFXQ1k5d8/oX3a6XzYXr7cJwB8P30faeg6kp/41 UL+4sKcIfz3TbRDgrZyqpr86naqbROUl4x+2tOZvDXs7NVVuNdf1TLoiXAHGBuT75Lsr G0g3BypYVpOu6GQ06C2estX3YxS2xCv6B6KrxnDh9xS61um2vStHQOdmSg6LST8Q55JS VxaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de13si9895207edb.343.2021.05.24.02.30.24; Mon, 24 May 2021 02:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-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-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232422AbhEXJbv (ORCPT + 8 others); Mon, 24 May 2021 05:31:51 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5674 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232318AbhEXJbv (ORCPT ); Mon, 24 May 2021 05:31:51 -0400 Received: from dggems706-chm.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FpX1H3C9Bz1BR7R; Mon, 24 May 2021 17:27:31 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggems706-chm.china.huawei.com (10.3.19.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 24 May 2021 17:30:20 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 24 May 2021 17:30:20 +0800 From: Zhen Lei To: "Rafael J . Wysocki" , Len Brown , Pavel Machek , linux-pm CC: Zhen Lei Subject: [PATCH 1/1] PM: fix spelling mistakes Date: Mon, 24 May 2021 17:30:10 +0800 Message-ID: <20210524093010.8839-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Fix some spelling mistakes in comments: corresonds ==> corresponds alocated ==> allocated unitialized ==> uninitialized Deompression ==> Decompression Signed-off-by: Zhen Lei --- kernel/power/snapshot.c | 8 ++++---- kernel/power/swap.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) -- 2.25.1 diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index 1a221dcb3c01..af507c8c895b 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -331,7 +331,7 @@ static void *chain_alloc(struct chain_allocator *ca, unsigned int size) * * Memory bitmap is a structure consisting of many linked lists of * objects. The main list's elements are of type struct zone_bitmap - * and each of them corresonds to one zone. For each zone bitmap + * and each of them corresponds to one zone. For each zone bitmap * object there is a list of objects of type struct bm_block that * represent each blocks of bitmap in which information is stored. * @@ -1500,7 +1500,7 @@ static struct memory_bitmap copy_bm; /** * swsusp_free - Free pages allocated for hibernation image. * - * Image pages are alocated before snapshot creation, so they need to be + * Image pages are allocated before snapshot creation, so they need to be * released after resume. */ void swsusp_free(void) @@ -2326,7 +2326,7 @@ static struct memory_bitmap *safe_highmem_bm; * (@nr_highmem_p points to the variable containing the number of highmem image * pages). The pages that are "safe" (ie. will not be overwritten when the * hibernation image is restored entirely) have the corresponding bits set in - * @bm (it must be unitialized). + * @bm (it must be uninitialized). * * NOTE: This function should not be called if there are no highmem image pages. */ @@ -2483,7 +2483,7 @@ static inline void free_highmem_data(void) {} /** * prepare_image - Make room for loading hibernation image. - * @new_bm: Unitialized memory bitmap structure. + * @new_bm: Uninitialized memory bitmap structure. * @bm: Memory bitmap with unsafe pages marked. * * Use @bm to mark the pages that will be overwritten in the process of diff --git a/kernel/power/swap.c b/kernel/power/swap.c index bea3cb8afa11..3cb89baebc79 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -1125,7 +1125,7 @@ struct dec_data { }; /** - * Deompression function that runs in its own thread. + * Decompression function that runs in its own thread. */ static int lzo_decompress_threadfn(void *data) {