Received: by 10.223.164.202 with SMTP id h10csp4411724wrb; Wed, 29 Nov 2017 06:04:16 -0800 (PST) X-Google-Smtp-Source: AGs4zMZNAbZF7xci5AuTm1D5qoKiDc7nNM8raOiK58M6/aiugPUvpFYa1YKiaNklrzKFtCnFcYqV X-Received: by 10.84.131.6 with SMTP id 6mr2979561pld.418.1511964256454; Wed, 29 Nov 2017 06:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511964256; cv=none; d=google.com; s=arc-20160816; b=XSCwriDLhIXzjuyXRq8oo4Gh5dDvoFQ/ShzVIOyJ9f5TubugrjrtsUbGAxbd1QY6sg ZyhBwUr07YQc3nR2AKIo0Xs2K+1is7pgPS1sFdBkm/Pzw4Np0PPePhKBz+nKGurS8xu3 AHHwRUoVQRkSNa9czC5xOwb727bCclYRNOXCyv4n44LcoTtZGgf+qpud8Qn2ScPhoX+A d32LGWGsyu6J6bhT85U51jRyXRIY/BO+SXapA1aVYCe7WUXPo5XSBsDURucG2BYMp2pk pb5oS+muZm4AhSOFhQUx7CKtUQvfP9gITXiIsqK7oKsJOnaRH1F/Zy5QxqpdHmtfzdOE VlMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=NpLxf04lGe1WCH/hzKvMKrdu7HxWiZ8BX7ElIumQHSQ=; b=v0SF/fUnTtdT0SFL/ctx/w0d8Cr+sFyV4+1VcCyicATjp2vcI5ItNoJbot2ojrGSgs RUFe/tHR2QXOywkrBNMlwFUZK/fRtJh7HMpjlR0U9N4SPEGZQjAPS15Osrxux2ekHEfH uLacUkXlvzKwCuMueelAPLWxszudVT0quEeFsGGWq94TgzewyKCG4mbAuCxQbBFXm6Gm 9Reci9CKhw2ladgfXlqaVAsdBM/ErHYD58t1eXmmTVUk5i/gzIGZg54VUG7CFNLOU991 MsWHziCmG1WNTuIYiHCvo7/lN66fy8dOQ9eTp3RvxjncpsNZNnlui0/OaiXpwqZ1KRyt hZCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BAav/V7L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si1308848pgo.278.2017.11.29.06.04.05; Wed, 29 Nov 2017 06:04:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BAav/V7L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752931AbdK2NI6 (ORCPT + 70 others); Wed, 29 Nov 2017 08:08:58 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44509 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751680AbdK2NI5 (ORCPT ); Wed, 29 Nov 2017 08:08:57 -0500 Received: by mail-pl0-f66.google.com with SMTP id x22so2058550pln.11 for ; Wed, 29 Nov 2017 05:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NpLxf04lGe1WCH/hzKvMKrdu7HxWiZ8BX7ElIumQHSQ=; b=BAav/V7LFmfkmE1DN746DLAo8VgVm0bBfJ+Jq4mNj0asOCj/ZqtPVJNzV8a+TMfCcR fIREUyVAAtj9etQtCMSuNgkZ7VbuBqNZB3bq7e3DiTdrFUhnME7tv4OmYN52qxfaFJtS Lk5BaYCe2H1XV+8/7rj63mbHW/aOrV//lTcREKkofIDfbwy+37uYMOTGUd3b48UvBV4B mwOFzQO6AOXKIEvronus5i2zaBOO3+rxvlhiJRnmAT68YFIUpztaU7ZQJsE1QphnC4PI NpcD8djRWGDQKAemfenfLtfNoXZlR1fane5xpZFn3YH6XVr4YE6KPSDPPreTsj0eYFmb fu3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NpLxf04lGe1WCH/hzKvMKrdu7HxWiZ8BX7ElIumQHSQ=; b=AfBZRMyLuLZdfEyEiMOe1/06iS4yHfbB3U1JzlqsJsLeX5dYzMVm5r9lKHRnMZIp/D qN7a9chHA7ImsiVXrl5LFz6ZHp9vOfhzfWsPoM7bgUhGHOjyrOKkZgmzwm2jWR34pM7p n5J9WxNO3l42Cb4ZiahDg2vQilcmNZC70thpbkvjF3Uj2xgxbzyiYJm+yInq8fFIYkpY PMdcfUIT9EoLrE16VtZaMW+/lRtx5X8nzS5+KUAKUQVWgziKowG4zrGZSmgCHG0TwFWj tgkxc5UHm44f/nRBmSxgZmXAwHVEnV7NvR0M3xOViYGVGVwX4ToYywADLp7Hj1bfWIps R5/A== X-Gm-Message-State: AJaThX44lqZWpHx6ewzMMwprvcDqeU6K88N0PtxJsm9eJ7I0OKPfj69U 7mbSyrtnKxX7hVyHYcFg6Zw= X-Received: by 10.159.198.1 with SMTP id f1mr2843342plo.450.1511960936785; Wed, 29 Nov 2017 05:08:56 -0800 (PST) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id u19sm3048124pfh.89.2017.11.29.05.08.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Nov 2017 05:08:55 -0800 (PST) From: Arvind Yadav To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/2 v2] misc: enclosure: Fix space before '[' error Date: Wed, 29 Nov 2017 18:38:31 +0530 Message-Id: <0220d514bcec188234edd53ac55c5c43e8cd2df0.1511960503.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav --- changes in v2: subject was incorrect. subsystem/driver was wrong. drivers/misc/enclosure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c index eb29113..c4c5552 100644 --- a/drivers/misc/enclosure.c +++ b/drivers/misc/enclosure.c @@ -468,7 +468,7 @@ static ssize_t id_show(struct device *cdev, .dev_groups = enclosure_class_groups, }; -static const char *const enclosure_status [] = { +static const char *const enclosure_status[] = { [ENCLOSURE_STATUS_UNSUPPORTED] = "unsupported", [ENCLOSURE_STATUS_OK] = "OK", [ENCLOSURE_STATUS_CRITICAL] = "critical", @@ -480,7 +480,7 @@ static ssize_t id_show(struct device *cdev, [ENCLOSURE_STATUS_MAX] = NULL, }; -static const char *const enclosure_type [] = { +static const char *const enclosure_type[] = { [ENCLOSURE_COMPONENT_DEVICE] = "device", [ENCLOSURE_COMPONENT_ARRAY_DEVICE] = "array device", }; -- 1.9.1 From 1601401196442821086@xxx Fri May 25 02:26:31 +0000 2018 X-GM-THRID: 1585338454898043428 X-Gmail-Labels: Inbox,Category Forums,Downloaded_2018-05