;comm, sizeof(comm) - 1, 0);
Reverting Linus's revert, applying the patch in this thread, and then
changing it to that memcpy_and_pad above, everything seems to work well.
Tested-by: Vegard Nossum
(However, I have not looked at the _safety_ of omitting task_lock()...)
I'm also wonde
nflict. Can/should I wait for -rc1 and
resubmit it for inclusion then?
Thanks,
Vegard
On 19/08/2024 18:02, Vegard Nossum wrote:
This patch series lets 'make -n' output a shell script that can be
used to build the kernel without any further use of make. For example:
make defco
executes the command if any dependencies have changed.
- $cmd_and_fixdep executes the command and updates ..cmd.
Skip all of that in --dry-run mode and just execute the command.
Signed-off-by: Vegard Nossum
---
scripts/Kbuild.include | 27 +++
1 file changed, 27
;make -n htmldocs') are not at all guaranteed to
produce meaningful output; certain kernel configs may also not work,
especially those that rely on external tools like e.g. Rust.
[1]: https://www.openwall.com/lists/oss-security/2024/04/17/3
[2]: https://www.gnu.org/software/make/manual/make.html#T
Output 'make() { :; }' at the start of the script in order to make
all 'make' invocations in the resulting build script no-ops (GNU Make
will actually execute -- and print -- all recipe lines that include
$(MAKE), even when invoked with -n).
Signed-off-by: Vegard Nossu
hich are expected to be created by
the parent Makefile) by adding them to the PHONY list of each respective
Makefile.
Signed-off-by: Vegard Nossum
---
arch/x86/boot/compressed/Makefile | 6 ++
scripts/Makefile.modfinal | 5 +
scripts/Makefile.modpost | 4
scr
modules.order is read by scripts/Makefile.modfinal to determine which
modules to build, so we need this recipe to execute if we want to be able
to output the recipes for building modules in dry-run mode.
Signed-off-by: Vegard Nossum
---
scripts/Makefile.build | 2 +-
1 file changed, 1 insertion
If the user ran 'make -n' then we will already print all commands.
Signed-off-by: Vegard Nossum
---
Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index d08ade5791c2e..a1a3e96a10ea2 100644
--- a/Makefile
+++ b/Makefile
@@ -9
' invocations and is necessary for 'make --dry-run' to work.
Signed-off-by: Vegard Nossum
---
scripts/Makefile.modpost | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
index 65f2bdc702369..139fa0b087b6d 100644
-
Make link-vmlinux.sh print the commands it wants to run instead of
actually running them when $dry_run is defined.
This is needed in order for make -n/--dry-run to output a complete
build script.
Signed-off-by: Vegard Nossum
---
scripts/Makefile.vmlinux | 15 --
scripts/link
manual/make.html#Testing-Flags
Signed-off-by: Vegard Nossum
---
Makefile | 5 +
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 58f3843ccfac6..953951157ec92 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,11 @@ $(if $(filter __%, $(MAKECMDGOALS)), \
PHONY := __all
Prefixing a line in a make recipe with + makes that command execute even
in --dry-run mode. We don't need that here; remove it.
Fixes: 5f9ae91f7c0d ("kbuild: Build kernel module BTFs if BTF is enabled and
pahole supports it")
Cc: Andrii Nakryiko
Cc: Alexei Starovoitov
Signed
These environment variables are passed when invoking 'make', but if
running 'make -n' we need to pass them explicitly so they become part
of the printed command.
Signed-off-by: Vegard Nossum
---
Makefile | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a
nstruction.
[1]: https://www.gnu.org/software/make/manual/make.html#Testing-Flags
Signed-off-by: Vegard Nossum
---
Makefile | 5 +
1 file changed, 5 insertions(+)
diff --git a/Makefile b/Makefile
index 44c02a6f60a14..f09c036daf2f5 100644
--- a/Makefile
+++ b/Makefile
@@ -757,6 +757,10 @@ ifde
On 01/01/2024 14:55, Greg Kroah-Hartman wrote:
On Mon, Jan 01, 2024 at 05:08:28AM -0800, Harshit Mogalapalli wrote:
One possible way to silence the warning is to split the memcpy() into
two parts -- one -- copying the msg and second taking care of payload.
And what are the performance impact
15 matches
Mail list logo