Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2199643pxf; Sat, 27 Mar 2021 05:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMC8XGKWmHJP4/p38gndrIyP6dLwfyIYh2t+pYI7ii6dUI7+fRDnbAEwwaU1vdv7sLPHfg X-Received: by 2002:aa7:dc49:: with SMTP id g9mr19573195edu.60.1616847248707; Sat, 27 Mar 2021 05:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616847248; cv=none; d=google.com; s=arc-20160816; b=mTM0Socae177ndtQKxgJHXCgi6lKGUF6kJ/3CZ4u1CLUe3ce0x9O8a1NDQgtqiwZzF RtUlE293JLGe398eC7F63C1lZZK6vqOC26tIQRVrY2EtvjS4o4I7VxVTo3oN1+rad9rA kJNueJnxp5oFttsov1MLoxkwo8EJBhBeGLakp2mt2QN4/kbV8eJWYYSLn4oN2KBjt9t/ dyRc2kVTy4cKZ3XOSXonFNjtvddpTcgdSrEzHaJg1UAGbGKi2egWFw4VFQjrXJvYsnnl sCz2/vxTPPe4WFIuU/BgFkPYKLzsBIErsK1rxXXs3Rfw2bJWL0uY6plPsTCNGjZLdGdt IHYQ== 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=Je/dlEHKNGe0ten71AxKuPW7jVRWtWUgyTv8UFRs/RU=; b=0Bvx4rQ9/eiop7OVX62GQ0V5dNzl7nUKab7PoZfNcNQYyNq8wxGEUmoQ1sGGZz+ZuF s0hi1yV7BslHmvijdJ1FEQZ9sv1tb4TMF9JJpsJj1seZg9J4z+bFzxiT/MxpUWw9+gfs FRT6t4Xqz0PUDMX4EjIjg3T261hj+o7C5WvgYx4iZTyfixHNDf5mR67hvnamVS8P7cf0 bLTNQ3cPSeVuLoL4hTglCgu2TWeBWRu53d9UTFMaz6GcV5GXUK7LGxFIACm40yEtIhaN i6pOG6OmSoUmkVttym1QQJkRSMdPoJgiN/O7o3ouidIIstmJZ0ptpSjc6SPrMfs67w1b Vd9A== 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 b25si8917223ejv.506.2021.03.27.05.13.46; Sat, 27 Mar 2021 05:14:08 -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 S230482AbhC0MLb (ORCPT + 99 others); Sat, 27 Mar 2021 08:11:31 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15020 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbhC0MLQ (ORCPT ); Sat, 27 Mar 2021 08:11:16 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F6yKt5Vc4zPqLZ; Sat, 27 Mar 2021 20:08:34 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 20:11:00 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH v3 05/12] ACPI: acpi_pad: add a missed blank line after declarations Date: Sat, 27 Mar 2021 20:08:17 +0800 Message-ID: <1616846904-25719-6-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616846904-25719-1-git-send-email-tanxiaofei@huawei.com> References: <1616846904-25719-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 Add a missed blank line after declarations, reported by checkpatch.pl. 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