Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7770761rwp; Tue, 18 Jul 2023 23:14:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJhB2TxSsfwhsJ5HbxrzF33msPM622/BT4AMIxxNd/hDV9uq1qrE98++umwQQueQPrvnx+ X-Received: by 2002:a50:ed94:0:b0:521:6305:82e7 with SMTP id h20-20020a50ed94000000b00521630582e7mr1848676edr.30.1689747294589; Tue, 18 Jul 2023 23:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689747294; cv=none; d=google.com; s=arc-20160816; b=vVGgjQWhQEuShRE8GQOVbz9sPpNuscLyv4jjLVxdBRRLY1JHz0Dsaoy+lqjO4iivuM VVDpPc31hHgcG1IFknuHC6JSU1PVPvHMdRTSqNj8JgoSgWm4hmA1CsU8TLuyrolZJ0ng j4iwf49H3T4yHfdmY9dQbV9mrDEUnGevw2kAwt6qMbcBIazogcFrJmWcK1ViU80Wlr0B qTPe8qKuAL2CUxeIL5gve4KJyVe7iL6LxDLCsQsmvHcdeESq6M8W/N0AfGrsHOJhTkny nQmKHKNQ136l2rvwzxePwRbmAKpb5hCSZS7REQlcBzM2+a7pm/DYzp2ldA8cUA+1CFUH +sJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=qXai08mi1FY6Mowq61ZFm7zLeMrDWwBIMEU75Bz06n8=; fh=g4mbpUZXebztZMChraCdwqTcPHgFsqevi8u+bwECR2o=; b=D37mJbstgMJOrw4zAWIi2Gzx+mzqqBAj1IHh7814NUBP62UjTnZ1COIjB/ei7m8w+5 6vI9PNx3ZwN8jsdHfXGkfWjQdqMm39KhLVclTCop3tiHM1CUMrqJZtBOsX4O02hnHEkp Bf4J0/2Q8GI97/8FUazYQ0vZ6ypUkU2Q4y8owBLeB0RH96rQDco8JmyMyYwelKcIV9K3 iB7l55B/nXr80jvuLm3CsvOdTF3/lVS1WZnmYypDlU8lrhfIFZLKA9d4UJK/7ZqjtC5t zQkybBzxmVKiMNQCMiI7ddfnYrIWVe5c+JUYtJpFO0vvGTkb9GwpHk6RWUHdesoMMWCm w5IA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020aa7dc09000000b0051debfa935asi2452822edu.141.2023.07.18.23.14.29; Tue, 18 Jul 2023 23:14:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbjGSGGG (ORCPT + 99 others); Wed, 19 Jul 2023 02:06:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjGSGGD (ORCPT ); Wed, 19 Jul 2023 02:06:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB88A1BF2; Tue, 18 Jul 2023 23:06:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6A54F60CFB; Wed, 19 Jul 2023 06:06:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E259AC433C7; Wed, 19 Jul 2023 06:05:59 +0000 (UTC) Message-ID: <1fe12cc2-0a9f-2a55-7c4d-95f49241c3c0@xs4all.nl> Date: Wed, 19 Jul 2023 08:05:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] media: dvb: remove spaces before '[' Content-Language: en-US To: sunran001@208suo.com, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230714080514.14297-1-xujianghui@cdjrlc.com> From: Hans Verkuil In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Ran Sun, On 14/07/2023 10:06, sunran001@208suo.com wrote: > Remove spaces to clear checkpatch errors. > > ERROR: space prohibited before open square bracket '[' > > Signed-off-by: Ran Sun > --- >  drivers/media/dvb-frontends/tda826x.c | 6 +++--- >  1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/dvb-frontends/tda826x.c b/drivers/media/dvb-frontends/tda826x.c > index f9703a1dd758..7f17efe17d11 100644 > --- a/drivers/media/dvb-frontends/tda826x.c > +++ b/drivers/media/dvb-frontends/tda826x.c > @@ -38,7 +38,7 @@ static int tda826x_sleep(struct dvb_frontend *fe) >  { >      struct tda826x_priv *priv = fe->tuner_priv; >      int ret; > -    u8 buf [] = { 0x00, 0x8d }; > +    u8 buf[] = { 0x00, 0x8d }; This patch is corrupt: TABs have been replaced by spaces. It's not just this patch, but all 7 patches you posted to linux-media. Also, please mention the name of the driver you fixed in the subject. So: "media: dvb: tda826x: remove space before '['". Regards, Hans >      struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 2 }; > >      dprintk("%s:\n", __func__); > @@ -65,7 +65,7 @@ static int tda826x_set_params(struct dvb_frontend *fe) >      u32 div; >      u32 ksyms; >      u32 bandwidth; > -    u8 buf [11]; > +    u8 buf[11]; >      struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 11 }; > >      dprintk("%s:\n", __func__); > @@ -130,7 +130,7 @@ static const struct dvb_tuner_ops tda826x_tuner_ops = { >  struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c, int has_loopthrough) >  { >      struct tda826x_priv *priv = NULL; > -    u8 b1 [] = { 0, 0 }; > +    u8 b1[] = { 0, 0 }; >      struct i2c_msg msg[2] = { >          { .addr = addr, .flags = 0,        .buf = NULL, .len = 0 }, >          { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 }