Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1224237rdg; Fri, 13 Oct 2023 14:19:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8B61lTaq4G1VQp/G4lxkKHNA9JmwOxL5rXaj8UpgG7xwETZk73NvuKOYI6ySkyU3/haEx X-Received: by 2002:a05:6870:ad08:b0:1e9:8d44:a5cf with SMTP id nt8-20020a056870ad0800b001e98d44a5cfmr10028875oab.17.1697231972862; Fri, 13 Oct 2023 14:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697231972; cv=none; d=google.com; s=arc-20160816; b=Rcm8Bl3juq6MssbkNnRV+ANNgqe1SMeH90WYeCcYfDERGf5aTnFrB2elBw2CV5HEOY I6w1ujwtfNK/A80FGIYXvS+zXxJvrsUgJT5le9ihgIpzYEYJ2IIT65q2VFtJm+BQnNRq sTQW/2LHlDQrtLKB2nvu2L0bGfkGCfSlI1qEV/PLh1cbh6BZYU5YbpmgzmZ89KB5O/tV HostqK1RWChjhPGZ/mM1lIzw5/ZifcqxojexTBuSJ8lJ0fsZS6ZkOWfmqMnBZiSS+jo6 H1d24dgtIjf9jmd7b7Ozl9EnehpFfZY0t6hDyMw2XLupUaLEsPFcUOCvqUbfD7a/ccj4 KSvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yEpkSqStdpwPiK/rVH9XpS0uAjkRc6GI778X+nK4/Co=; fh=SWP/nplWCdCaJcW83WntAB5yZpCu3j3pzMfSzjY3G2Q=; b=Ql3enjD0g8bvTFpDbxyvIH+xRuylZP5OeZPdvR9hVXvDVSgEhSbCOYAvR/5kqtwbru tnA8onyMS5YOmpu88daThip75i3eHdh0Wcq4pE/KgMmSfTn9LCcjWCGxJ26MIZQXQX2K drLsjHaFwqKb0bClgHPhHQ1jmgzOscnmw5BbHNHkW9Tuhx6P3bMgJsHQrUiXaaEaUo1H FqSRrk7AV6MhnDj4T8dZHXCnIomM51kQf88zjBayRvMc/+UAMeDAdwW2SEHhI9g59n/b 2uc9m1AV3k30XFOtY/vmE74gSA796HzAmUE9rxiq32OFyooG52g6nN/b8rety4w3DfNX +yhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PVt4Uk6b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n21-20020a638f15000000b0057e21f51ab3si5299426pgd.665.2023.10.13.14.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 14:19:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PVt4Uk6b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C92908205FEF; Fri, 13 Oct 2023 14:19:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232157AbjJMVTX (ORCPT + 99 others); Fri, 13 Oct 2023 17:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbjJMVTV (ORCPT ); Fri, 13 Oct 2023 17:19:21 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCECC95 for ; Fri, 13 Oct 2023 14:19:19 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1c888b3a25aso19991815ad.0 for ; Fri, 13 Oct 2023 14:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697231959; x=1697836759; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=yEpkSqStdpwPiK/rVH9XpS0uAjkRc6GI778X+nK4/Co=; b=PVt4Uk6bIGUargV6BJhzdZsEKWEcZfX2IZ6ubVazLiKvqdLsESKGbi2iQrFkizpHYH BWaZuOZfLBrS3V8bb86PLvzqSyPQWcZmueLdI0tqWnh5d1E99STgDSn/UI/shbcrS8EX RNi/5xSNIYrP2Q3ECt7qIJw7ytncO/FAYblzBIuQkuURPZaFWsDH0PVUQ3gdJCVqRFMx M9Lm2At7bz81pQ4q/KjnBVgtq70OnY0gaD8SO0anvtNFLzrs+NAfUMiL87lsGUJmGvj5 oHECZUKXAXwAaHSFf1TeNxloOU05lLGSU2G2R48M8ZMwxWyoemZTunTH+GYrRH0Kba8p XUHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697231959; x=1697836759; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yEpkSqStdpwPiK/rVH9XpS0uAjkRc6GI778X+nK4/Co=; b=GrPHTrEZxbatX0Abp3Y84yPJF3xziYq3gFqD4Ev6GHXMTUxHjH1gB9s1np2E6De863 Blz7ShnGHHh4qqIGmk9wsahcRxEAQu9njgGO3cpMAoH5VUiV3jGXB5lIRwZQ7JuGSEUk HS1JqVucs/z9Ir807kzg+2vVmi4kcOteWga0K0CgYV8hQqsK4tAoEv9MqmJBvD4zocqK txJpDunjBEkaScVP/5lzKfLBehquvWZDpZ/1VTvspd8SOY7dP8b9FD6zO5xF8xTA6V3t QIe2nEy3UqbR7pcvafrlILxx1wPDLYhuFjwhVJEKSTUnYFZ1rH+jLaILaAXUXetGCfQT /z6A== X-Gm-Message-State: AOJu0Yy5w96iG9AMrhsVnBRWBbOKWdjufG9f05VS2JBeFe6+oAHrB1N+ u/sF/sSJIT9svQ4eLzfBRnO1Nxw3Hwu86w== X-Received: by 2002:a17:902:a504:b0:1c6:17a4:afb3 with SMTP id s4-20020a170902a50400b001c617a4afb3mr22449486plq.16.1697231959067; Fri, 13 Oct 2023 14:19:19 -0700 (PDT) Received: from Negi ([68.181.16.134]) by smtp.gmail.com with ESMTPSA id d17-20020a170903231100b001bb99e188fcsm4301830plh.194.2023.10.13.14.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 14:19:18 -0700 (PDT) Date: Fri, 13 Oct 2023 14:19:18 -0700 From: Soumya Negi To: Dan Carpenter Cc: Jonathan Kim , Dean ahn , Greg Kroah-Hartman , outreachy@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: gdm724x: Fix coding style checkpatch warnings Message-ID: <20231013211917.GC25352@Negi> References: <20231013051502.9578-1-soumya.negi97@gmail.com> <663c85bb-90c3-4ae1-ab0b-5ab1a8abd2a7@kadam.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <663c85bb-90c3-4ae1-ab0b-5ab1a8abd2a7@kadam.mountain> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 14:19:30 -0700 (PDT) On Fri, Oct 13, 2023 at 11:53:36AM +0300, Dan Carpenter wrote: > On Thu, Oct 12, 2023 at 10:14:58PM -0700, Soumya Negi wrote: > > @@ -271,8 +272,8 @@ int register_lte_tty_driver(void) > > int ret; > > > > for (i = 0; i < TTY_MAX_COUNT; i++) { > > - tty_driver = tty_alloc_driver(GDM_TTY_MINOR, > > - TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV); > > + tty_driver = tty_alloc_driver(GDM_TTY_MINOR, TTY_DRIVER_REAL_RAW | > > + TTY_DRIVER_DYNAMIC_DEV); > > Don't do this. The code was better before. The parameter > "TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV" is one thing and > splitting it up like that makes the code less readable. And I bet they > had to indent it like that to get under the 80 character limit. > > This is an example of checkpatch giving bad advice. Hi Dan, Will keep this in mind for other similar checkpatch warnings. Thanks, Soumya > regards, > dan carpenter >