Re: [PATCH v4 00/66] Define _GNU_SOURCE for sources using

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/9/24 18:06, Edward Liaw wrote:
Centralizes the definition of _GNU_SOURCE into KHDR_INCLUDES and removes
redefinitions of _GNU_SOURCE from source code.

809216233555 ("selftests/harness: remove use of LINE_MAX") introduced
asprintf into kselftest_harness.h, which is a GNU extension and needs
_GNU_SOURCE to either be defined prior to including headers or with the
-D_GNU_SOURCE flag passed to the compiler.

v1: https://lore.kernel.org/linux-kselftest/20240430235057.1351993-1-edliaw@xxxxxxxxxx/
v2: https://lore.kernel.org/linux-kselftest/20240507214254.2787305-1-edliaw@xxxxxxxxxx/
  - Add -D_GNU_SOURCE to KHDR_INCLUDES so that it is in a single
    location.
  - Remove #define _GNU_SOURCE from source code to resolve redefinition
    warnings.
v3: https://lore.kernel.org/linux-kselftest/20240509200022.253089-1-edliaw@xxxxxxxxxx/
  - Rebase onto linux-next 20240508.
  - Split patches by directory.
  - Add -D_GNU_SOURCE directly to CFLAGS in lib.mk.
  - Delete additional _GNU_SOURCE definitions from source code in
    linux-next.
  - Delete additional -D_GNU_SOURCE flags from Makefiles.
v4:
  - Rebase onto linux-next 20240509.
  - Remove Fixes tag from patches that drop _GNU_SOURCE definition.
  - Restore space between comment and includes for selftests/damon.
> Edward Liaw (66):
   selftests: Compile with -D_GNU_SOURCE when including lib.mk

This above change is causing some build problems - I didn't
notice them when I tested on linux-next. However some problems
are seen by Mark. He sent in a fix for ALSA and a change to
descalate build warn.

Please don't apply these for 6.10 for now. I will take all
of these together.

thanks,
-- Shuah




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux