diff for duplicates of <20220130233718.21544-3-digetx@gmail.com> diff --git a/a/1.txt b/N1/1.txt index e54f335..b49afdd 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -37,12 +37,12 @@ index 4ed6bda8f127..4fc32b1e6cbb 100644 + bool unique_priority) { while ((*nl) != NULL) { - if (unlikely((*nl) == n)) { + if (unlikely((*nl) = n)) { @@ -30,6 +31,8 @@ static int notifier_chain_register(struct notifier_block **nl, } if (n->priority > (*nl)->priority) break; -+ if (n->priority == (*nl)->priority && unique_priority) ++ if (n->priority = (*nl)->priority && unique_priority) + return -EBUSY; nl = &((*nl)->next); } @@ -109,7 +109,7 @@ index 4ed6bda8f127..4fc32b1e6cbb 100644 @@ -230,15 +247,48 @@ int blocking_notifier_chain_register(struct blocking_notifier_head *nh, * such times we must not call down_write(). */ - if (unlikely(system_state == SYSTEM_BOOTING)) + if (unlikely(system_state = SYSTEM_BOOTING)) - return notifier_chain_register(&nh->head, n); + return notifier_chain_register(&nh->head, n, unique_priority); @@ -169,7 +169,7 @@ index 4ed6bda8f127..4fc32b1e6cbb 100644 @@ -433,10 +483,10 @@ int srcu_notifier_chain_register(struct srcu_notifier_head *nh, * such times we must not call mutex_lock(). */ - if (unlikely(system_state == SYSTEM_BOOTING)) + if (unlikely(system_state = SYSTEM_BOOTING)) - return notifier_chain_register(&nh->head, n); + return notifier_chain_register(&nh->head, n, false); diff --git a/a/content_digest b/N1/content_digest index 7f74a4a..cf51557 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020220130233718.21544-1-digetx@gmail.com\0" "From\0Dmitry Osipenko <digetx@gmail.com>\0" "Subject\0[PATCH v6 02/21] notifier: Add atomic/blocking_notifier_chain_register_unique_prio()\0" - "Date\0Mon, 31 Jan 2022 02:36:59 +0300\0" + "Date\0Sun, 30 Jan 2022 23:36:59 +0000\0" "To\0Thierry Reding <thierry.reding@gmail.com>" Jonathan Hunter <jonathanh@nvidia.com> Russell King <linux@armlinux.org.uk> @@ -105,12 +105,12 @@ "+\t\t\t\t bool unique_priority)\n" " {\n" " \twhile ((*nl) != NULL) {\n" - " \t\tif (unlikely((*nl) == n)) {\n" + " \t\tif (unlikely((*nl) = n)) {\n" "@@ -30,6 +31,8 @@ static int notifier_chain_register(struct notifier_block **nl,\n" " \t\t}\n" " \t\tif (n->priority > (*nl)->priority)\n" " \t\t\tbreak;\n" - "+\t\tif (n->priority == (*nl)->priority && unique_priority)\n" + "+\t\tif (n->priority = (*nl)->priority && unique_priority)\n" "+\t\t\treturn -EBUSY;\n" " \t\tnl = &((*nl)->next);\n" " \t}\n" @@ -177,7 +177,7 @@ "@@ -230,15 +247,48 @@ int blocking_notifier_chain_register(struct blocking_notifier_head *nh,\n" " \t * such times we must not call down_write().\n" " \t */\n" - " \tif (unlikely(system_state == SYSTEM_BOOTING))\n" + " \tif (unlikely(system_state = SYSTEM_BOOTING))\n" "-\t\treturn notifier_chain_register(&nh->head, n);\n" "+\t\treturn notifier_chain_register(&nh->head, n, unique_priority);\n" " \n" @@ -237,7 +237,7 @@ "@@ -433,10 +483,10 @@ int srcu_notifier_chain_register(struct srcu_notifier_head *nh,\n" " \t * such times we must not call mutex_lock().\n" " \t */\n" - " \tif (unlikely(system_state == SYSTEM_BOOTING))\n" + " \tif (unlikely(system_state = SYSTEM_BOOTING))\n" "-\t\treturn notifier_chain_register(&nh->head, n);\n" "+\t\treturn notifier_chain_register(&nh->head, n, false);\n" " \n" @@ -250,4 +250,4 @@ "-- \n" 2.34.1 -3765a5320b9db938ac31a4305e1214249182e32b47fb414806272c1df577c0f1 +42713208dd367c56895ea058e488da6c286204c1bdf19f568de62061c431f28b
diff --git a/a/1.txt b/N2/1.txt index e54f335..0c32aea 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -181,3 +181,9 @@ index 4ed6bda8f127..4fc32b1e6cbb 100644 } -- 2.34.1 + + +_______________________________________________ +linux-riscv mailing list +linux-riscv@lists.infradead.org +http://lists.infradead.org/mailman/listinfo/linux-riscv diff --git a/a/content_digest b/N2/content_digest index 7f74a4a..0dbee9d 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -248,6 +248,12 @@ " \treturn ret;\n" " }\n" "-- \n" - 2.34.1 + "2.34.1\n" + "\n" + "\n" + "_______________________________________________\n" + "linux-riscv mailing list\n" + "linux-riscv@lists.infradead.org\n" + http://lists.infradead.org/mailman/listinfo/linux-riscv -3765a5320b9db938ac31a4305e1214249182e32b47fb414806272c1df577c0f1 +df3176fb73ab45b55725eb887272f39c8eb3cbf572fd2362e8a078cb17d6bcff
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.