[linux] 18/18: liblockdep: Define pr_cont()

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Oct 1 15:18:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux.

commit 884aedc0b44da426056f18e14617aea368176aaa
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun Oct 1 15:44:25 2017 +0100

    liblockdep: Define pr_cont()
---
 debian/changelog                                   |  1 +
 .../all/tools-lib-lockdep-define-pr_cont.patch     | 25 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index df5a041..d9256f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,7 @@ linux (4.13.4-1~exp1) UNRELEASED; urgency=medium
   * [armhf] dts: exynos: Add dwc3 SUSPHY quirk (Closes: #843448)
   * liblockdep: Make missing function declarations fatal errors, to catch use
     of missing kernel APIs
+  * liblockdep: Define pr_cont()
 
   [ Uwe Kleine-König ]
   * [arm64] really enable NET_DSA_MV88E6XXX for Espressobin
diff --git a/debian/patches/bugfix/all/tools-lib-lockdep-define-pr_cont.patch b/debian/patches/bugfix/all/tools-lib-lockdep-define-pr_cont.patch
new file mode 100644
index 0000000..2975cfa
--- /dev/null
+++ b/debian/patches/bugfix/all/tools-lib-lockdep-define-pr_cont.patch
@@ -0,0 +1,25 @@
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Sun, 01 Oct 2017 15:39:34 +0100
+Subject: tools/lib/lockdep: Define pr_cont()
+
+lockdep.c now also uses pr_cont(), so we need to implement it in
+liblockdep.
+
+It is currently always used to continue warning lines, so define
+pr_cont() the same as pr_warn().  If this changes, we might need to
+record the last log level in a TLS variable and have pr_cont() check
+that.
+
+Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
+---
+--- a/tools/include/linux/lockdep.h
++++ b/tools/include/linux/lockdep.h
+@@ -47,6 +47,8 @@ static inline int debug_locks_off(void)
+ #define printk(...) dprintf(STDOUT_FILENO, __VA_ARGS__)
+ #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
+ #define pr_warn pr_err
++/* XXX we assume pr_cont() is only used for warnings */
++#define pr_cont pr_warn
+ 
+ #define list_del_rcu list_del
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 313adcc..c69216e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -136,3 +136,4 @@ bugfix/x86/revert-perf-build-fix-libunwind-feature-detection-on.patch
 bugfix/all/tools-build-remove-bpf-run-time-check-at-build-time.patch
 bugfix/all/cpupower-bump-soname-version.patch
 bugfix/all/cpupower-fix-checks-for-cpu-existence.patch
+bugfix/all/tools-lib-lockdep-define-pr_cont.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list