Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp455770pxb; Wed, 27 Jan 2021 11:53:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcoc3Y0JID58YryuEE+0bcpHzdIrzPI8ga3p0lGY/HvbhWESifAgwjfbGnagZKGeonq0c+ X-Received: by 2002:a17:906:3c41:: with SMTP id i1mr8182104ejg.443.1611777190506; Wed, 27 Jan 2021 11:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611777190; cv=none; d=google.com; s=arc-20160816; b=isZGq5UG9gm52WLbUu6hweatm+jIGIEX+RDguZdwkZ3spGNWgDWkCL1MOiV9waGAMQ UkCUhQXjTwhnciEb91+9+CjvbEsKRt47fJ8EBWfNM71UuZqQKayeLsGncI9qMbqF1nOs 4adcmcLTBgqR1oMs1q9I9PUPEzx8MDQs0vobgYNLqnLJLsolzYbpsp1ZR2304cbUnk4p MrRb95viI3EwWnexBUZpYqSrpoLwwGZRcXzfVNubmJ9bsh1Hw81Wg5ToAvnzyxZz6IS6 CmIAJ1PXHE/s1vr3vcuIWlIrBXHXHfVaDEnsKOpTST4ha6JL79K8TD6KW07tC7Jo2ETH 9Xzg== 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 :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=VZILipp3AuPz1TxG9s7TLwJquSmPIKBU4CGdRXmRGJI=; b=GFjXJ8yj42RPjAq7dpUgNFHVhapthOapFvxu451gMh188WngGDsSm2iL7ZBt8jCqWo Jj7B3WYpovjhQKA39ct8w4mOc0Ib2sjTYAZCmktuVGcXIYZAZlDMrpHjhL2PV8PD3zBN jPruNbrQL3Xo+9xgweRr4XFNuG1u4qwJUu2eIpv8efiJKQMoL5+N6npZD1B3I0V6tGz9 Pc+NabIeIHcja0RhwLCh1zMjY3uDn4TH7l4jy0KdyuAt7+Wo+asty7ufXyoiJSQebO6W gPTX4GnANdcQtIL0g9F97dzzs8FOP49kSxeoB+iS3yRMbzLH9Ke/OlGCB3InIs3GNwwS OTCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FBRhbZFu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Ymmiwk6J; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si1460846edo.512.2021.01.27.11.52.45; Wed, 27 Jan 2021 11:53:10 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=FBRhbZFu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Ymmiwk6J; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236054AbhA0D06 (ORCPT + 99 others); Tue, 26 Jan 2021 22:26:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728178AbhAZVQe (ORCPT ); Tue, 26 Jan 2021 16:16:34 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 586FDC06174A for ; Tue, 26 Jan 2021 13:15:54 -0800 (PST) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1611695752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VZILipp3AuPz1TxG9s7TLwJquSmPIKBU4CGdRXmRGJI=; b=FBRhbZFufbyJGN8orW/gRWdKbB2KeDrHxVcIJC/X1ivZcdcQ+bzMr1+NMu06+BGGKpdxl0 PcIT06/z6qTE2FX680fKnz4OsXEfsJGNgxG9Te1+BQQsTKK/BWPn6sVILQA5h/Im4qe7Ze KuoFGyqOHumsA3kVS1kQ5CqGKwYSMNzA2AciHaAmvuTu65vVJDURcMRkq+/NIwEj5aKVai op2Q0xhX36Il0zSXVEuP9+Vn/uyKM6xQLLFHnJQYeKXyzv2sPe4Us7WO80ugy1t2mGqIkC AP9hRzlJSHVz5vJH27okihPVcQWR6RHkUE5mlMBwUXBVXugEnA/qqg5svLQahQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1611695752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VZILipp3AuPz1TxG9s7TLwJquSmPIKBU4CGdRXmRGJI=; b=Ymmiwk6JXnviG+e8UnmwmFrGPVbkd7x9Y28RSUwRgXLjqMys7eBvplgPxg5yPnXIoFryeY ddFXAP4YO15ZXqBA== To: Petr Mladek Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH printk-rework 01/12] printk: kmsg_dump: remove unused fields Date: Tue, 26 Jan 2021 22:21:40 +0106 Message-Id: <20210126211551.26536-2-john.ogness@linutronix.de> In-Reply-To: <20210126211551.26536-1-john.ogness@linutronix.de> References: <20210126211551.26536-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct kmsg_dumper still contains some fields that were used to iterate the old ringbuffer. They are no longer used. Remove them and update the struct documentation. Signed-off-by: John Ogness --- include/linux/kmsg_dump.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/kmsg_dump.h b/include/linux/kmsg_dump.h index 3378bcbe585e..da98846098b5 100644 --- a/include/linux/kmsg_dump.h +++ b/include/linux/kmsg_dump.h @@ -36,6 +36,9 @@ enum kmsg_dump_reason { * through the record iterator * @max_reason: filter for highest reason number that should be dumped * @registered: Flag that specifies if this is already registered + * @active: Flag that specifies if this is currently dumping + * @cur_seq: The record to dump (private) + * @next_seq: The first record of the next block (private) */ struct kmsg_dumper { struct list_head list; @@ -45,8 +48,6 @@ struct kmsg_dumper { bool registered; /* private state of the kmsg iterator */ - u32 cur_idx; - u32 next_idx; u64 cur_seq; u64 next_seq; }; -- 2.20.1