Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2010468pxf; Fri, 26 Mar 2021 23:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5HOQ8JAapFwT2Lr6nVZOxfg+GnLDNZXMEt1uZYoRA833DLYjVQZcI8tNqEqBwHA3pj1w2 X-Received: by 2002:a17:906:f10c:: with SMTP id gv12mr19071571ejb.53.1616828205241; Fri, 26 Mar 2021 23:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616828205; cv=none; d=google.com; s=arc-20160816; b=EoeiG0TnymiTx0kkeMio5dczyGhlKAOuE0DytXnOwgoTG6SPJrFVEW7mnOWcxgkWje sTpQxKZv0udpCpIkpgasIO6aDhBMLd2ykRROxTRlh7zmeRWN15K8SyWdmcb8HOoDrVB+ bZOxOcFTL7XG9CmDE5R32iYMe3wZrK3vV30Rk1Vn/feeWg2dRyvAGm+xMzGQjxzxu1/7 8gpid6aR049ofNBcil5zyPmNKqSXgZl4kM49IBU1XAsCD5sHvbtc8ds/WhjR5M0JZXhG de0SNsMnJjXsTEYcAcBhIz2SoGPkIfH7oILCC3aEkINkPF4yH7qJBKMeK0zJmoU8zjD3 Wyaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ITEUlY9UAGYJqRoyofh/hHN1czuLKXy5blsIYYjZJkc=; b=q1DGswK9fCW/K6RpB/CfYfqAUsLlpxQzybdQHqy31AERUZlX+6W1uvl35wYm69vSsD GtQ3FKunTM1BRvUg3ssdbO8oXJRGSUrfdq9hRDgHZ2vv1bHgP6i4DSpg08hwjg6mOFzS CHyxrav+EVnUoUnMIR5+dVTz2CqBnXQLFyHptBMfmsbCYFPXeOAshPQBHQpn7tA79kpx eo3z/6TLY3KeXw1xeBW+u2ZxgQxmWTRjkJIvqhSgXbPF3ZQc6PtmS8DIUaZ6TwJUXsHf AWKVRf586FK/CGeXYu2uqg8tjA5yytfb3WHjzQvQv6/L+uTPM05frGVO8FxLPVbunBd/ 5IGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 js6si8856294ejc.497.2021.03.26.23.56.23; Fri, 26 Mar 2021 23:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S231559AbhC0Goi (ORCPT + 99 others); Sat, 27 Mar 2021 02:44:38 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:15332 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbhC0GoD (ORCPT ); Sat, 27 Mar 2021 02:44:03 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F6q4m0868z93nQ; Sat, 27 Mar 2021 14:41:44 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 14:43:37 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH 08/15] ACPI: acpi_pad: fix a coding style issue Date: Sat, 27 Mar 2021 14:40:49 +0800 Message-ID: <1616827256-51840-9-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> References: <1616827256-51840-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coding style issue reported by checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Xiaofei Tan --- drivers/acpi/acpi_pad.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index b84ab72..df4adeb 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -128,6 +128,7 @@ static void round_robin_cpu(unsigned int tsk_index) static void exit_round_robin(unsigned int tsk_index) { struct cpumask *pad_busy_cpus = to_cpumask(pad_busy_cpus_bits); + cpumask_clear_cpu(tsk_in_cpu[tsk_index], pad_busy_cpus); tsk_in_cpu[tsk_index] = -1; } @@ -265,6 +266,7 @@ static ssize_t rrtime_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { unsigned long num; + if (kstrtoul(buf, 0, &num)) return -EINVAL; if (num < 1 || num >= 100) @@ -286,6 +288,7 @@ static ssize_t idlepct_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { unsigned long num; + if (kstrtoul(buf, 0, &num)) return -EINVAL; if (num < 1 || num >= 100) @@ -307,6 +310,7 @@ static ssize_t idlecpus_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { unsigned long num; + if (kstrtoul(buf, 0, &num)) return -EINVAL; mutex_lock(&isolated_cpus_lock); -- 2.8.1