Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1180852pxb; Thu, 19 Aug 2021 23:04:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQik9wdFePwMHhRgwBhXQgW29E3MSRDMfOQldFzA1hOflAZH8ChJsSNaZFfgx+kId1yWwi X-Received: by 2002:aa7:c7c2:: with SMTP id o2mr20445782eds.166.1629439464940; Thu, 19 Aug 2021 23:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629439464; cv=none; d=google.com; s=arc-20160816; b=D4kr+k46afOzGhrTmPkog0txGP8JBVLFyhClc3f+ZNvNAf2KmiWA/CbU3ilZIJL1i9 Te7GziJZRo8xxs54x0zCEwekOOlt67flu7vycDFN40IMuPuqZ9NUbqLq+/Pwk61/ZNzB Mxa+6GMyR/MWuYVVweU1Al+0uI4D5V72K9bsRmfUcBoWUJILkXfb72y46+ImCaPjW415 KJv8NNNZUALwNYMXzTtzd08WQB4ZDfzUHXORO281/zzuK943kLj1L1TU39xcW45SeV79 WnoVKoQtKvXbbCpVLs0bN3/3hW2DvvPg8/3ldRyuaQ//BFxckdT1vVYMtKO/HZKqQTQL 30zA== 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=K5xyNIusVc4BrqPV2ok4Rq2VX+MqoQcEpsqZpDiose8=; b=rOtOD5t1J7q60f4aB2YOrHZyVjbwOwXgY4+NEhXktE3KOjfHTYxzVfTBYDH93gnCL4 w1fHgU5USBjbgC6DUckN614jJdHrQr80DwAYHOjw147PrDoerruVkq6fedscUUbPflUj 0MI2iY/arX7SrL0liSuhC2nOJomFDLtwpmsTVwss7eWYQ7klWJVi0xna+foI2kd5ksNj YSEn4AAUtUXuyekGp5gFNdIO5x1RL6UuQyVFKO1Dgzm/rs6DEVW7MSKSFK/NSkYOb3x6 XIpO5PtZqDO64wDB+Vd5X8X4RYGdlVoLL8koU7PCCVBQkqpqrTy78aJp1VFQxQtsyrvb 3xSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ayDUzvNk; 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 j2si5494140edr.443.2021.08.19.23.03.57; Thu, 19 Aug 2021 23:04:24 -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=ayDUzvNk; 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 S238100AbhHTGBq (ORCPT + 99 others); Fri, 20 Aug 2021 02:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232500AbhHTGBm (ORCPT ); Fri, 20 Aug 2021 02:01:42 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC6EC061575 for ; Thu, 19 Aug 2021 23:01:05 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id c10so7272784qko.11 for ; Thu, 19 Aug 2021 23:01:05 -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=K5xyNIusVc4BrqPV2ok4Rq2VX+MqoQcEpsqZpDiose8=; b=ayDUzvNkqOaAmm4t1htQnEE8nyiv2it2eDt23GDeoUKsZJmWldIF7vyhmcMe5eh7Da Cm6e3bryMjxLwIFc9HV0JKRyp3LRfC7QnttkVz+/eX+9aVPf0rTxzQZj64JXF0r0x/6C fIL7qkchLQHKmSwRAuYsp8F7imDLBKOeKCIfDcJEwhRJTcMB8OPm4Ch4pV/5w53XP3QV 1z6C7AWJCxsfJ+zTbSjlzSfY/U1DCsMADGFE/8yYxkaOU/AVH5Uh/RECKkBGxFRq2IoY llBTD5nXA9U/VN1KZ8wJw2hsBCERg+nvW7LhMe6R4T7n5On/LcD9TkzRNZFFYlvLYfzu RUeQ== 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=K5xyNIusVc4BrqPV2ok4Rq2VX+MqoQcEpsqZpDiose8=; b=dSkRgfgVLJXmDz3fLnvgcUyVksoU5ZZ/eJtg/m2yb6u6ZW3yIwkjGR9P9+HcRjm+bf RCli27GPnr2sNwCgxPm4JzNBWqgP5bZIg2FEtqB6NrTGHyxLfzR1pD2bt1f5gX+SWNH7 93eSrih3GlJU/2X0FJuXWVM+XhpgcUjcjWa9ZlsbvHVoNa2sBGFvV668ijy7h2IV1Rv2 +Nur8gl7B0YDcFcEAYLQssl/5SUumjuvaR66lHX42Wd4VTeDd9LsfUMPk6D7Oq6c2yBL pC2+9Gmq8+erO+Qzq83DBhHCQn39cd460iycYGPoKgyaSax89jWLyoJyKgJD3KZZG480 HKoA== X-Gm-Message-State: AOAM531kNVZnzKShQnne+nHxJK1rzk8FLB6a5REVC5o8E0ajIxjBYDnR xgolleNX0px0UKVeBFxVA10= X-Received: by 2002:a37:a094:: with SMTP id j142mr7296283qke.465.1629439264618; Thu, 19 Aug 2021 23:01:04 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id m19sm2160053qtx.84.2021.08.19.23.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 23:01:03 -0700 (PDT) From: CGEL X-Google-Original-From: CGEL To: Steven Rostedt Cc: Viktor Rosendahl , Colin Ian King , Xu Wang , linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: [PATCH linux-next] tools/tracing: fix application of sizeof to pointer Date: Thu, 19 Aug 2021 23:00:43 -0700 Message-Id: <8fd4bb65ef3da67feac9ce3258cdbe9824752cf1.1629198502.git.jing.yangyang@zte.com.cn> 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 From: jing yangyang sizeof when applied to a pointer typed expression gives the size of the pointer. ./tools/tracing/latency/latency-collector.c:1541:10-16:ERROR application of sizeof to pointer This issue was detected with the help of Coccinelle. Reported-by: Zeal Robot Signed-off-by: jing yangyang --- tools/tracing/latency/latency-collector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tracing/latency/latency-collector.c b/tools/tracing/latency/latency-collector.c index 3a2e6bb..64d531d 100644 --- a/tools/tracing/latency/latency-collector.c +++ b/tools/tracing/latency/latency-collector.c @@ -1538,7 +1538,7 @@ static void tracing_loop(void) mutex_lock(&print_mtx); check_signals(); write_or_die(fd_stdout, queue_full_warning, - sizeof(queue_full_warning)); + sizeof(*queue_full_warning)); mutex_unlock(&print_mtx); } modified--; -- 1.8.3.1