Commit Graph

7 Commits

Author SHA1 Message Date
Scott Weaver 6f79580baa kernel/rh_messages.c: Mark functions as possibly unused
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>
2023-11-09 19:58:08 -05:00
Scott Weaver 191f1bd91f kernel/rh_messages.c: move hardware tables to rh_messages.h
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>
2023-11-09 18:13:00 -05:00
Prarit Bhargava ff9ec6d6b5 drivers/pci: Update rh_messages.c
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>
2023-11-09 18:13:00 -05:00
Eric Chanudet 8f8f9b698f kernel/rh_messages.c: Another gcc12 warning on redundant NULL test
Bugzilla: https://bugzilla.redhat.com/2216678
Upstream Status: RHEL only
ARK MR: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2527

For centos-stream-9, the first warning fix was:
f4286c544f ("kernel/rh_messages.c: gcc12 warning on redundant NULL test")
The warning re-surfaced with:
Fixes: 9d2f3e527d ("Add taint flag for partner supported GPL modules[...]")

commit 8407896256bc918ea5b5939c17ea6811cfeb5167
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Jun 22 10:30:36 2023 +0200

    kernel/rh_messages.c: Another gcc12 warning on redundant NULL test

    Upstream Status: RHEL only
    Bugzilla: https://bugzilla.redhat.com/2216678

    Commit f27fc648898bdba50204e9d6eb34cecd ("kernel/rh_messages.c:
    gcc12 warning on redundant NULL test") missed the mod->name check
    added in commit 5d3565f9ffcb927868fc7baf1bf37707f934bdc("Add Partner
    Supported taint flag").

    Signed-off-by: Florian Weimer <fweimer@redhat.com>

Signed-off-by: Eric Chanudet <echanude@redhat.com>
2023-06-30 08:58:07 -04:00
Alice Mitchell 9d2f3e527d Add taint flag for partner supported GPL modules
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2038999
Upstream Status: RHEL-only

Signed-off-by: Alice Mitchell <ajmitchell@redhat.com>
2023-01-20 14:07:53 +00:00
Eric Chanudet f4286c544f kernel/rh_messages.c: gcc12 warning on redundant NULL test
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>
2022-11-14 14:18:51 -05:00
Prarit Bhargava 845066875b kernel/rh_taint.c: Update to new messaging
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>
2022-01-10 13:31:06 -05:00