lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230718211147.18647-1-andriy.shevchenko@linux.intel.com>
Date:   Wed, 19 Jul 2023 00:11:43 +0300
From:   Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To:     Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
        Shuah Khan <skhan@...uxfoundation.org>,
        David Gow <davidgow@...gle.com>,
        Daniel Latypov <dlatypov@...gle.com>,
        "Steven Rostedt (Google)" <rostedt@...dmis.org>,
        Bjorn Helgaas <bhelgaas@...gle.com>,
        linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
        kunit-dev@...glegroups.com, linux-arm-kernel@...ts.infradead.org,
        linux-pci@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Cc:     Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
        Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
        "H. Peter Anvin" <hpa@...or.com>,
        Brendan Higgins <brendan.higgins@...ux.dev>,
        Mark Rutland <mark.rutland@....com>,
        Lorenzo Pieralisi <lpieralisi@...nel.org>,
        Sudeep Holla <sudeep.holla@....com>,
        Masami Hiramatsu <mhiramat@...nel.org>,
        Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH v4 0/4] kernel.h: Split out a couple of macros to args.h

There are macros in kernel.h that can be used outside of that header.
Split them to args.h and replace open coded variants.

Test compiled with `make allmodconfig` for x86_64.
Test cross-compiled with `make multi_v7_defconfig` for arm.

(Note that positive diff statistics is due to documentation being
updated.)

In v4:
- fixed compilation error on arm (LKP, Stephen)

In v3:
- split to a series of patches
- fixed build issue on `make allmodconfig` for x86_64 (Andrew)

In v2:
- converted existing users at the same time (Andrew, Rasmus)
- documented how it does work (Andrew, Rasmus)

Andy Shevchenko (4):
  kernel.h: Split out COUNT_ARGS() and CONCATENATE() to args.h
  x86/asm: Replace custom COUNT_ARGS() & CONCATENATE() implementations
  arm64: smccc: Replace custom COUNT_ARGS() & CONCATENATE()
    implementations
  genetlink: Replace custom CONCATENATE() implementation

 arch/x86/include/asm/rmwcc.h      | 11 ++---
 include/kunit/test.h              |  1 +
 include/linux/args.h              | 28 +++++++++++++
 include/linux/arm-smccc.h         | 69 ++++++++++++++-----------------
 include/linux/genl_magic_func.h   | 27 ++++++------
 include/linux/genl_magic_struct.h |  8 ++--
 include/linux/kernel.h            |  7 ----
 include/linux/pci.h               |  2 +-
 include/trace/bpf_probe.h         |  2 +
 9 files changed, 84 insertions(+), 71 deletions(-)
 create mode 100644 include/linux/args.h

-- 
2.40.0.1.gaa8946217a0b

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ