Bugzilla: https://bugzilla.redhat.com/2181611
Upstream Status: RHEL Only, https://gitlab.com/cki-project/kernel-ark
commit 690828965c5831294064da2c7aebe4de7438eab3
Author: Prarit Bhargava <prarit@redhat.com>
Date: Mon, 6 Nov 2023 11:19:55 -0500
These functions may or may not be used in different architectures.
Mark them all as __maybe_unused.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Scott Weaver <scweaver@redhat.com>
Bugzilla: https://bugzilla.redhat.com/2181611
Upstream Status: RHEL only
This moves the static message strings and hardware tables that were
in rh_messages.c into an auto-generated header file (rh_messages.h) that
contains the lists of unmaintained, deprecated and disabled drivers and
pci devices.
The PCI-ID in log messages was updated to be in "vendor:device" order.
Signed-off-by: Scott Weaver <scweaver@redhat.com>
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2181611
Upstream Status: RHEL only
Update rh_messages.c, which was generated using
https://gitlab.cee.redhat.com/prarit/hardware-support-removal
Database information is used to create lists of drivers and devices that are
unmaintained, deprecated, or disabled. New functions using the data are
introduced and will be called directly from PCI driver loading and module
loading code.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Upstream Status: RHEL only
Bugzilla: https://bugzilla.redhat.com/2142658
mod->name is embedded in the struct module. No need to test for NULL.
kernel/rh_messages.c: In function ‘mark_tech_preview’:
kernel/rh_messages.c:166:22: warning: the comparison will always evaluate as ‘true’ for the address of ‘name’ will never be NULL [-Waddress]
166 | else if (mod && mod->name)
| ^~
In file included from kernel/rh_messages.c:2:
./include/linux/module.h:371:14: note: ‘name’ declared here
371 | char name[MODULE_NAME_LEN];
| ^~~~
Signed-off-by: Eric Chanudet <echanude@redhat.com>
Bugzilla: http://bugzilla.redhat.com/2019379
Upstream Status: RHEL only, https://gitlab.com/cki-project/kernel-ark
commit 32e41db9e05fedb40cae321e08e02668f030fd61
Author: Prarit Bhargava <prarit@redhat.com>
Date: Tue Nov 2 20:39:37 2021 -0400
kernel/rh_taint.c: Update to new messaging
Bugzilla: https://bugzilla.redhat.com/2019377
Upstream Status: RHEL only
Red Hat requires customer-facing messages to inform users that hardware
and drivers are scheduled to be removed from support ie) disabled in the
kernel. Hardware and drivers that are scheduled to be disabled in a
future release fall into two categories: unmaintained and deprecated.
Deprecated hardware and drivers continue to be fully maintained in the
current release, but will be disabled in a future major release.
Unmaintained hardware and drivers may receive security fixes and are also
disabled in a future major release.
The new messages have been agreed upon by the RHBU and RH Engineering.
The changes include renaming rh_taint.c to rh_message.c and adding PCI
device specific functions.
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Prarit Bhargava <prarit@redhat.com>