Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1789419rwi; Thu, 27 Oct 2022 22:04:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aNAYP279Bw0W6Y1DkoWo/GRBzDShYQ8D0GSsleXhz8Rm7CIZJMns67OfndPjn8DBI7dpK X-Received: by 2002:a17:902:e84a:b0:186:b8ff:c698 with SMTP id t10-20020a170902e84a00b00186b8ffc698mr20717166plg.143.1666933470555; Thu, 27 Oct 2022 22:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666933470; cv=none; d=google.com; s=arc-20160816; b=Y2HQISZVD+16HCJSbopXrIaWbAKGntkIHBB+IWjZJkZumdOV1prtz+poIPZX3usbtl ifSXO+P5o36VLNSYS4Fyh3U31KOSa2isK+CjPfFWxO3B4r8PbL5aU8MDZTTEqr58F+At qA7uieS1PVK2L588bpLXFLCaX6syBAZ68HwJQLi6fpA4NoC7ObbRS+A7Ttk4ratOMCsq upLSpzccSCYzjn43aG9yJ4kuvpURt0GHz0QYn/OrBRNDc01CAdS0zjWVP+hLDvCZ2PSn W4y2M6h3x20ocYxldb/Eb6QeaWMViAqwQWWttENbhX/Q/vquKTefunXsjqt0PAn12wJv 2vcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HwmBRA+APmiXYQZg1tBoj+t+gqf2adSus7ddCo9oLb8=; b=x4i5H2jI9LheI8YMtIHg/KQUJslSUY//ZrWO077sbnmHwSrMJJ53MW3f3OIIuYOis1 ZcDr5GmTCtAerOrzs+db4acJrg8kxEv2UzhxnDUxvEwtfxOlrgYY9/gc0NQRzclCTBaZ CYA7uwQgyTNkhLm8ImiEcP1kOCu/jY0ESTl4yWJN7ZftzLEuzu4JI19gzoJMeOj4RjKj BHkaIaJQMwwJ5i7rsQuqh64Iq7+WAqgLS51u8p6ho9LSM2J4UQqUBOSfJWvpRviz0T/D Er5tTrmlb8svT2Ni56uqxnztiMPeQbzXA+I64COSO+oE31pQbKNL1Tw1XHmOMJ507EMX imyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aqK2XIPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020a170903024e00b00180556e1b6bsi4946740plh.609.2022.10.27.22.04.18; Thu, 27 Oct 2022 22:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aqK2XIPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229437AbiJ1E5F (ORCPT + 99 others); Fri, 28 Oct 2022 00:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiJ1E5B (ORCPT ); Fri, 28 Oct 2022 00:57:01 -0400 Received: from mail-ua1-x92f.google.com (mail-ua1-x92f.google.com [IPv6:2607:f8b0:4864:20::92f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073E5197FA6 for ; Thu, 27 Oct 2022 21:56:59 -0700 (PDT) Received: by mail-ua1-x92f.google.com with SMTP id f12so1444716uae.3 for ; Thu, 27 Oct 2022 21:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HwmBRA+APmiXYQZg1tBoj+t+gqf2adSus7ddCo9oLb8=; b=aqK2XIPjlDLtOlNEGgLWQWnUPiTd1vIjnrR0nXxR8DN8msOgby2Ts6ShJhtqDf5IST TCGVfCOZhmOK2GoyJ0HnhVDqi1xOrmvWs/GeM6mMORLjIGgsst45LAdZr2rhJ4Bmb6XH s1Ka+rF7jG6DpxMrzH4ZL3lzP5k5PWSr8FlTlCCDb+lL0lA2agVyiT8bN1/dvXN9J+yz eT2tP3RO8XRggB9xUK6wm7wRyJ6dpCAm5E9VYvzNR9ZZpgRr2vJ0Y51jsuQqeiIdp0kF e60t5JJXEKqYYIW2tfAdk5kx/yv+gFaKzOD6XiPLGhjV9gZuYC68a9GnT5FgOOzqczZU lzXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HwmBRA+APmiXYQZg1tBoj+t+gqf2adSus7ddCo9oLb8=; b=rKMJ4DWQuhNVah/V91uGDceJ4j67cbz9nebksbCxLNW1j6iX/U0TdZKtlA/ewsRzPo 96DSRUyZrFrg4xRq1a/4JN9DVVrorL3mZT3PXnw4aDtPukTWURL/wSKx3/Q4D+qmVEFU EKvUk1yasdm6ClIYXCeQY84spgf5wPn+vHN4vKsZf7EZ5Jy1BGoAdlUGYxl0lHS++DZl v0C2kIB39y2AMQzKZt75fJKDzHzX/f++Ue0a4iXQ78Uf/i6YInGRZYHFpQB3Lo7E+pON y51DyplsT3vsA1389FnALlslomUOb1/09frTrQIDj7BJXMqQKs/A4hI0M4kn5DDlq5dj E+Mg== X-Gm-Message-State: ACrzQf309J+96spTc70FKJndDctDy2ZQ6OMVo7/UxP0it37tl79/lR1n OyG1O3+VPqs7zg9Z9SbtZVbgRtc8xK4fsKR26nCvEMZXCcJPkw== X-Received: by 2002:ab0:25d4:0:b0:3c1:c353:31cb with SMTP id y20-20020ab025d4000000b003c1c35331cbmr30171453uan.63.1666933018093; Thu, 27 Oct 2022 21:56:58 -0700 (PDT) MIME-Version: 1.0 References: <20221026132838.GA44037@rdm> <20221026171430.GA5592@nam-dell> In-Reply-To: From: jovial umwari Date: Fri, 28 Oct 2022 07:56:46 +0300 Message-ID: Subject: Re: [PATCH] Fixed[ERROR:trailing whitespace and braces around scalar initializer] To: Dan Carpenter Cc: Nam Cao , gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org well for the start it was not giving an error but after fixing blank lines that is when i saw that Thank you for the hint i fixed it On Thu, 27 Oct 2022 at 10:56, Dan Carpenter wrote: > > On Wed, Oct 26, 2022 at 07:14:34PM +0200, Nam Cao wrote: > > On Wed, Oct 26, 2022 at 04:28:38PM +0300, UMWARI JOVIAL wrote: > > > Using the checkpatch.pl script, found the below errors and fixed > > > ERROR: trailing whitespace > > > CHECK: Please don't use multiple blank lines > > > warning: braces around scalar initializer > > > > > > Signed-off-by: UMWARI JOVIAL > > > --- > > > drivers/staging/most/dim2/dim2.c | 2 -- > > > 1 file changed, 2 deletions(-) > > > > > > diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c > > > index 7a5f80e637a0..28259ce05024 100644 > > > --- a/drivers/staging/most/dim2/dim2.c > > > +++ b/drivers/staging/most/dim2/dim2.c > > > @@ -987,7 +987,6 @@ static int rcar_gen2_enable(struct platform_device *pdev) > > > writel(0x04, dev->io_base + 0x600); > > > } > > > > > > - > > > /* BBCR = 0b11 */ > > > writel(0x03, dev->io_base + 0x500); > > > writel(0x0002FF02, dev->io_base + 0x508); > > > @@ -1084,7 +1083,6 @@ static const struct of_device_id dim2_of_match[] = { > > > { > > > .compatible = "xlnx,axi4-os62420_6pin-1.00.a", > > > }, > > > - {}, > > > > I'm no expert, but this looks like a null terminator and probably > > should not be removed. > > You're absolutely correct. Also I tried to see why checkpatch.pl was > printing an error for this but it doesn't print an error for me. > > regards, > dan carpenter >