From nobody Wed Nov 27 07:31:51 2024 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 3CFFC13212B; Sat, 12 Oct 2024 04:28:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728707328; cv=none; b=rjOREBRZWaIAHpxtrlQPoLvaBFqYsRLp5JOxI+gsbMkcCjI2ARLRhQ8w677X+5aAEAlz/yumT+Ep//8UGNBHS5hbP6o5xM1nGAk1HIRbE3WhRQ0NUG5jjXSehqAMCPepTj15txHQuGOGUGIsO2DZ/83mtEsdbKWPlAfF21kO3/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728707328; c=relaxed/simple; bh=8i01FSb+IGlfRhpF8X3LU9FmbRi1pylHtQM+7dESwyk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lePknGYLxxWPrNCLacASGcDZ1QcidL2YpGDPL2e+LfKeFtNiPEm/DMS58n5Tyf+Ou+w2vTVvUUoFji8t4ZZonM97v4tj3e8BW9JYip5ujXmcexnAqXiF62v1kd+XeSUJnyZMdOVAjfwcA7j69kK50GXXDswxzqLaMHR+Kl0LEeM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=klKExNw7; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="klKExNw7" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20c714cd9c8so21477885ad.0; Fri, 11 Oct 2024 21:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728707326; x=1729312126; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H0vPLcrUQ3dhrCe+AxqWTtAE4DFldiO30qrraC32Q7U=; b=klKExNw7w2pHZOjUXba3ZHFkqJYHZZQ2ikvwXbfWjeDzYmlckoFUtJ4/vxoLG3bMkK F8Nz9f6qrLOWdK0APKqEXaZ94hjFTZjqrYSJOXHB5muBBHL1UxJgBpFPyFtUOOTARNi5 Wb6vhMEw72daTWkb6V1a3FLE8ukaGAtxAFG4ktQQ3s+w25fWxy93R2Vh0ZRvTntOIFe3 jb8o06wCmvpyKchtAd/gPSoSWLX/Mc99Ds3rVmf367nGOF6iATKY00lpi8sBaalaMMEQ ksI1jK28LRjc26O4kD87+YSLNptADFH8D4ULpC0H2kF029t9OAvhOyymqB4pHZFVE5w3 qS6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728707326; x=1729312126; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H0vPLcrUQ3dhrCe+AxqWTtAE4DFldiO30qrraC32Q7U=; b=wS/4Vbq/siu5c2/i+RdvVojFCutBntGb3PBtmgV5alRJUScebSmY6aGfFssfKapoLQ 21rw9qAvhVx7nFatP7uPP+jFwOD4m60pwF+4dO2dehz4etPrhBnwc8y90pbEWuhjf7oX pZUEb1VZRdX8MecAaoVY3byIvpOqHm5luaUeXJVTN/vDtQlSEYJot3ImanEr8hj6VjnS K1WL7q7XotYmvYYwcyd1bBaQ+D47Xj5xWhYNnLG6ubW2Wm8YjAQCzCI400+qnbUhxUM3 6Zzq6AueZO5JzLf6/GSHvGIDXmCSH4Si1L/Lhn4kBG1NPqx4aKNLynvZUXo615Pjbdvw 51iQ== X-Forwarded-Encrypted: i=1; AJvYcCXbPXdhnexMFf5dGUIDnSIrARYs6l1AJAbPzxKwYRJ3hTrGvyRGLMjrjGeIWFleDg3cvW/wkPjkYtiQKyU=@vger.kernel.org, AJvYcCXiU5KBwBs2lpkLsQqM7/lNuS5xWfd33ZkudYaZkFEeVnbL+mM6Msj/zPOOWjP6iyYrFIiyZNvV0ZZG0oPxYcHVdQ==@vger.kernel.org X-Gm-Message-State: AOJu0Yx2X+Y6uTD3yIKBo+cezWt5HmfnGtm8zjP1HY10dzGqvWmJvDGT 6VA1li0I8njtYiUWwPJClmFxWdcwp585KrYBDbDZvOl/nWRl7/gm X-Google-Smtp-Source: AGHT+IEGhcFbgLWMN6Cde9X45F6ESflixRB4V36vMq7+JkETfm4wYCFnq3UgrS/siC02GinKHCAOAQ== X-Received: by 2002:a17:903:338e:b0:20c:a122:e6c4 with SMTP id d9443c01a7336-20cbb195fccmr24358505ad.14.1728707326454; Fri, 11 Oct 2024 21:28:46 -0700 (PDT) Received: from visitorckw-System-Product-Name.. ([140.113.216.168]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c212fc7sm31017165ad.204.2024.10.11.21.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 21:28:46 -0700 (PDT) From: Kuan-Wei Chiu To: akpm@linux-foundation.org, acme@kernel.org Cc: peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com, jserv@ccns.ncku.edu.tw, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Kuan-Wei Chiu Subject: [PATCH 1/3] lib/list_sort: Remove unnecessary header includes Date: Sat, 12 Oct 2024 12:28:26 +0800 Message-Id: <20241012042828.471614-2-visitorckw@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241012042828.471614-1-visitorckw@gmail.com> References: <20241012042828.471614-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" After commit 043b3f7b6388 ("lib/list_sort: simplify and remove MAX_LIST_LENGTH_BITS"), list_sort.c no longer uses ARRAY_SIZE() (which required kernel.h and bug.h for BUILD_BUG_ON_ZERO via __must_be_array) or memset() (which required string.h). As these headers are no longer needed, removes them. There are no changes to the generated code, as confirmed by 'objdump -d'. Additionally, 'wc -l' shows that the size of lib/.list_sort.o.cmd is reduced from 259 lines to 101 lines. Signed-off-by: Kuan-Wei Chiu Acked-by: Namhyung Kim --- lib/list_sort.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/list_sort.c b/lib/list_sort.c index 0fb59e92ca2d..8d3f623536fe 100644 --- a/lib/list_sort.c +++ b/lib/list_sort.c @@ -1,9 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 -#include -#include #include #include -#include #include #include =20 --=20 2.34.1 From nobody Wed Nov 27 07:31:51 2024 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 2B9A712CDBA; Sat, 12 Oct 2024 04:28:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728707333; cv=none; b=hE+0fbfOXKk3+p9D1uAWGa0PQlS6xS3zgYvPbHBUzam7esVLZTJgjw7Xsfo8lW84aNS7lMtGa1ytYKZEw3sGlJWB1OruL9HX5/Yg0HGz6Wdq4KQDpV27LMvP2AoCpJ3kurZu2zw1dWSytShccNPAUi3Jmf5P89CPq/kFQJLjrj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728707333; c=relaxed/simple; bh=937cJWb+m2WpPB8K0xnw/lEsnWbomlVJgugdRn/M0Sg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lR+UysCsYqWcMKctGtuqn2jV0Xr+FtYZxgZb49exlwqVLsFH7eVmCFSpRnh24Ncgs3+h+v33afJtDINB1G7ml3yaTQH6UTvWI4Sw4hA4au+i2pvCrmbLfJONppz2QylhdKJAxCuGDuwPyQUgcDjzMKlw0pezvtmFb3KMXP8n22o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EFvGtgzn; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EFvGtgzn" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-20cb89a4e4cso5002545ad.3; Fri, 11 Oct 2024 21:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728707331; x=1729312131; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V9fJCYKdZiwsPnTtqkeuNJILhOhmx49NiKrjpFSsKzU=; b=EFvGtgznupQSqNmWTjBkD+okwhC96oYs3Vyj+qZqMYYYxoGyg2tX0KYct+9CVBtVTk yr8dwxldFHDWN0HzxGavBH4GGONqpIns74iLlD/rDlkzUVO/sevMdGtstWFfLWPZXi2u ctVW0ADf+lP4jocnR6cm6/gQvBG+JUmTIAIyPuDCpnkVbaqxRf1G1HcOzZXOZS2+b0ws TOj4yEDMRIcJjCvP32lIFvlbA3q1d/p9CVgoeE1hQ99vAMIPgxSp9P5YmeJ21nqcwJve j/4KZnVJqHx8ATTsgY8VUhwvssE0ztQAJj/QseRnRgZc/9y3b3NGYsOxZmpxVhFVswlH 9esA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728707331; x=1729312131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V9fJCYKdZiwsPnTtqkeuNJILhOhmx49NiKrjpFSsKzU=; b=QatbltSlaFp4bkinMCYeKdhGWYVvVfrWRbjDNQ5TCNOdU+jjDAHsup4Qtw9C51MBdy FSWGsDRiN0Y4r7hla9di1oHdjbsP2xJKh6LWYJGdp+F50W1+v2OukykjoMwVN9Gt6YCT RjV5ZAAVK8boiYxNbd+Er8qLwSTSQnRcbLSxPvd2IpQyxsZ0iqPIHQtIRZ0/Q4Bv3luC Wba6swrKz45lp4IdhQkNSRRbW72HDAQg/sy05oJkxj1fgIeC31YxDhm24Sw4IF8wio9F /q8JPflHHP61ZorZoJWIaw4i/Hke9k80pvzaQsFGQSn8GUL+HAqCR/maLWkjRd6O6OHg cxOA== X-Forwarded-Encrypted: i=1; AJvYcCVfxY+fv+wfoil5ROO/mvidL+0vyXCbxYdJ5yGjk3rL5OqwoL0kJ9HwZSofDDV3L2hPqO2ShLJszcVgmOpZ72yI2g==@vger.kernel.org, AJvYcCWH2En5oefFbFlBkII5C8HPK6lQ7B8bDfBh4/tXqWbNBaqXYiCJbAULSj5AhS8Bt8ZxxAFeX6Q03v3+Sww=@vger.kernel.org X-Gm-Message-State: AOJu0Yyp/Y6DM9e+iqGEfBgKG0KXI1yj8biv0Pcex3/wOkZyipHE7lC/ KVX9WddzEflIST5CN7WuBr5dfyHZ9VtYLONyxogaDCHLLYazTIKj X-Google-Smtp-Source: AGHT+IGr3nVAZV99Q+U5OpVjeGw3RTFQiHsnOVfCJnGjWm/Gf6YjY5HKnq1nfVPeP3fWqK9bXxWVfg== X-Received: by 2002:a17:902:d2ca:b0:20c:9e9b:9614 with SMTP id d9443c01a7336-20ca1454211mr70254195ad.15.1728707331381; Fri, 11 Oct 2024 21:28:51 -0700 (PDT) Received: from visitorckw-System-Product-Name.. ([140.113.216.168]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c212fc7sm31017165ad.204.2024.10.11.21.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 21:28:50 -0700 (PDT) From: Kuan-Wei Chiu To: akpm@linux-foundation.org, acme@kernel.org Cc: peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com, jserv@ccns.ncku.edu.tw, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Kuan-Wei Chiu Subject: [PATCH 2/3] tools/lib/list_sort: Remove unnecessary header includes Date: Sat, 12 Oct 2024 12:28:27 +0800 Message-Id: <20241012042828.471614-3-visitorckw@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241012042828.471614-1-visitorckw@gmail.com> References: <20241012042828.471614-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since lib/list_sort.c no longer requires ARRAY_SIZE() and memset(), the includes for kernel.h, bug.h, and string.h have been removed. Similarly, tools/lib/list_sort.c also does not need to include these headers, so they have been removed as well. Signed-off-by: Kuan-Wei Chiu Acked-by: Namhyung Kim --- tools/lib/list_sort.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/lib/list_sort.c b/tools/lib/list_sort.c index 69affa251fa7..bb99e493dcd1 100644 --- a/tools/lib/list_sort.c +++ b/tools/lib/list_sort.c @@ -1,8 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 -#include #include #include -#include #include #include =20 --=20 2.34.1 From nobody Wed Nov 27 07:31:51 2024 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 023A112CDBA; Sat, 12 Oct 2024 04:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728707339; cv=none; b=ttrny17QPYrHPUEhtQVIAWZEMX26xr8VLMk1x6voBsFMbQ9ShMnD06Xgtq977M67s9ZIgfQ1HMR1wkb4+kt8KFNxRl30nP6PCsl77dEQu3BzhRh1O8RrE/ybEoyMDECS02yBPsK02Ev0hDXOVsS8XPHgeMdGuOiTKBa6dwQfHfA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728707339; c=relaxed/simple; bh=3WplEoGi1BsFr6YFFonm+1lYODrrYuC3FQstIpRvcu0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P8nLKnWtUxxb1EpAYsuMfe61MmnEH795qB/afDqzgxsP/Tqkdtc+X0ouUtmOxSauLL/8rHOBxi9ZXw05ZZJq7SVDJ4XLw7nSZ7zbb2LQofBIXbImckOHCk/YCzWdhzeo18+AyCRweUHSWdsVqn1Ao2+jDTwDcvw8+mUxTIMbRSY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Md5CUrY8; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Md5CUrY8" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20ca7fc4484so8448755ad.3; Fri, 11 Oct 2024 21:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728707337; x=1729312137; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VoC9L8TgSrSvS21Od90ZP1h/vkV/JuDG96YqG+cDQ6k=; b=Md5CUrY8spsc15o02qxsdE5GTf+9xh6olwFD8+mYwKPT+kKWkvlZVqR11hCBPApes7 Yt7WE2ZTFXvzF/LcU93xCmDyt+GU/In0UJT6EFPcSRjxkKspMLUCRillPsFEvT4KJ9dJ lfW8dRk4fD03jYs6CWrGKrZ+nB+1oPWhlXIsR4lp7O39lmRklUN8htmGy+5/wIWJ66fd t//qmLyfblPanP1Ny6A22xkZR99xi98vITFzdbdLzTk0AXrSkltGEFJRE+tiGn7QKr5c zr7PCxZpfm05/gsw60wn5BS9otZH+FTx+tLHfsI8ObosHj1Vm3PxJ1aXhd/TUTVjNKCo e8xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728707337; x=1729312137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VoC9L8TgSrSvS21Od90ZP1h/vkV/JuDG96YqG+cDQ6k=; b=g9gdlf7vFTTyOzaGEDURBS3+Fox4LAzG91JI9Tfm6UGIA6MdDv0coIuUFdaq2jq0hy xMsyXKdyiuNLWEhQeaKc2ZvObBw9NcGJIrC5oWi9l7G323SyMteGO3ZigZw4Oz/r+Q5x ZHE7OLhDcU/7b8ViNvk2aaVokw2gLf65WtZ6lBHCku5u+3ThFbfsV/D+IfGMcCTt45Cy Bc6xlCGs8ru92ZxRFIiS1E0RxDs6a70Emr/3JWpZGMQfYh+iirIGK0CMpwWR0VONaO2L VvS92vCBlBxOzVDZHvRDlwqhBxYTIUH7mCq03FOzs5mM/2tC1A20RUxWdGjdiKNUULT2 wTrQ== X-Forwarded-Encrypted: i=1; AJvYcCU0zutFw454fVQPBhzXllTXOFjJDNc1KRcvR35MLXhDYh7hJ27eLPwsKO7djOB839tn9tfdlmbfOcUJJ4m8ZR5v8w==@vger.kernel.org, AJvYcCUBZhk0J8P9HrsAa9KEUDBR+Ul0EtXhw5dOfQ7dp25OHlJHi6lwkw2/Uzcd534l+fT7TtmM6LYJrqyZfA8=@vger.kernel.org X-Gm-Message-State: AOJu0YxtPwLpJnP1GfJ7sd232cU09lRGFmyFhDdunJnEXLuTECw7gOkh XaFNr8PE+L2DTA5A3dwwI4pkbwDVdzqDPWdmvm1fvMeJTHzjD/ye X-Google-Smtp-Source: AGHT+IGzoiPgXp+c/na0L2A0nXhMZ/eDvdJYZD9CEa/q7NScMC1ieeXW3F2b2b52t/W7hjAJ6UzBEA== X-Received: by 2002:a17:902:d509:b0:20b:6d82:acb with SMTP id d9443c01a7336-20cbb19ce4dmr28027795ad.23.1728707337181; Fri, 11 Oct 2024 21:28:57 -0700 (PDT) Received: from visitorckw-System-Product-Name.. ([140.113.216.168]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c212fc7sm31017165ad.204.2024.10.11.21.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 21:28:55 -0700 (PDT) From: Kuan-Wei Chiu To: akpm@linux-foundation.org, acme@kernel.org Cc: peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com, jserv@ccns.ncku.edu.tw, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Kuan-Wei Chiu Subject: [PATCH 3/3] perf tools: Update expected diff for lib/list_sort.c Date: Sat, 12 Oct 2024 12:28:28 +0800 Message-Id: <20241012042828.471614-4-visitorckw@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241012042828.471614-1-visitorckw@gmail.com> References: <20241012042828.471614-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since there are no longer any header include differences between lib/list_sort.c and tools/lib/list_sort.c, update the expected diff in check-header_ignore_hunks accordingly. Signed-off-by: Kuan-Wei Chiu Acked-by: Namhyung Kim --- tools/perf/check-header_ignore_hunks/lib/list_sort.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/perf/check-header_ignore_hunks/lib/list_sort.c b/tools/p= erf/check-header_ignore_hunks/lib/list_sort.c index 32d98cb34f80..b7316d29857d 100644 --- a/tools/perf/check-header_ignore_hunks/lib/list_sort.c +++ b/tools/perf/check-header_ignore_hunks/lib/list_sort.c @@ -1,11 +1,4 @@ -@@ -1,5 +1,6 @@ - // SPDX-License-Identifier: GPL-2.0 - #include -+#include - #include - #include - #include -@@ -52,6 +53,7 @@ +@@ -50,6 +50,7 @@ struct list_head *a, struct list_head *b) { struct list_head *tail =3D head; @@ -13,7 +6,7 @@ =20 for (;;) { /* if equal, take 'a' -- important for sort stability */ -@@ -77,6 +79,15 @@ +@@ -75,6 +76,15 @@ /* Finish linking remainder of list b on to tail */ tail->next =3D b; do { --=20 2.34.1