From patchwork Fri Jul 14 06:02:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hanyu001@208suo.com X-Patchwork-Id: 13312974 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3266FC001B0 for ; Fri, 14 Jul 2023 06:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235104AbjGNGCr (ORCPT ); Fri, 14 Jul 2023 02:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235060AbjGNGCh (ORCPT ); Fri, 14 Jul 2023 02:02:37 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE14C2D4B for ; Thu, 13 Jul 2023 23:02:33 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R2LVH11N4zBR9tK for ; Fri, 14 Jul 2023 14:02:31 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689314550; x=1691906551; bh=BOqlYj16pxE1yFsKTH0Iq6Rg1ib Vab+e8hUqx1RutTQ=; b=a7VfDQ262bMzB5dy5iF4D2O+quHEzP71E4t3KZ0xcwd c2M6NkwGp8X/7bZp49SPbEwXKU29kiOyArQLh4OLULmfyBx8dZ7fJb4aOkowly0I VKKfYvf5IzYVBI6ivTr9v/jiooftX+NxggeD/BBjF9d4euyX2/j558Q1jEf7nsKt tCPWnAjXqc66aOgSMMZZekpay6KpVA2qPsaNb+C4TLmWtu6of0wO/mhS9ftVseFq wZi/aQw6wyeZNjQJm+f2ZTAx7bBmpwbnN/ajYcAW/ktN9iJXMbyQUvndX8+p+itV dHB6T6L0i3Flfv5/j7NZ6vD5WFPvhYBQlX60oq88axA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QOXVsri4XIR0 for ; Fri, 14 Jul 2023 14:02:30 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R2LVG5M24zBR9t9; Fri, 14 Jul 2023 14:02:30 +0800 (CST) MIME-Version: 1.0 Date: Fri, 14 Jul 2023 14:02:30 +0800 From: hanyu001@208suo.com To: bp@alien8.de, tony.luck@intel.com, james.morse@arm.com, mchehab@kernel.org, rric@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers: edac: add missing spaces after ',' In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <1793c783600cfd750100cfad8c47cfea@208suo.com> X-Sender: hanyu001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org Fixes checkpatch.pl error ./drivers/edac/edac_device_sysfs.c:114: ERROR: space required after that ',' (ctx:VxV) ./drivers/edac/edac_device_sysfs.c:114: ERROR: space required after that ',' (ctx:VxV) ./drivers/edac/edac_device_sysfs.c:147: ERROR: space required after that ',' (ctx:VxV) ./drivers/edac/edac_device_sysfs.c:147: ERROR: space required after that ',' (ctx:VxV) ./drivers/edac/edac_device_sysfs.c:147: ERROR: space required after that ',' (ctx:VxV) Signed-off-by: maqimei <2433033762@qq.com> --- drivers/edac/edac_device_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) /* Function to 'show' fields from the edac_dev 'ctl_info' structure */ static ssize_t edac_dev_ctl_info_show(struct kobject *kobj, @@ -144,7 +144,7 @@ static ssize_t edac_dev_ctl_info_store(struct kobject *kobj, .store = edac_dev_ctl_info_store }; -#define CTL_INFO_ATTR(_name,_mode,_show,_store) \ +#define CTL_INFO_ATTR(_name, _mode, _show, _store) \ static struct ctl_info_attribute attr_ctl_info_##_name = { \ .attr = {.name = __stringify(_name), .mode = _mode }, \ .show = _show, \ diff --git a/drivers/edac/edac_device_sysfs.c b/drivers/edac/edac_device_sysfs.c index 05d4353..f6d42bc 100644 --- a/drivers/edac/edac_device_sysfs.c +++ b/drivers/edac/edac_device_sysfs.c @@ -111,7 +111,7 @@ struct ctl_info_attribute { }; #define to_ctl_info(k) container_of(k, struct edac_device_ctl_info, kobj) -#define to_ctl_info_attr(a) container_of(a,struct ctl_info_attribute,attr) +#define to_ctl_info_attr(a) container_of(a, struct ctl_info_attribute, attr)