Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3553067pxj; Tue, 11 May 2021 07:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbEZZ5P3qMWS7yBAIq9wEw+hL8TuWtOwWKdP2K4iD/p0B5CLZVxvqQUqqodfNAt/Ah+f4e X-Received: by 2002:a50:c44f:: with SMTP id w15mr37114734edf.79.1620741905828; Tue, 11 May 2021 07:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620741905; cv=none; d=google.com; s=arc-20160816; b=gC6YqiVu/gPDtYzV8HZY3cTetluKsp8/rY+jzz3JO2xuchz+rDCrSn9oauld8NxApw 1ZlKhDmKKs6n8yQffVf8ucEx9w3vESXKQFQ3iNCx5Nbe6b3SyfAXatMqfE3bVD0d0jBL utOnb3F7aQKa+z/1O5eBn7szAHT7RmQDQ6OFTQHNGUNGdzxEovHuCaVq7bQ7mt9LZMA2 Y6EsTJ5ypbvy0eTgrNq3Gr7KbO49krlX1ZtnPeq3QqsUBIvamvAmFCAEmEj6JL+su79t A2vaxwK7pjAHg/XVlT7NS5i/N9KEJJZnJZXARK45qxkEGdna/8XVLyl0iKyylPTLQwks IjeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NYeYRlFwmTYVFPnZBE9jpbdODk2yUDxPpa+xXSIkfPc=; b=KMUvVaL6nlid7Ba5gHLouZ3iwZHfRYpYcHcg12y4wsKQYVuZDP7XjFzmvclP88jSEk FcUHFwezNp/Xhgxg3yZPrEj0bAvH2E/y6rDNd64UOATpKket1siDzJNfeuGUcwfrjfFt +tVEYQx07jwUH8vOLctbx31XusxFEuj25nFkJyjUYUYwoaY3pqB8C8JaluxVAwL672/P Yk4LpFszqNz2tNcQxCYBfc/FGp42D8jVzUoDFx/7Lr4pubLq8k7bmrVzDBFwOGVXfy8c l8KMfgp+fKkQ9f9O8ZPp5w+2ikxTRQEE08GOGPbQn8cAPF9kx9zKBHEqDDJ5HO79e75H nclg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MDItPMgg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si16605265ejx.488.2021.05.11.07.04.40; Tue, 11 May 2021 07:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MDItPMgg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbhEKOE3 (ORCPT + 99 others); Tue, 11 May 2021 10:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbhEKOE2 (ORCPT ); Tue, 11 May 2021 10:04:28 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA6F1C061574 for ; Tue, 11 May 2021 07:03:20 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id y32so15800325pga.11 for ; Tue, 11 May 2021 07:03:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NYeYRlFwmTYVFPnZBE9jpbdODk2yUDxPpa+xXSIkfPc=; b=MDItPMggyNPiTzCTeqYZh+smEAMfEyd8bBUatCmnAqdhsAkM74TXs/kghQyPrzrN8a GoX+9sPokk68wWNGLREdCgKRVoCPb6fbYWz9oK2ZHvWo+/Qmo6bWPZeeFmfx4GXlQplq vasEutO84yhF89Q6WwE2q/TQ2JIJ0xViIiIRX1dZjqWpkYhRI+Nl3yS/JkAqSPvQS0mH LaCqeNHygkLu78svzYzclH9N29Erd025N31O4oycfj8IvbI9+NizpEYqCkqzeZS/Wxyt pw9xro4xhxiVJc84sNyavd4MS9Djj51+DCpYlNOK+RkDt+rkMeehNUP4t0CsXfKpkkhe DQpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NYeYRlFwmTYVFPnZBE9jpbdODk2yUDxPpa+xXSIkfPc=; b=AfMP0lMl/SaEivTI+hufFkWb5BIyoAEGbLEfleNTBIsrfhE27Mi9YFm1E6qeHHhdqr TTHC2UFGCKb+URTpT+8G2gdtjKvnG0bY0eVu/vb5y4kzFXdwt0xqU2tpqEmq3WhV7uT0 jP70j3MlubOVJiHCTW4qY/lSMMCStKwYdtc51KDD6XMLlhaLAR8aLAS7i6wRSsJKGjU5 HLcUGjQnHtMHk2jyJfCk3/TwyLInpGbacK5cOeJMhhuHGmUxOk5d7pvsarMavFqOY9sE cxd08VCLiWWlO9pG8QDNkoPjYK7Dehz5zXBMDjcYTBMxiIYbViCVYwBaKOzlpxVXffV0 jUng== X-Gm-Message-State: AOAM532G4G6mPuRXI6YfQkB9O7TOPgsm9G40QqrAf2w5y/BQLCRnw/sA P4HADsPTu7RTBwMWApZx27CPs5dJ6RDBkQQmflE= X-Received: by 2002:aa7:9f4c:0:b029:27a:150e:abd8 with SMTP id h12-20020aa79f4c0000b029027a150eabd8mr31125918pfr.46.1620741800200; Tue, 11 May 2021 07:03:20 -0700 (PDT) Received: from localhost.localdomain (host-219-71-67-82.dynamic.kbtelecom.net. [219.71.67.82]) by smtp.gmail.com with ESMTPSA id z23sm13772947pjh.44.2021.05.11.07.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 07:03:19 -0700 (PDT) From: Wei Ming Chen To: linux-kernel@vger.kernel.org Cc: rostedt@goodmis.org, mingo@redhat.com, Wei Ming Chen Subject: [PATCH] ring-buffer: Use fallthrough pseudo-keyword Date: Tue, 11 May 2021 22:02:46 +0800 Message-Id: <20210511140246.18868-1-jj251510319013@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace /* fall through */ comment with pseudo-keyword macro fallthrough[1] [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Wei Ming Chen --- kernel/trace/ring_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 2c0ee6484990..d1463eac11a3 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -3391,7 +3391,7 @@ static void check_buffer(struct ring_buffer_per_cpu *cpu_buffer, case RINGBUF_TYPE_PADDING: if (event->time_delta == 1) break; - /* fall through */ + fallthrough; case RINGBUF_TYPE_DATA: ts += event->time_delta; break; -- 2.25.1