From patchwork Sat Jan 4 14:38:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 13926272 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC8AAE77197 for ; Sat, 4 Jan 2025 14:39:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4CFC46B009B; Sat, 4 Jan 2025 09:39:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4802F6B009C; Sat, 4 Jan 2025 09:39:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36F2D6B009D; Sat, 4 Jan 2025 09:39:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 154C46B009B for ; Sat, 4 Jan 2025 09:39:19 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8DD47AFFE8 for ; Sat, 4 Jan 2025 14:39:18 +0000 (UTC) X-FDA: 82970027196.16.8AEDA1E Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by imf02.hostedemail.com (Postfix) with ESMTP id B39628000D for ; Sat, 4 Jan 2025 14:39:16 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b=cnYluTLS; spf=pass (imf02.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.216.46 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736001556; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lItEO8+vDf3ne2QEFaUdlfKMhS1868rwBEwl+2/8wc8=; b=34fo8wQfW1iHuq5yGR6poW8MJGHafjsLb9q7i/opxLBMJv7S1/Ma9N73wJhvwibo3XAZnk aGOuY1av4zO4L0IdEDNzCI+Pu2tBMm96/F7Htz5xVkkl36jjgs2CvRmCh/cgZYBszAxWrP fEqlUyEAYLoeLuGLdaoVLw0Zq4bmH8Y= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b=cnYluTLS; spf=pass (imf02.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.216.46 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736001556; a=rsa-sha256; cv=none; b=KMBKaPv0XCRg6AmHYBOxffX9Y+RASCDnIPcSgL8mcvn9szi5RoyCK5x+bLg0hZEKSRSa3O r+mc6FwodMTcBKD0475ZhiHHOeIzUndQ+kYl0Dydp6KHZ8CkHAMc4pazwI1Me3C2BEqwDO eslMo3aHAZWeT+RWFypdv7FrQbvLfbY= Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2eed82ca5b4so18392000a91.2 for ; Sat, 04 Jan 2025 06:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1736001555; x=1736606355; darn=kvack.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lItEO8+vDf3ne2QEFaUdlfKMhS1868rwBEwl+2/8wc8=; b=cnYluTLSqeO41UHJKWkLRx9TjAcCNn8lZdgf+zYv3xvGmqvtY3CAAv5MtM08BLyEpW 4HWdX5ACBpjqTt0Ui5OEsI+dGwKOknFFEVpZtuF9KlyOAZNjaKjHq/WDzfNyAWmCQhXD G6m2Dsi9/1Y56NS9Nuu8ugBFZUme+uRDQkHFP3JXQK83llT/Jk0In2pJq2jE4FuCbfU5 ZB56gAjJYJ3kWmkZznTnrw7PqCV7zmlU/XmqziGTkqg2XvA0u4oC2+DrDJjDEViABlLN sLu9bOPvJWfxseWzbytjFbo3GuJFPAq7kIqKrPuxsXKBM5d0nwV5xuxVVpmBTM7oagiF RNSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736001555; x=1736606355; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lItEO8+vDf3ne2QEFaUdlfKMhS1868rwBEwl+2/8wc8=; b=IuQiG/8SnwuwO8/binY8mxTTm+iGTsSw21w6j1Ls3I+4hxHqfsmnqyAh/6IoE8c5ZW Ry2eHOEOC+KRzSyl9huWi6udo0RQCHGRhZ1/URL8M9DaGYHPuo9la823CBm5YGxnUBxM 3PSGmVNWoOzckxj88XiESRk4w/HIh3f9h/+V0ckF3qmNA/gEcja75+jtbt/jJNBYFYWw erAZrQBuNFZQ2LVd8ElKjoJqK23FJPznyuMhY+TSDmwgrZj0V8+0EDuM/SZqv/VqpZzz tkKSwGyA4B+kV160vlbIIH5sefCUqN1KajohdMCEB8oU9DIcxZHL9Xp6WgRgr5n4tPuZ Ytyw== X-Gm-Message-State: AOJu0YzJzyWwvq4x0UP0QRW5+/hhCmSK5E+LI7dfZ+/005FwiD9xVFzc /J95g21SsrYSYof5oiKpfSRMZ55w7b/Rw0uWg1MG6gtm3rcZotiQ8yV7kUuyCMA= X-Gm-Gg: ASbGncsW4uplZj4SJKWhUFbzyIrL6HDMb+i2Or2HyjjUVOIur1q/iHyRAZjXnef4ut7 VEmRes40o2Z5PzNCy1mKISXRjlDRkkud/fZc+QjvZEjmvFniM2TWMQK8c6hhLBpFDACaLcRfQkh dlM+dkSBHHd7idbMFnmNdak4LIS2d1sCnxtUKEK6Vp1NLPjGWIraSY4cOdJbsDUIQJ52LcpOFE+ nIWZNm/LLVzaehoqdwFzoxXWI3hqL0KwG8ljiG6IRCckgwAmCS0Xqqx85Ewnf4= X-Google-Smtp-Source: AGHT+IE6l143okZ4K2hLdktIIklrvNPqE32MSRd/SLQaBZqLFpJB0ZcbHN/hLV+Lk0+UAUXZGQQd2Q== X-Received: by 2002:a05:6a00:4098:b0:725:c8ea:b30a with SMTP id d2e1a72fcca58-72abde2ab0emr75955118b3a.14.1736001555483; Sat, 04 Jan 2025 06:39:15 -0800 (PST) Received: from localhost ([2400:4050:b783:b00:4952:3c52:120a:27e9]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-72aad8f90b9sm28017661b3a.131.2025.01.04.06.39.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Jan 2025 06:39:15 -0800 (PST) From: Akihiko Odaki Date: Sat, 04 Jan 2025 23:38:38 +0900 Subject: [PATCH v2 5/5] crash: Remove KEXEC_CORE_NOTE_NAME MIME-Version: 1.0 Message-Id: <20250104-elf-v2-5-77dc2e06db4e@daynix.com> References: <20250104-elf-v2-0-77dc2e06db4e@daynix.com> In-Reply-To: <20250104-elf-v2-0-77dc2e06db4e@daynix.com> To: Eric Biederman , Kees Cook , Catalin Marinas , Mark Brown , Dave Martin , Baoquan He , Vivek Goyal , Dave Young Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, kexec@lists.infradead.org, devel@daynix.com, Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 X-Rspamd-Queue-Id: B39628000D X-Rspamd-Server: rspam12 X-Stat-Signature: 478mdjujt3esjadi14q8w9n1kas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gdv5OQr+3jA7ytsHsqkpEX4d/ah15Y8w/cQ24bJJyke8LS6PZzAYP/v1hT0Na1kiGjbbbiHxZsAGFooLTRw7/JLTuqTacQWNl7Ic+CNtN1LXSTkQiqQi+c8hnD5u62u1nx0J6S3tRNT8TuGj0Fy1VzE/nC4+EhLO4hmK+T5G6Ks8ElcgSc5yjqVXcPgTt2mPOOsIz4iHl3v5pLx4rzTJvWHmk9kDeqYOEj/82ntJrYOveu3WirIKwgeQhKKjeGLKU5uczbhln/q2mpiMVQv52Uww0Z3c57d3s5GkhUydyyq1yBjK4mqfxAVnLvBd5h5PcnJz46wsL6RzYz32yNb8EZZHTeqm/tknlMs05T4qYsUTG/Rkmrf15WtUT10Kh/lPg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Now KEXEC_CORE_NOTE_NAME is only used at one place and it does not seem to provide any value anymore. Replace the remaining usage with the literal and remove the macro. Signed-off-by: Akihiko Odaki --- arch/s390/kernel/crash_dump.c | 2 +- include/linux/kexec.h | 2 -- include/linux/vmcore_info.h | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c index cd0c93a8fb8b..4a9817489e35 100644 --- a/arch/s390/kernel/crash_dump.c +++ b/arch/s390/kernel/crash_dump.c @@ -253,7 +253,7 @@ static const char *nt_name(Elf64_Word type) const char *name = "LINUX"; if (type == NT_PRPSINFO || type == NT_PRSTATUS || type == NT_PRFPREG) - name = KEXEC_CORE_NOTE_NAME; + name = "CORE"; return name; } diff --git a/include/linux/kexec.h b/include/linux/kexec.h index f0e9f8eda7a3..c840431eadda 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -68,8 +68,6 @@ extern note_buf_t __percpu *crash_notes; #define KEXEC_CRASH_MEM_ALIGN PAGE_SIZE #endif -#define KEXEC_CORE_NOTE_NAME CRASH_CORE_NOTE_NAME - /* * This structure is used to hold the arguments that are used when loading * kernel binaries. diff --git a/include/linux/vmcore_info.h b/include/linux/vmcore_info.h index 1672801fd98c..37e003ae5262 100644 --- a/include/linux/vmcore_info.h +++ b/include/linux/vmcore_info.h @@ -6,7 +6,6 @@ #include #include -#define CRASH_CORE_NOTE_NAME "CORE" #define CRASH_CORE_NOTE_HEAD_BYTES ALIGN(sizeof(struct elf_note), 4) #define CRASH_CORE_NOTE_NAME_BYTES ALIGN(sizeof(NN_PRSTATUS), 4) #define CRASH_CORE_NOTE_DESC_BYTES ALIGN(sizeof(struct elf_prstatus), 4)