linux-nfc.lists.01.org archive mirror
 help / color / mirror / Atom feed
* [linux-nfc] [neard][PATCH 1/3] ci: show kernel headers version and difference against embedded nfc.h
@ 2022-02-14 12:31 Krzysztof Kozlowski
  2022-02-14 12:31 ` [linux-nfc] [neard][PATCH] Revert "include: Add a copy of the NFC kernel header" Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-14 12:31 UTC (permalink / raw)
  To: linux-nfc; +Cc: Krzysztof Kozlowski

We embed the /usr/include/linux/nfc.h as nfc_copy.h, to compile cleanly
on older kernels (e.g. older than v4.15 without
NFC_CMD_DEACTIVATE_TARGET).  See also commit fb7664e2995f ("include: Add
a copy of the NFC kernel header").  We should sync our local
nfc_copy.h with kernel sources from time to time, but it is easy to
forget this.

Add a separate Continuous Integration step to show kernel headers
version and differences between kernel's nfc.h and our local copy, so we
can notice kernel uses a different one.  This is purely for maintenance.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 .github/workflows/ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2e1ad40debb9..8cd836d398a7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -276,11 +276,20 @@ jobs:
     - name: Display environment and Linux version
       run: |
         test -f /etc/issue && cat /etc/issue
+        echo "############################################"
         lsb_release -a || true
+        echo "############################################"
+        cat /usr/include/linux/version.h
+        echo "############################################"
         uname -a
+        echo "############################################"
         cat /proc/cmdline
+        echo "############################################"
         printenv
 
+    - name: Display nfc.h differences between local and Linux kernel headers
+      run: diff -uBb /usr/include/linux/nfc.h include/nfc_copy.h || true
+
     - name: Configure
       id: configure
       run: |
-- 
2.32.0
_______________________________________________
Linux-nfc mailing list -- linux-nfc@lists.01.org
To unsubscribe send an email to linux-nfc-leave@lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-14 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 12:31 [linux-nfc] [neard][PATCH 1/3] ci: show kernel headers version and difference against embedded nfc.h Krzysztof Kozlowski
2022-02-14 12:31 ` [linux-nfc] [neard][PATCH] Revert "include: Add a copy of the NFC kernel header" Krzysztof Kozlowski
2022-02-14 12:32   ` [linux-nfc] " Krzysztof Kozlowski
2022-02-14 12:31 ` [linux-nfc] [neard][PATCH 2/3] ci: build on newer Fedora Linux (34 and 35) Krzysztof Kozlowski
2022-02-14 12:31 ` [linux-nfc] [neard][PATCH 3/3] include: sync nfc_copy.h with Linux kernel v5.17-rc4 Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).