Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5447451rdb; Sat, 16 Sep 2023 18:44:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHz0HYA+p4YTMRO1PwwCGwEcw9Vvjb+Xso3/kw8zsj2R97W5rfmWfzPKUDSB45HKLtm4REb X-Received: by 2002:a05:6358:2910:b0:134:c37f:4b64 with SMTP id y16-20020a056358291000b00134c37f4b64mr7531908rwb.30.1694915089432; Sat, 16 Sep 2023 18:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694915089; cv=none; d=google.com; s=arc-20160816; b=kksmDgS9nW/N2+26oYD9iizbyDWWwwNx7DSH5By/zjvrPBusmkH+mlffYerdrEJEjo QYT6dC0KzBu6+kCYWQiN2C/JFsdvAQmS66puLNr/VkEuin4ZKr3+rUKZh/BbfMkMsbgR Aov2qTBb9gwe/jUMWOuAVqSc6ScmKyQ24dY9qcXXy185/eWs+JFb4sObYed5YRL1nr/Z iFA/tj0swVNMZaaQ1Ofo4Np/272IfS3l+l1R5JxrW/rHicGKBaDIj//nniPhwrg/kFf8 h9u4RiIfAHogtIXWsDljio+Q4r+E28kUyfnb0kRIa1pxCByV8+WPzwux5pwSlzmziC8l jZWw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ckuQZ1CawEUL97pJvhzualqoX+UXSrLJZVGT08Xyrcg=; fh=UJJUJ6/5A+pCYI1NA6lJbP13tT9sxzrRZS2/k/i1290=; b=jHZsoa2UGr+IS5HvtMu2SqX4ksMc4IYXlmtnEt9TsOohMPDi8a0WBH93/tOKQtQUxQ bVQGDo72ckTIBMOB3eGX43eDNE1Ot6RA+934qJxGGEvcFeb64L0rcxmuuiOxXMLLaYkN W7GkhOcUltW+tQzYY5sPSJjKySnRhGnuRfYlJo/FH0e9KankXKMifrwD37H5BMGY47G/ n3ON3Dqbz+VvUMCfsCAKUyq40f/ka66aPtPu0t2PdUtfF/iuoflE0svO+UwTSBR1uK/d QOI0kbmLf5ihyyTLf/F07OeJQlIMZBLCa9h1RKvblOazQF5ZnkTDS4hMcOIdNEdy1d/M ZnYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BbCX2VhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n18-20020a170902e55200b001b8ba81d04dsi6209753plf.395.2023.09.16.18.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 18:44:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BbCX2VhY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id AB77B83F7404; Sat, 16 Sep 2023 11:27:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237939AbjIPS0E (ORCPT + 99 others); Sat, 16 Sep 2023 14:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236500AbjIPSZh (ORCPT ); Sat, 16 Sep 2023 14:25:37 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7659CCE3; Sat, 16 Sep 2023 11:25:32 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-31ff7535aa6so1430070f8f.0; Sat, 16 Sep 2023 11:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694888731; x=1695493531; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ckuQZ1CawEUL97pJvhzualqoX+UXSrLJZVGT08Xyrcg=; b=BbCX2VhYG9B8HSer6l1IVjMhGr6y2/egGTnN+V8rgzpVCYxzkIx+WJ1xdNsZZBiUps A2lXF2BT1PBq0jyvsT3asBMgIz82KCuOIFQaqiMoU0fN6ZC7lJE7X8DTEyI4m2xQ4Aea CX4BiaUEtDpuhWVd3EUmr/D8omfIdxqo4IrnQk0Y/aPgYrfyb4uFqsbkcG8KUHDy4hFY rx1PHt6pTQpPGpgnmQfdOBUk8RJURIp8c3PxHyp3SrG15qpA1WxnIhZHURLFZFrY1Z8Z WRP5M9+YompcHfNBAdqI+maXPb2LAT9iJr393DNGfPnnIyEuap42JyKYEoJQmbwhA/lx 6yag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694888731; x=1695493531; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ckuQZ1CawEUL97pJvhzualqoX+UXSrLJZVGT08Xyrcg=; b=rZlSAM65Ber6wpKDSi/qMAQMoIxukuJrIPjBnWAIS8oCZsHg9nL3j1kvd9v3xpGoFl KDQIGNeclhFl0CopiqxSGgfEqewM7SoYhtP8gUQtOo64iP13pQiVCjtNC+9yD0PFPprd a+NQp/dLlKwvD5HHe6OQetuu75JJoPa3vH626Y5dt/Z9dLYeTgjKEdqRLgrup8lkqOE1 ySsaEGiIuNBHaPcqe8PvSmYRqFVzkXPcKzCFPaz9P6e/OkjsQM8OInLDl5jXAlVwkc4s uZ0P60GCIdYR7Y+yjLzZZD/KqhBMWJwqh7QdQjsZpzuZAo1e51ebtwjKQLMEFf7FQmwV 1sDw== X-Gm-Message-State: AOJu0Yz++ng2Kq5aaIpOsUF9i8XTG9bFvIDygnEIqfAWgwCcoyhPtjJ5 hgXDND1lmuh0uneQQ9OCk+Y= X-Received: by 2002:adf:dccc:0:b0:31a:ea86:cbb8 with SMTP id x12-20020adfdccc000000b0031aea86cbb8mr3704433wrm.2.1694888730582; Sat, 16 Sep 2023 11:25:30 -0700 (PDT) Received: from ?IPV6:2a02:8389:41b4:ce80:33dd:a87e:3888:429c? (2a02-8389-41b4-ce80-33dd-a87e-3888-429c.cable.dynamic.v6.surfer.at. [2a02:8389:41b4:ce80:33dd:a87e:3888:429c]) by smtp.gmail.com with ESMTPSA id v16-20020aa7d9d0000000b0052f3471ccf6sm3791715eds.6.2023.09.16.11.25.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Sep 2023 11:25:29 -0700 (PDT) Message-ID: <128d057c-0d60-418d-7129-093ea59b8870@gmail.com> Date: Sat, 16 Sep 2023 20:25:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] selftests: ALSA: fix warnings in 'test-pcmtest-driver' To: Ivan Orlov , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shuah Khan Cc: alsa-devel@alsa-project.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230916-topic-pcmtest_warnings-v1-1-2422091212f5@gmail.com> <96ed6e41-65ca-7410-e2d9-78bd18bdf844@gmail.com> Content-Language: en-US From: Javier Carrasco In-Reply-To: <96ed6e41-65ca-7410-e2d9-78bd18bdf844@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 groat.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 (groat.vger.email [0.0.0.0]); Sat, 16 Sep 2023 11:27:59 -0700 (PDT) Hi Ivan, On 16.09.23 20:05, Ivan Orlov wrote: > On 9/16/23 19:22, Javier Carrasco wrote: >> Defining the 'len' variable inside the 'patten_buf' as unsigned >> makes it more consistent with its actual meaning and the rest of the >> size variables in the test. Moreover, this removes an implicit >> conversion in the fscanf function call. >> > > Considering the fact that the pattern buffer length can't be negative or > larger that 4096, I really don't think that it is a necessary change. > >> Additionally, remove the unused variable 'it' from the reset_ioctl test. >> > > Your patches should always contain only one logical change. If you, for > instance, remove redundant blank lines, combining it with something else > is fine, but otherwise you should split the changes up. > Removing an unused variable is actually removing a blank line from a logical point of view. Is an extra patch not overkill considering that it cannot affect the code behavior? >> Signed-off-by: Javier Carrasco >> --- >> Defining the 'len' variable inside the 'patten_buf' as unsigned >> makes it more consistent with its actual meaning and the rest of the >> size variables in the test. Moreover, this removes an implicit >> conversion in the fscanf function call. >> >> Additionally, remove the unused variable 'it' from the reset_ioctl test. > > You don't need this text here. Usually it is the place for changelog > between patch versions if we have more than one version of the patch. > For instance, if you send a patch V2, it could look like this: > Sorry, this got merged from the cover letter by b4. I will be more careful next time, thanks! > Signed-off-by: ... > --- > V1 -> V2: > - Improve something > - Add something > > So, don't repeat the commit message here :) > > Anyway, great job! I believe this test could be enhanced in lots of > ways, so I look forward to seeing new patches related to it from you :) > > -- > Kind regards, > Ivan Orlov Thanks for your feedback and best regards, Javier Carrasco