Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1240828rdd; Wed, 10 Jan 2024 13:08:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpbBTx4Otqd4VG8n+Rl/wiLyHC4tU2uj/PvqrLYhJJt4+KullQB4jcOsAMQQLopH61LUaw X-Received: by 2002:a05:622a:1714:b0:429:bfe7:dddf with SMTP id h20-20020a05622a171400b00429bfe7dddfmr163319qtk.86.1704920916024; Wed, 10 Jan 2024 13:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704920916; cv=none; d=google.com; s=arc-20160816; b=WFNyBSYC3+oyy7H5yTkRJe2rQ8S3BICP9RPapQHRkzIuIGgDrVaDjJBFMIoIphrJCz EYE0yNTpDN12fnTlWFy/QuxxQLnc+SFzENlWQ6Em4bO76ON3qrvsZx0rUyzpk/43t4KA NfwvZuZbA+rxY4oudue2Gm+aw0MQuh6TIOEQL9KZMOnuD+IW/TFeF7M4fbIeQ/sFO64n nWdIBH2cr9zv6Yhfaz5aPET8tS8PAHW38geUP5XSZu3FMCUnQfrp2rkdkClLFJUN3+6Z 375P8FfkLvZNM+nF2yvez2LnXBP8IzytbwwaYcvxfVnVFHLgHaULcp2iafozZ4ODg7HD Wgkw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o20-20020ac85a54000000b00429bed66698si412611qta.348.2024.01.10.13.08.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 13:08:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22801-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 84C1A1C22D4E for ; Wed, 10 Jan 2024 21:08:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3460D4F618; Wed, 10 Jan 2024 21:08:17 +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?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Kees Cook Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , "Guilherme G. Piccoli" , Tony Luck , 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- fs/pstore/ram.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.43.0