Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5349758rdb; Sat, 16 Sep 2023 13:01:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdcjYF0uAgJhedYOTQunb/MGjxiv11hcnuNHsP3xR8dgGcWsSZCgfdJpZEgREHA2DSCQiO X-Received: by 2002:a17:902:6b01:b0:1c3:343c:f8b0 with SMTP id o1-20020a1709026b0100b001c3343cf8b0mr4879817plk.66.1694894460927; Sat, 16 Sep 2023 13:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694894460; cv=none; d=google.com; s=arc-20160816; b=WstbKQxxOsQohOFuGSfGKOclmYhpZlqZnqdZO2Z/Uj0NUA3Ien9vFCPBIv2rMnw0y7 qq2Nyw2bzcFu9M96i9vlS4Yy6yJQLY1n5X1Fn7hF0oqtp6jfMO1rSwqJwbq8rYZdc8AF 4n84yXfc7se9FLy9s9r/Fg170nSUCD3FqhyF5SKG15ez50SdCXHUODQ/yh0MVXXSnXt6 HprjmleMc5do4iSdQ36UNn1xKWH7brnRpKMADJPsEkcaq84Tek2G/lSmW0VyctorLZpC igTIDiCUWE6X4ftxE0JmGYuw+G6M7S1SHh/cyq+C/hoI3IG89W3E+pco99CuLHo1hUSM bDAg== 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:dkim-signature; bh=DVbOZtDmbMexD/9gCiyvbGFst0WQ8c5NS6OBdsiTSoQ=; fh=CnXy3gUDHN/itEJ8VOr4CJ6jC9QrmFVYaDBfP37Zjy8=; b=VZrc6F5P+p98IWctTyhZkSuy5FwPGEZ3XFgR0cCIV2QlqVpD2U2wCMjOXT6M/BRBDK N/5YbjHcL/sKtnAGCFUqk/mKP4RW4+yle3esb/3QclwoQ/fY8MZXihzOaR+bzJpatLa0 k9PzH4RHzYp0tEXLNd8SrOWRI111DmEKT+A5irIe5FlZyC3jVVV0fmmB3uVdtlkCxDVw ZUpWsRTgtcNZrMIcDRiPqFWvYv912NyY7HvynPkAr3n4Z+UR4BcVOYQcoAsSZKzlD5/T QEXLby6G0QFTQRtOTi2fv0v4dGaf4lPQwlx0GEWJ+On6UJx13sOWVeuP8p3Myer2xzbp 90YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUA+buxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ko5-20020a17090307c500b001c3ffc982cfsi5110694plb.142.2023.09.16.13.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 13:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUA+buxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 41F3A81D82C4; Sat, 16 Sep 2023 11:06:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231954AbjIPSFn (ORCPT + 99 others); Sat, 16 Sep 2023 14:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjIPSFj (ORCPT ); Sat, 16 Sep 2023 14:05:39 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD340180; Sat, 16 Sep 2023 11:05:33 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40471c054f9so8712985e9.0; Sat, 16 Sep 2023 11:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694887532; x=1695492332; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DVbOZtDmbMexD/9gCiyvbGFst0WQ8c5NS6OBdsiTSoQ=; b=gUA+buxc3rFn4d4y5lN7MnQGr2pyRdGRjlh4Yilr7wbmfe8LTeeht7fQTKtQG3jXcC XUzON4a4FbJqiAW/CubmFD+LKQZEUZu4NcSo7nD4uudAwpWTjondfrSo1LBUIcRT51Tc BRFE8JzG9Y2Oq6xncCvJa1uXzWaMZLTYxBb+nykA6mM3kvpXoOWQK+Kfn5G9YY5djugT EbE3/uGDYAudFUp8dVObtjXJLdldjKwGZbK4sn8hGjFItraRVDfr6SUPpmrayJdXJpOs czkg9zeejhhX2OQBzRlSbdRPIYxI7qysBJ25kfW3keOJ86ySQHhTKiUCev4BIrVpf10t q+yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694887532; x=1695492332; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DVbOZtDmbMexD/9gCiyvbGFst0WQ8c5NS6OBdsiTSoQ=; b=Csuu3oD9wzt1sG/hrwxyXPJIDR9JkzTCWFYhcgqanLgSeNLWlaXC8s3Fw17nUQofR6 3xZmfLyDDUnfurVRxRoMjP8QySho2whMz4NbNmecKiCleXzr5OHJ0v9zVslB8liulJjA T/K45oohMj6BtFD18ihPM5x9GyGyV98g6CeFwgT2oXYn659y1F3qQL91FyV1tsCcCN/z MdqQyXLqWDjWQDBdZq0/O9c37mRnDQAbEIwrhENoYwpz1uBqcVfuHKLRgwlu61zecUrY FwWQDvPbKiMYNIpdzcVcxPt285cYZzxKARzOUCymkJu0Ex/sEN93Nl3THfmBkjCVb+vo wGtg== X-Gm-Message-State: AOJu0YzA8FBdNASokITNdu0lop+9xbs+V+dxG8YGHu8I9JrBVQGTxOoo nuGWvUNMGE3KuWRzKrhih78Pc2nvO40= X-Received: by 2002:a05:600c:500c:b0:401:b53e:6c3e with SMTP id n12-20020a05600c500c00b00401b53e6c3emr4671065wmr.1.1694887531817; Sat, 16 Sep 2023 11:05:31 -0700 (PDT) Received: from [10.0.0.26] ([178.160.241.68]) by smtp.gmail.com with ESMTPSA id u5-20020a7bc045000000b00402be2666bcsm10732150wmc.6.2023.09.16.11.05.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Sep 2023 11:05:31 -0700 (PDT) Message-ID: <96ed6e41-65ca-7410-e2d9-78bd18bdf844@gmail.com> Date: Sat, 16 Sep 2023 22:05:29 +0400 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' Content-Language: en-US To: Javier Carrasco , 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> From: Ivan Orlov In-Reply-To: <20230916-topic-pcmtest_warnings-v1-1-2422091212f5@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 16 Sep 2023 11:06:35 -0700 (PDT) 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. > 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: 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