From patchwork Tue Jun 8 07:44:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 455756 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3414009jae; Tue, 8 Jun 2021 00:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqzWQPw+HeuG9HK8ZA3GfzRVuaEfNgYoYD69q90K4/czTSXFTpOR/eqL7kBSzyRYhT1UOz X-Received: by 2002:a17:906:488f:: with SMTP id v15mr21576963ejq.428.1623138292381; Tue, 08 Jun 2021 00:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623138292; cv=none; d=google.com; s=arc-20160816; b=vsq1CK1MhNyBgJKYe3Xiyyf2HVlWtYh34Jc5Y8UwZwI6D2xSAHIjXGZWqax+BCe/LI XfsYbWjBq/N/m2wtwmB9xjItrclz2vycczFfO+M7TxTOEfZlIMcEj9N9Wro1TBiHm5gZ +K1hF5Ge+JLYrdQvv4NTzSEK2HUoNCdSpp3YGbMCONeXSvYu7MRV28zvQrb70FzlBs4f qsSmz31jORwI2LhKDaOH06WbUJ9VK2+jUw3iU22kkMT+Mukf6MjDQYdUEaxro73SDYm+ E4EykQsty/c+RjZbLmIB08VJEv1DJadTNvRG+H8dXoa6mNM3PU/hJONiJS7ersPoaDH0 P2ZA== 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=obeHhwU0KpqMEC7dy5N59BMiUrz9Q+Ehvd3jNSFRUkE=; b=dI1TyBNA1OBw2o7wz/37ZXkCt7M1/QUi+l1KCaSNvR4MdK5jEFLAPQYz6fi00QN/an uOFG/iUW5t41ZacYK94qg0cAiD3/W4gX/wN1FO7qN7LlGdCMzFcHl3KkoF26zScqEN1p tvU4wV1inua6MGK3ElQ2MOc41aUWec5/AJMOgzfVnob2r7MkgUssXj9x5Y/8pCTgN870 SbLErYsiBpCTIsCROozF6uNq4cVbl4ekKi8clH87taucnyYNzH5hvlvGp142OlYRDvfz JFNaKW5+LnFNn3RSUpWd3jYOmxbUW4iAWXdW1buoveMTMGzw41fcetCDkqFL/jLM3EEL yhjg== 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 m9si1572662ejj.377.2021.06.08.00.44.52; Tue, 08 Jun 2021 00:44:52 -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 S229512AbhFHHqg (ORCPT + 8 others); Tue, 8 Jun 2021 03:46:36 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:4395 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhFHHqg (ORCPT ); Tue, 8 Jun 2021 03:46:36 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FzhxH2M2fz6tqn; Tue, 8 Jun 2021 15:40:51 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 15:44:41 +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; Tue, 8 Jun 2021 15:44:41 +0800 From: Zhen Lei To: "Rafael J . Wysocki" , Len Brown , Pavel Machek , linux-pm , linux-kernel CC: Zhen Lei Subject: [PATCH 1/1] PM: remove trailing spaces and tabs Date: Tue, 8 Jun 2021 15:44:37 +0800 Message-ID: <20210608074437.12905-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: dggems701-chm.china.huawei.com (10.3.19.178) 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 Run the following command to find and remove the trailing spaces and tabs: find kernel/power/ -type f | xargs sed -r -i 's/[ \t]+$//' Signed-off-by: Zhen Lei --- kernel/power/Kconfig | 12 ++++++------ kernel/power/process.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) -- 2.25.1 diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 6bfe3ead10ad..a12779650f15 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig @@ -98,20 +98,20 @@ config PM_STD_PARTITION default "" help The default resume partition is the partition that the suspend- - to-disk implementation will look for a suspended disk image. + to-disk implementation will look for a suspended disk image. - The partition specified here will be different for almost every user. + The partition specified here will be different for almost every user. It should be a valid swap partition (at least for now) that is turned - on before suspending. + on before suspending. The partition specified can be overridden by specifying: - resume=/dev/ + resume=/dev/ - which will set the resume partition to the device specified. + which will set the resume partition to the device specified. Note there is currently not a way to specify which device to save the - suspended image to. It will simply pick the first available swap + suspended image to. It will simply pick the first available swap device. config PM_SLEEP diff --git a/kernel/power/process.c b/kernel/power/process.c index 50cc63534486..37401c99b7d7 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * drivers/power/process.c - Functions for starting/stopping processes on + * drivers/power/process.c - Functions for starting/stopping processes on * suspend transitions. * * Originally from swsusp.