From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 203E6156230 for ; Mon, 14 Oct 2024 22:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728943685; cv=none; b=ttSkGLnV4/If9ybNfyNvhJCfRqQAiR+OswClSVmumnVNhDNUzq17vqgigmTB7liI7brSMlTV0F9NdkkIe5m4G79oEmkZzyXXTWFQPxoCHQtDsAc5Do/BV6aIpkC9ujUk4CPS9xMPdz055H3y+nZwusLexZMavma6P56KSCiQj4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728943685; c=relaxed/simple; bh=fTKWSQXF0ypFNbAGzzmAXxs+vQUO0TtdrsoT5dchpDI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QvNG98AMIiH+Wf1i2bgBTZ0CfRwZeK47dsTqhP4CMz/buaUl6giIgaf6I0IbyEwtBPedlTZkLmoorQsyhzFv92W0FlQlYrgRdx/31b0da9RksUW5gA3xCS3Ee7prlBtngkpt4ZFHvjF3f86t07YH5HbRiDEooKfpPPcVAB3fJ2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Il9SQWVh; arc=none smtp.client-ip=209.85.166.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Il9SQWVh" Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-8369b14fb91so139986739f.3 for ; Mon, 14 Oct 2024 15:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1728943683; x=1729548483; 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=6fZn3HVozUCHpAhBChYhgj2VZJQrei88clT/tksTBQE=; b=Il9SQWVhQg/3nUHO+hFuKfjNm7gcAJYnnLurr+a+lunXBXJMbZDHZ4p2KIbkib1P0c AqNw0XQdPPWUNB9TaTQqkmimHhfd39QsQb3vDi5Cy+ISaFC5etcTpx/29TXriJWvAtnC DlFtvfBkJLXqXhs8WF0bCcxry9Ww7PS1L6zPY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728943683; x=1729548483; 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=6fZn3HVozUCHpAhBChYhgj2VZJQrei88clT/tksTBQE=; b=nnfn5mDphNHR588UliCjQFxEN/7RAHfJK2Bz7W0VHDiHBGDgmMm51f0MBR/QLTjPQu Q3aDH551IfpyhVpkSJN5NlrC7JRkfjb1W8s9DpWD2t6pCMF2bAMxC5uy6Kpt+Nb6Tt0d 7o9AvddBG7Hs9tYAzEw9SndKKesAIo2x+2fTIXzWUJnp0A/OQS+ReFPYGyd1vxwILWgQ GaL49JythRYG6Gz5UwS8QybCMQ6caDsrocIUYMuO/cTfyIwy0N6Viy1prck7Ox7QWGjK umpXTCA4t5OS2QQWhb98IMgybGRTi0s6KYL41gjMSllGaUOTZPaIkYg8nagK2o4SCuWT nT+Q== X-Forwarded-Encrypted: i=1; AJvYcCVa1jmfYgjL09CbgaqeJ01hL41JkEVtQvT9obnrO+KpgutAMdh87xi8QcfPOZ2NTFlN/sPAezYvDDIgtJE=@vger.kernel.org X-Gm-Message-State: AOJu0YwKE/9rf2v23fIxqFFhV0thq3vQw+GTLPDv9uPnstEwECf1Mp5e DFWIvOnauEpdgxnkLTT54A3DCgd6gf9rDP/wcQr6XfDdPrgL5Y+sLZWhEm8mevI= X-Google-Smtp-Source: AGHT+IEuDLbunmWHWlwlQRiIV3BbNDg9RT+R6jVm4OC3F9c7hmK3Ji+75kCKpzDyIE0dB4QOU+n1nw== X-Received: by 2002:a05:6602:6413:b0:835:359b:8a07 with SMTP id ca18e2360f4ac-837952203bdmr949334239f.16.1728943683193; Mon, 14 Oct 2024 15:08:03 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-83a8b2aa42asm446339f.21.2024.10.14.15.08.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Oct 2024 15:08:02 -0700 (PDT) Message-ID: <606f8672-cd66-4828-99b9-2356c738acc2@linuxfoundation.org> Date: Mon, 14 Oct 2024 16:08:01 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests: timers: Remove unneeded semicolon To: John Stultz Cc: Chen Ni , tglx@linutronix.de, sboyd@kernel.org, anna-maria@linutronix.de, frederic@kernel.org, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20241010073707.4038081-1-nichen@iscas.ac.cn> <87492b3f-84d1-426f-ad71-7784a1c1dfc3@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/11/24 18:47, John Stultz wrote: > On Fri, Oct 11, 2024 at 4:00 PM Shuah Khan wrote: >> >> On 10/10/24 01:37, Chen Ni wrote: >>> Remove unnecessary semicolons reported by Coccinelle/coccicheck and the >>> semantic patch at scripts/coccinelle/misc/semicolon.cocci. >>> >>> Signed-off-by: Chen Ni >>> --- >>> tools/testing/selftests/timers/set-timer-lat.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/tools/testing/selftests/timers/set-timer-lat.c b/tools/testing/selftests/timers/set-timer-lat.c >>> index 5365e9ae61c3..7a1a2382538c 100644 >>> --- a/tools/testing/selftests/timers/set-timer-lat.c >>> +++ b/tools/testing/selftests/timers/set-timer-lat.c >>> @@ -79,7 +79,7 @@ char *clockstring(int clockid) >>> return "CLOCK_BOOTTIME_ALARM"; >>> case CLOCK_TAI: >>> return "CLOCK_TAI"; >>> - }; >>> + } >>> return "UNKNOWN_CLOCKID"; >>> } >>> >> >> Looks good to me. >> >> John, I will apply this for next of you are okay with it. > > Acked-by: John Stultz Thank you. Applied linux-kselftest next for Linux 6.13-rc1. > >> Also I noticed clockstring() is defined in multiple tests. >> Any thoughts on removing the duplicates and adding it to >> a header file? This will add a dependency on another source >> file, but might be good to remove the duplicate code. > > Sure, no objections. Thanks. I will send patch in soon. thanks, -- Shuah