Message ID | 20240110210600.787703-2-nfraprado@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-22801-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1055639dyi; Wed, 10 Jan 2024 13:08:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL4wdeWtXRNZeyGUHh6idF1LirtDtDeflkMUQ8sCeLDyf+tEAxGBrXyizYCSWCnX6TKEbR X-Received: by 2002:a17:902:c94d:b0:1d5:c9d:11dc with SMTP id i13-20020a170902c94d00b001d50c9d11dcmr198517pla.38.1704920923792; Wed, 10 Jan 2024 13:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704920923; cv=none; d=google.com; s=arc-20160816; b=l2fw+sKEmOHrzXSTFENAayzAjgmbySeHFf5RvQJN+GtOoEOReXJqOoB2bQoIToYPMW sjXQQ8azdi4oAf4mHnLMtMiBMedEImTlQGR6ddd3SY3p9d4BGYhTvegADZGUdRQz81cx EJtIpmm18gPA31X8Bc0UU4ufa3PL0hDs6LsQHlm4qBxVUOM3FOaufW3PJVnCYlGWojem 21IMaUCmHAS3gl8L06w0gPtH0/aFg8IEfGV81LZDI/CcBmQHFd5GNdzxRuG5bgMp+b6m WrzpfjVkphGUKX0mIk/7XWh6V5U9OEL/qwAGNPUplJwy/ZUV6ZG1lBtEwEGBv7NNlhOo fVQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TM7iVFCLnOzYU86ncWYdXvSFgihjMqvRuwm0C81qYtA=; fh=gzznayHduZGePrahN7Fu6Ctg+TbENv/vXkOk5nlSq3M=; b=QWEy6t4Aw455yPuWc9hNuvkyM5qqQWOs+5SkkTWSg5yPxrcY88WxvcNQMCGsCeLvAQ bDOpBVNeV0Xid+x5uBzui4YVpiUjX92ejZTDXfOREeA2KxwZp1JHJqNOPASQc2kvSJWK cjVZQfZ0HfhNIiVGDA+DUdO50JGNrcEpeMBTsg3RHOVff14RTF3vmj+pYzikqLZ+k2jW qAnb0L5lQLSAcDDAn/CqGrhA1lA1/IdTjGQDy9imB/otpl5WV4mLADWvtPOcnVHZC+hM G2WHWpxE+I7UlYHYwWMcNQvHXlW8ksIvhVLhWh6Hh5XBu8qyLYl6pp335e/LPyI4JcCi CSrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=T0yCjpjE; spf=pass (google.com: domain of linux-kernel+bounces-22801-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22801-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bg11-20020a1709028e8b00b001cfa70fd337si4355211plb.301.2024.01.10.13.08.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 13:08:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22801-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=T0yCjpjE; spf=pass (google.com: domain of linux-kernel+bounces-22801-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22801-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5C730281772 for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 21:08:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10FB94F88B; Wed, 10 Jan 2024 21:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="T0yCjpjE" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 000E14F5EF; Wed, 10 Jan 2024 21:08:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704920893; bh=5xzC9o7ZwfdiClX7d+ONP8pEhD1E9GYUmkmkVAcMUhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T0yCjpjEZbcEntuGdOJbnpHvA818RIEsBiZ2olN3DGSVUuYTCw8Dnc0T9zjaezfKc WCIRfTk83m5YU/TtUeXtYh3qoy/auhkBqWg/cPDNINKwmkxVKfF1e84Ku7hacwFhjT 4bIyZw4mWedSLR6fHuGT/GIPXt1begbF3vanEMB2sCOHT0Vn/SVKJE9xdNP+Zbx9TK Wi/skF+NcFLBZ1FkMi/vmE2mt2lKDUe3cufGBB99GdJ45KQE6vGoiz4lsUOsg9q89s uoNUABJ3O9AdhLekv5ezO1b2MiMjsfdkWJp10OEZg+luSBl6lCxmT8b3A/0TyiirWD zObEe1TNwBCrQ== Received: from localhost.localdomain (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A5077378147E; Wed, 10 Jan 2024 21:08:10 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> To: Kees Cook <keescook@chromium.org> Cc: kernel@collabora.com, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com>, "Guilherme G. Piccoli" <gpiccoli@igalia.com>, Tony Luck <tony.luck@intel.com>, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] pstore/ram: Register to module device table Date: Wed, 10 Jan 2024 18:05:02 -0300 Message-ID: <20240110210600.787703-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110210600.787703-1-nfraprado@collabora.com> References: <20240110210600.787703-1-nfraprado@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787739162527951730 X-GMAIL-MSGID: 1787739162527951730 |
Series |
Enable PSTORE_RAM as a module in the arm64 defconfig
|
|
Commit Message
Nícolas F. R. A. Prado
Jan. 10, 2024, 9:05 p.m. UTC
Register the compatible for this module on the module device table so
it can be automatically loaded when a matching DT node is present,
allowing logging of panics and oopses without any intervention.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
fs/pstore/ram.c | 1 +
1 file changed, 1 insertion(+)
Comments
Il 10/01/24 22:05, Nícolas F. R. A. Prado ha scritto: > Register the compatible for this module on the module device table so > it can be automatically loaded when a matching DT node is present, > allowing logging of panics and oopses without any intervention. > > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
On Wed, Jan 10, 2024 at 06:05:02PM -0300, Nícolas F. R. A. Prado wrote: > Register the compatible for this module on the module device table so > it can be automatically loaded when a matching DT node is present, > allowing logging of panics and oopses without any intervention. > > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Ah-ha! Yeah, good idea. Reviewed-by: Kees Cook <keescook@chromium.org>
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 88b34fdbf759..b1a455f42e93 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -893,6 +893,7 @@ static const struct of_device_id dt_match[] = { { .compatible = "ramoops" }, {} }; +MODULE_DEVICE_TABLE(of, dt_match); static struct platform_driver ramoops_driver = { .probe = ramoops_probe,