Skip to contentSkip to conversation

Patch "modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS" has been added to the 6.6-stable tree

DISCUSSION Nathan Chancellor 2 participants 2 messages Feb 19, 2024 – Feb 20, 2024 1 message not in the archive Kbuild

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 2024021932-overpass-stinger-b897@gregkh

Nathan Chancellor

author maintainer
#1 lore raw

Hi Greg,

Quoted 16 lines · On Mon, Feb 19, 2024 at 05:28:33PM +0100, [email protected] wrote:

This is a note to let you know that I've just added the patch titled

modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS

to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
modpost-add-.ltext-and-.ltext.-to-text_sections.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 8 lines

From 397586506c3da005b9333ce5947ad01e8018a3be Mon Sep 17 00:00:00 2001
From: Nathan Chancellor <[email protected]>
Date: Tue, 23 Jan 2024 15:59:55 -0700
Subject: modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS

From: Nathan Chancellor <[email protected]>

commit 397586506c3da005b9333ce5947ad01e8018a3be upstream.

Please apply upstream commit 6a4e59eeedc3 ("linux/init: remove __memexit* annotations") before this change, as there is a warning in modpost without it:

scripts/mod/modpost.c:916:37: warning: excess elements in array initializer [-Wexcess-initializers]
916 | .good_tosec = {ALL_TEXT_SECTIONS , NULL},
| ^~~~
.../lib/clang/19/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'

     26 | #define NULL ((void*)0)
        |              ^~~~~~~~~~

1 warning generated.

It applies cleanly with 'git format-patch | patch' for me and I don't think it is unreasonable as a fix for this issue in stable.

This will be needed in 6.1 as well but that backport is a little more involved, I will reply there with an mbox series.

Cheers,
Nathan

#2 lore raw
Quoted 38 lines · Nathan Chancellor

Hi Greg,

Quoted 16 lines · On Mon, Feb 19, 2024 at 05:28:33PM +0100, [email protected] wrote:

This is a note to let you know that I've just added the patch titled

modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS

to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
modpost-add-.ltext-and-.ltext.-to-text_sections.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 8 lines

From 397586506c3da005b9333ce5947ad01e8018a3be Mon Sep 17 00:00:00 2001
From: Nathan Chancellor <[email protected]>
Date: Tue, 23 Jan 2024 15:59:55 -0700
Subject: modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONS

From: Nathan Chancellor <[email protected]>

commit 397586506c3da005b9333ce5947ad01e8018a3be upstream.

Please apply upstream commit 6a4e59eeedc3 ("linux/init: remove __memexit* annotations") before this change, as there is a warning in modpost without it:

scripts/mod/modpost.c:916:37: warning: excess elements in array initializer [-Wexcess-initializers]
916 | .good_tosec = {ALL_TEXT_SECTIONS , NULL},
| ^~~~
.../lib/clang/19/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'

     26 | #define NULL ((void*)0)
        |              ^~~~~~~~~~
Quoted 7 lines

1 warning generated.

It applies cleanly with 'git format-patch | patch' for me and I don't think it is unreasonable as a fix for this issue in stable.

This will be needed in 6.1 as well but that backport is a little more involved, I will reply there with an mbox series.

Thanks, that fixed the build warning!

greg k-h