Skip to contentSkip to conversation

+ include-asm-generic-bugh-style-fix-s-while0-while-0.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 28, 2014 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

Subject: + include-asm-generic-bugh-style-fix-s-while0-while-0.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 28 Feb 2014 15:04:25 -0800

The patch titled
Subject: include/asm-generic/bug.h: style fix: s/while(0)/while (0)/
has been added to the -mm tree. Its filename is
include-asm-generic-bugh-style-fix-s-while0-while-0.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/include-asm-generic-bugh-style-fix-s-while0-while-0.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/include-asm-generic-bugh-style-fix-s-while0-while-0.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Josh Triplett <[email protected]>
Subject: include/asm-generic/bug.h: style fix: s/while(0)/while (0)/

---

 include/asm-generic/bug.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/asm-generic/bug.h renamed from include/asm-generic/bug.h~include-asm-generic-bugh-style-fix-s-while0-while-0 +3 -3
diff -puN include/asm-generic/bug.h~include-asm-generic-bugh-style-fix-s-while0-while-0 include/asm-generic/bug.h
@@ -52,7 +52,7 @@ struct bug_entry {
 #endif
 
 #ifndef HAVE_ARCH_BUG_ON
-#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0)
+#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
 #endif
 
 /*
@@ -138,11 +138,11 @@ extern void warn_slowpath_null(const cha
 
 #else /* !CONFIG_BUG */
 #ifndef HAVE_ARCH_BUG
-#define BUG() do {} while(0)
+#define BUG() do {} while (0)
 #endif
 
 #ifndef HAVE_ARCH_BUG_ON
-#define BUG_ON(condition) do { if (condition) ; } while(0)
+#define BUG_ON(condition) do { if (condition) ; } while (0)
 #endif
 
 #ifndef HAVE_ARCH_WARN_ON

_

Patches currently in -mm which might be from [email protected] are

mm-compactionc-mark-function-as-static.patch mm-memoryc-mark-functions-as-static.patch mm-mmapc-mark-function-as-static.patch mm-process_vm_accessc-mark-function-as-static.patch mm-process_vm_accessc-mark-function-as-static-fix.patch mm-page_cgroupc-mark-functions-as-static.patch mm-nobootmemc-mark-function-as-static.patch include-linux-mmh-remove-ifdef-condition.patch include-linux-syscallsh-add-sys32_quotactl-prototype.patch fs-kernel-permit-disabling-the-uselib-syscall.patch fs-kernel-permit-disabling-the-uselib-syscall-v2.patch submittingpatches-add-style-recommendation-to-use-imperative-descriptions.patch submittingpatches-add-recommendation-for-mailing-list-references.patch submittingpatches-document-the-use-of-git.patch lglock-map-to-spinlock-when-config_smp.patch lib-clz_ctzc-add-prototype-declarations-in-lib-clz_ctzc.patch lib-decompress_inflatec-include-appropriate-header-file.patch checkpatch-make-return-is-not-a-function-test-quieter.patch fs-reiserfs-move-prototype-declaration-to-header-file.patch include-linux-crash_dumph-add-vmcore_cleanup-prototype.patch include-linux-crash_dumph-add-vmcore_cleanup-prototype-fix.patch kconfig-make-allnoconfig-disable-options-behind-embedded-and-expert.patch bug-when-config_bug-simplify-warn_on_once-and-family.patch include-asm-generic-bugh-style-fix-s-while0-while-0.patch bug-when-config_bug-make-warn-call-no_printk-to-check-format-and-args.patch bug-use-a-common-definition-of-bug_on-regardless-of-config_bug.patch linux-next.patch