Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2049423pxf; Sat, 27 Mar 2021 01:10:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx27nOshIMwnCaHTd+GPes/1qxPeWT2tLncXkH4mOtQv0s3kIhBEbHJHTqBKFLUZlTbQGPi X-Received: by 2002:a17:906:3643:: with SMTP id r3mr18744925ejb.527.1616832638018; Sat, 27 Mar 2021 01:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616832638; cv=none; d=google.com; s=arc-20160816; b=FoLvjc4PKyQECjouQDSnZUFOF5VtZbgCugrLNrt3EtxyIZgXg78phKshE97t/hkFrq 8uCg4mDJ4wLtm69AOMSF0vxE/JNU5wKC7QHZQz2zZFT8WRcu9sDDisJwLgT9hye+oCzY mMNGO5Sd2m1bdcv/ioM6JLBQrg6XSFghduO7J1vj5Tp6HraKUplcD38TRu6yhS6pl6b1 SpIi7DW5U5h3WhUwQ9+whQfyuee8HXwMGbJU1illWZPET2VgYwb0kFAoKvMjI9KqLHd4 bSvYRN3DwFwRpzNS95RCeGcwawbCeY2fDHX6MMJjOJfi/wowtM1s8eQHv3R3EH50zwWG hmDA== 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=p4zcg+P0MT+Rq2IaQZqOwnbGGuRSAVJ2RXZGfAd0TRnc2aOSOrofRnzOKBf5pI9emC NCQNM625s2OszvcZUcVGsxApflOQw0G0/zwXcKmURhmvada/FiUb4vPAqG1IgNKShJi0 OEH3wP+zrtgohiP9B6J/vYVpgGwkbkkbkglyOIsGmjHEMFcv66VyjbuPrCLtTQM8nRXZ C6pN0RNREgJIqXpRi6eGT7u1rrgWrUHjI8r0nWyN6l0Gz5BxnWT1saf3njK2YIRJQ2tF WqYUqStsVPvXnThP74EzKg+wf+zh4z0xa+y4363+Q75euHOzajezQv5Y0y7H7NDbCQIe gXjQ== 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 a7si8519039ejr.564.2021.03.27.01.10.00; Sat, 27 Mar 2021 01:10:38 -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 S231571AbhC0Htz (ORCPT + 99 others); Sat, 27 Mar 2021 03:49:55 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:14925 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231172AbhC0HtT (ORCPT ); Sat, 27 Mar 2021 03:49:19 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4F6rXg5ZwjzkjTs; Sat, 27 Mar 2021 15:47:31 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:49:04 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , , Subject: [PATCH v2 08/15] ACPI: acpi_pad: fix a coding style issue Date: Sat, 27 Mar 2021 15:46:26 +0800 Message-ID: <1616831193-17920-9-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616831193-17920-1-git-send-email-tanxiaofei@huawei.com> References: <1616831193-17920-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