All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Gallagher <greg@embeddedgreg.com>
To: xenomai@xenomai.org
Subject: [PATCH v2 2/2] kernel: cobalt: Fix up elf_hwcap
Date: Wed,  3 Feb 2021 02:01:59 -0500	[thread overview]
Message-ID: <20210203070159.3610435-2-greg@embeddedgreg.com> (raw)
In-Reply-To: <20210203070159.3610435-1-greg@embeddedgreg.com>

Update to use ELF_HWCAP instead of elf_hwcap directly.

Signen-off-by: Greg Gallagher <greg@embeddedgreg.com>
---
 kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h   | 2 +-
 kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h b/kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h
index a76f1e6bb..b8c627bed 100644
--- a/kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h
+++ b/kernel/cobalt/arch/arm/include/asm/xenomai/fptest.h
@@ -23,7 +23,7 @@
 #include <asm/hwcap.h>
 
 #ifdef CONFIG_VFP
-#define have_vfp (elf_hwcap & HWCAP_VFP)
+#define have_vfp (ELF_HWCAP & HWCAP_VFP)
 #else /* !CONFIG_VFP */
 #define have_vfp 0
 #endif /* !CONFIG_VFP */
diff --git a/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h b/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
index b7e3f52f2..291c9e5f0 100644
--- a/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
+++ b/kernel/cobalt/arch/arm64/include/asm/xenomai/fptest.h
@@ -23,7 +23,7 @@
 #include <asm/xenomai/uapi/fptest.h>
 #include <asm/hwcap.h>
 
-#define have_fp (elf_hwcap & HWCAP_FP)
+#define have_fp (ELF_HWCAP & HWCAP_FP)
 
 static inline int fp_kernel_supported(void)
 {
-- 
2.25.1



  reply	other threads:[~2021-02-03  7:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-03  7:01 [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels Greg Gallagher
2021-02-03  7:01 ` Greg Gallagher [this message]
2021-02-03  9:52   ` [PATCH v2 2/2] kernel: cobalt: Fix up elf_hwcap Jan Kiszka
2021-02-03  9:50 ` [PATCH v2 1/2] kernel: cobalt: Remove header file for newer kernels Jan Kiszka
2021-02-05 14:45   ` Jan Kiszka
2021-02-05 14:47     ` Greg Gallagher
2021-02-05 16:32       ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210203070159.3610435-2-greg@embeddedgreg.com \
    --to=greg@embeddedgreg.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.