From patchwork Mon Oct 23 11:22:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "wuqiang.matt" X-Patchwork-Id: 13432767 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2617815ACB for ; Mon, 23 Oct 2023 11:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="MaK8FcAl" Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 313D410CC for ; Mon, 23 Oct 2023 04:22:57 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-27d18475ed4so2204420a91.0 for ; Mon, 23 Oct 2023 04:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1698060176; x=1698664976; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/dRh+rfLET0p9qdBskbivIY2crf8jG9hQg8expagdDw=; b=MaK8FcAllO/jg62yqYX8ZrcpoNfIqqVR7TLf6DvhPwEhNf4Az9KHRjIipfXQ/Yg3QA a0L4PmuqwNL5NECFfO6FwB1NQE/nR5ybTtGaECzPunY3kIv+LuFWeUfP68gkTHDol1MP fqxRLBbXKQwR0Id2k0m76EkCgEdvVHZ8mLu4/LLhAKgxLx9+UXt/THte1NJ3IAeIXiaC YYN3enYtspXyHKvHi8gnI/TEtDHKwEWVSwG52zskDmzS76GVfsKdJNvnLSPSZpGCFNtN 67YI76QhTfbmQyqAaIiov13gJbeallJWDrmYiLc/kPu9DU+tsyoFl+HVuTxxffhMVVu/ uzuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698060176; x=1698664976; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/dRh+rfLET0p9qdBskbivIY2crf8jG9hQg8expagdDw=; b=ARrTnIqcyKsHcShZsiysNx6WGw1aognyIFXryvRXdbGZSkFzIxbLWjPlDstu4KN6u7 DCVPIAOZ0JxHqe7k9TOERETJ0SsOKXWNcSEJXnax33610ynrQ4sX2DJM0IevblkJql8y AWNIe8i7G/wTDqpf3TWQ6tTAaw38YX1/u0GGax9qbjkcZkITkFrxzRH5OgHQ79c7JCCR 0/xrJVuH4Un5hr42uBu6TJJtJPLSa53167XUohdUoYnMAp/6PKWTKE5weefE9Spf+2op ks+WckDZ/U7EbqGdTqjB6nOH7FqpR6REypPV+v/zXmqVd6YPml2LSELyi0HTJyBowo2P dKXw== X-Gm-Message-State: AOJu0Yzsipk9Bm0okQPCn/lHjKl6zGXHbbNTaKlYPwvVlNTJ7wKKWDbW x4pVq3yQ/SdK7mb4JLmincep58j71/E/gYqqn2g= X-Google-Smtp-Source: AGHT+IFUPprF8WH63BfMN6S8KFDiIXR8rDvOjQKwgDG5gvFN95DflbmCkixx4JnRCYSUzW8xwHd9NA== X-Received: by 2002:a17:90b:1490:b0:27c:edd5:6137 with SMTP id js16-20020a17090b149000b0027cedd56137mr6387590pjb.25.1698060176247; Mon, 23 Oct 2023 04:22:56 -0700 (PDT) Received: from devz1.bytedance.net ([203.208.167.147]) by smtp.gmail.com with ESMTPSA id 25-20020a17090a031900b0026b3a86b0d5sm6048439pje.33.2023.10.23.04.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:22:55 -0700 (PDT) From: "wuqiang.matt" To: linux-trace-kernel@vger.kernel.org, mhiramat@kernel.org, davem@davemloft.net, anil.s.keshavamurthy@intel.com, naveen.n.rao@linux.ibm.com, rostedt@goodmis.org, peterz@infradead.org, akpm@linux-foundation.org, sander@svanheule.net, ebiggers@google.com, dan.j.williams@intel.com, jpoimboe@kernel.org Cc: linux-kernel@vger.kernel.org, lkp@intel.com, mattwu@163.com, "wuqiang.matt" Subject: [PATCH v1] kprobes: unused header files removed Date: Mon, 23 Oct 2023 19:22:45 +0800 Message-Id: <20231023112245.6112-1-wuqiang.matt@bytedance.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 As kernel test robot reported, lib/test_objpool.c (trace:probes/for-next) has linux/version.h included, but version.h is not used at all. Then more unused headers are found in test_objpool.c and rethook.c, and all of them should be removed. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310191512.vvypKU5Z-lkp@intel.com/ Signed-off-by: wuqiang.matt Acked-by: Masami Hiramatsu (Google) --- kernel/trace/rethook.c | 2 -- lib/test_objpool.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/kernel/trace/rethook.c b/kernel/trace/rethook.c index 13c8e6773892..6fd7d4ecbbc6 100644 --- a/kernel/trace/rethook.c +++ b/kernel/trace/rethook.c @@ -8,8 +8,6 @@ #include #include #include -#include -#include /* Return hook list (shadow stack by list) */ diff --git a/lib/test_objpool.c b/lib/test_objpool.c index 98b5b37b6eea..a94078402138 100644 --- a/lib/test_objpool.c +++ b/lib/test_objpool.c @@ -6,21 +6,15 @@ * Copyright: wuqiang.matt@bytedance.com */ -#include #include #include #include -#include -#include #include #include -#include -#include #include #include #include #include -#include #include #define OT_NR_MAX_BULK (16)