Wei Yang
ccaf3efcee
lib/interval_tree: add test case for span iteration
...
Verify interval_tree_span_iter_xxx() helpers works as expected.
Link: https://lkml.kernel.org/r/20250310074938.26756-6-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com >
Cc: Matthew Wilcox <willy@infradead.org >
Cc: Michel Lespinasse <michel@lespinasse.org >
Cc: Jason Gunthorpe <jgg@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:01 -07:00
Wei Yang
82114e4513
lib/interval_tree: add test case for interval_tree_iter_xxx() helpers
...
Verify interval_tree_iter_xxx() helpers could find intersection ranges
as expected.
[sfr@canb.auug.org.au: some of tools/ uses -Wno-unused-parameter]
Link: https://lkml.kernel.org/r/20250312113612.31ac808e@canb.auug.org.au
Link: https://lkml.kernel.org/r/20250310074938.26756-5-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com >
Cc: Matthew Wilcox <willy@infradead.org >
Cc: Michel Lespinasse <michel@lespinasse.org >
Cc: Jason Gunthorpe <jgg@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:00 -07:00
Wei Yang
16b1936ae6
lib/rbtree: add random seed
...
Current test use pseudo rand function with fixed seed, which means the
test data is the same pattern each time.
Add random seed parameter to randomize the test.
Link: https://lkml.kernel.org/r/20250310074938.26756-4-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com >
Cc: Matthew Wilcox <willy@infradead.org >
Cc: Michel Lespinasse <michel@lespinasse.org >
Cc: Jason Gunthorpe <jgg@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:00 -07:00
Wei Yang
3e1d58cd5d
lib/rbtree: split tests
...
Current tests are gathered in one big function.
Split tests into its own function for better understanding and also it
is a preparation for introducing new test cases.
Link: https://lkml.kernel.org/r/20250310074938.26756-3-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com >
Cc: Matthew Wilcox <willy@infradead.org >
Cc: Michel Lespinasse <michel@lespinasse.org >
Cc: Jason Gunthorpe <jgg@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:00 -07:00
Wei Yang
4164e1525d
lib/rbtree: enable userland test suite for rbtree related data structure
...
Patch series "lib/interval_tree: add some test cases and cleanup", v2.
Since rbtree/augmented tree/interval tree share similar data structure,
besides new cases for interval tree, this patch set also does cleanup for
others.
This patch (of 7):
Currently we have some tests for rbtree related data structure, e.g.
rbtree, augmented rbtree, interval tree, in lib/ as kernel module.
To facilitate the test and debug for those fundamental data structure,
this patch enable those tests in userland.
Link: https://lkml.kernel.org/r/20250310074938.26756-1-richard.weiyang@gmail.com
Link: https://lkml.kernel.org/r/20250310074938.26756-2-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com >
Cc: Matthew Wilcox <willy@infradead.org >
Cc: Michel Lespinasse <michel@lespinasse.org >
Cc: Jason Gunthorpe <jgg@nvidia.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:00 -07:00
Philipp Hahn
bc2f19d653
checkpatch: describe --min-conf-desc-length
...
Neither the warning nor the help message gives any hint on the unit for
length: Could be meters, inches, bytes, characters or ... lines.
Extend the output of `--help` to name the unit "lines" and the default:
- --min-conf-desc-length=n set the min description length, if shorter, warn
+ --min-conf-desc-length=n set the minimum description length for config symbols
+ in lines, if shorter, warn (default 4)
Include the minimum number of lines as other error messages already do:
- WARNING: please write a help paragraph that fully describes the config symbol
+ WARNING: please write a help paragraph that fully describes the config symbol with at least 4 lines
Link: https://lkml.kernel.org/r/c71c170c90eba26265951e248adfedd3245fe575.1741605695.git.p.hahn@avm.de
Signed-off-by: Philipp Hahn <p.hahn@avm.de >
Cc: Andy Whitcroft <apw@canonical.com >
Cc: Joe Perches <joe@perches.com >
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com >
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:00 -07:00
Ilya Leoshkevich
28939c3e99
scripts/gdb/symbols: determine KASLR offset on s390
...
Use QEMU's qemu.PhyMemMode [1] functionality to read vmcore from the
physical memory the same way the existing dump tooling does this.
Gracefully handle non-QEMU targets, early boot, and memory corruptions;
print a warning if such situation is detected.
[1] https://qemu-project.gitlab.io/qemu/system/gdb.html#examining-physical-memory
Link: https://lkml.kernel.org/r/20250303110437.79070-1-iii@linux.ibm.com
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com >
Acked-by: Jan Kiszka <jan.kiszka@siemens.com >
Cc: Alexander Gordeev <agordeev@linux.ibm.com >
Cc: Andrew Donnellan <ajd@linux.ibm.com >
Cc: Christian Borntraeger <borntraeger@linux.ibm.com >
Cc: Heiko Carstens <hca@linux.ibm.com >
Cc: Kieran Bingham <kbingham@kernel.org >
Cc: Nina Schoetterl-Glausch <nsg@linux.ibm.com >
Cc: Vasily Gorbik <gor@linux.ibm.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:17:00 -07:00
Mateusz Guzik
8a56f26607
signal: avoid clearing TIF_SIGPENDING in recalc_sigpending() if unset
...
Clearing is an atomic op and the flag is not set most of the time.
When creating and destroying threads in the same process with the pthread
family, the primary bottleneck is calls to sigprocmask which take the
process-wide sighand lock.
Avoiding the atomic gives me a 2% bump in start/teardown rate at 24-core
scale.
[akpm@linux-foundation.org: add unlikely() as well]
Link: https://lkml.kernel.org/r/20250303134908.423242-1-mjguzik@gmail.com
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com >
Acked-by: Oleg Nesterov <oleg@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Antonio Quartulli
e0349c46cb
scripts/gdb/linux/symbols.py: address changes to module_sect_attrs
...
When loading symbols from kernel modules we used to iterate
from 0 to module_sect_attrs::nsections, in order to
retrieve their name and address.
However module_sect_attrs::nsections has been removed from
the struct by a previous commit.
Re-arrange the iteration by accessing all items in
module_sect_attrs::grp::bin_attrs[] until NULL is found
(it's a NULL terminated array).
At the same time the symbol address cannot be extracted
from module_sect_attrs::attrs[]::address anymore because
it has also been deleted. Fetch it from
module_sect_attrs::grp::bin_attrs[]::private as described
in 4b2c11e4aa .
Link: https://lkml.kernel.org/r/20250221204034.4430-1-antonio@mandelbit.com
Fixes: d8959b947a ("module: sysfs: Drop member 'module_sect_attrs::nsections'")
Fixes: 4b2c11e4aa ("module: sysfs: Drop member 'module_sect_attr::address'")
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com >
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com >
Cc: Thomas Weißschuh <linux@weissschuh.net >
Cc: Kieran Bingham <kbingham@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Easwar Hariharan
f873136416
RDMA/bnxt_re: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-16-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Easwar Hariharan
66644d80a4
platform/x86: thinkpad_acpi: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-15-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Easwar Hariharan
8ba1b428cf
platform/x86/amd/pmf: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-14-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Easwar Hariharan
7c9a8c5714
spi: spi-imx: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-13-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Easwar Hariharan
eee6af2319
spi: spi-fsl-lpspi: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-12-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: Mark Brown <broonie@kernel.org >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:59 -07:00
Easwar Hariharan
6cf828d2fb
nvme: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-11-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: Keith Busch <kbusch@kernel.org >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:58 -07:00
Easwar Hariharan
2c54b24fef
power: supply: da9030: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-10-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:58 -07:00
Easwar Hariharan
a877cd2a64
xfs: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-9-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: Darrick J. Wong <djwong@kernel.org >
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:58 -07:00
Easwar Hariharan
d5834614a4
ata: libata-zpodd: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-8-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: Damien Le Moal <dlemoal@kernel.org >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-17 12:16:58 -07:00
Easwar Hariharan
8ef9019ed2
btrfs: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-5-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: David Sterba <dsterba@suse.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:16 -07:00
Easwar Hariharan
344825e17c
ALSA: ac97: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-4-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Acked-by: Takashi Iwai <tiwai@suse.de >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:16 -07:00
Easwar Hariharan
78cf56f883
accel/habanalabs: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies
+secs_to_jiffies
(E
- * \( 1000 \| MSEC_PER_SEC \)
)
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-3-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:16 -07:00
Easwar Hariharan
84c34d0105
scsi: lpfc: convert timeouts to secs_to_jiffies()
...
Commit b35108a51c ("jiffies: Define secs_to_jiffies()") introduced
secs_to_jiffies(). As the value here is a multiple of 1000, use
secs_to_jiffies() instead of msecs_to_jiffies() to avoid the
multiplication
This is converted using scripts/coccinelle/misc/secs_to_jiffies.cocci with
the following Coccinelle rules:
@depends on patch@
expression E;
@@
-msecs_to_jiffies(E * 1000)
+secs_to_jiffies(E)
-msecs_to_jiffies(E * MSEC_PER_SEC)
+secs_to_jiffies(E)
While here, convert some timeouts that are denominated in seconds
manually.
[akpm@linux-foundation.org: fix build]
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-2-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Cc: Mark Brown <broonie@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Xiubo Li <xiubli@redhat.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Easwar Hariharan
15c200eaf5
coccinelle: misc: secs_to_jiffies: Patch expressions too
...
Patch series "Converge on using secs_to_jiffies() part two", v3.
This is the second series that converts users of msecs_to_jiffies() that
either use the multiply pattern of either of:
- msecs_to_jiffies(N*1000) or
- msecs_to_jiffies(N*MSEC_PER_SEC)
where N is a constant or an expression, to avoid the multiplication.
The conversion is made with Coccinelle with the secs_to_jiffies() script
in scripts/coccinelle/misc. Attention is paid to what the best change can
be rather than restricting to what the tool provides.
This patch (of 16):
Teach the script to suggest conversions for timeout patterns where the
arguments to msecs_to_jiffies() are expressions as well.
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-0-a43967e36c88@linux.microsoft.com
Link: https://lkml.kernel.org/r/20250225-converge-secs-to-jiffies-part-two-v3-1-a43967e36c88@linux.microsoft.com
Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Carlos Maiolino <cem@kernel.org >
Cc: Chris Mason <clm@fb.com >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Damien Le Maol <dlemoal@kernel.org >
Cc: "Darrick J. Wong" <djwong@kernel.org >
Cc: David Sterba <dsterba@suse.com >
Cc: Dick Kennedy <dick.kennedy@broadcom.com >
Cc: Dongsheng Yang <dongsheng.yang@easystack.cn >
Cc: Fabio Estevam <festevam@gmail.com >
Cc: Frank Li <frank.li@nxp.com >
Cc: Hans de Goede <hdegoede@redhat.com >
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com >
Cc: Ilya Dryomov <idryomov@gmail.com >
Cc: James Bottomley <james.bottomley@HansenPartnership.com >
Cc: James Smart <james.smart@broadcom.com >
Cc: Jaroslav Kysela <perex@perex.cz >
Cc: Jason Gunthorpe <jgg@ziepe.ca >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Josef Bacik <josef@toxicpanda.com >
Cc: Julia Lawall <julia.lawall@inria.fr >
Cc: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com >
Cc: Keith Busch <kbusch@kernel.org >
Cc: Leon Romanovsky <leon@kernel.org >
Cc: "Martin K. Petersen" <martin.petersen@oracle.com >
Cc: Nicolas Palix <nicolas.palix@imag.fr >
Cc: Niklas Cassel <cassel@kernel.org >
Cc: Oded Gabbay <ogabbay@kernel.org >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Sagi Grimberg <sagi@grimberg.me >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Selvin Thyparampil Xavier <selvin.xavier@broadcom.com >
Cc: Shawn Guo <shawnguo@kernel.org >
Cc: Shyam-sundar S-k <Shyam-sundar.S-k@amd.com >
Cc: Takashi Iwai <tiwai@suse.com >
Cc: Xiubo Li <xiubli@redhat.com >
Cc: Carlos Maiolino <cmaiolino@redhat.com >
Cc: Marc Kleine-Budde <mkl@pengutronix.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Zijun Hu
ede7cd607a
cpu: remove needless return in void API suspend_enable_secondary_cpus()
...
Remove needless 'return' in void API suspend_enable_secondary_cpus() since
both the API and thaw_secondary_cpus() are void functions.
Link: https://lkml.kernel.org/r/20250221-rmv_return-v1-2-cc8dff275827@quicinc.com
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Zijun Hu
758502918e
rhashtable: remove needless return in three void APIs
...
Remove needless 'return' in the following void APIs:
rhltable_walk_enter()
rhltable_free_and_destroy()
rhltable_destroy()
Since both the API and callee involved are void functions.
Link: https://lkml.kernel.org/r/20250221-rmv_return-v1-16-cc8dff275827@quicinc.com
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Brendan Jackman
4022918876
scripts/gdb: add $lx_per_cpu_ptr()
...
We currently have $lx_per_cpu() which works fine for stuff that kernel
code would access via per_cpu(). But this doesn't work for stuff that
kernel code accesses via per_cpu_ptr():
(gdb) p $lx_per_cpu(node_data[1].node_zones[2]->per_cpu_pageset)
Cannot access memory at address 0xffff11105fbd6c28
This is because we take the address of the pointer and use that as the
offset, instead of using the stored value.
Add a GDB version that mirrors the kernel API, which uses the pointer
value.
To be consistent with per_cpu_ptr(), we need to return the pointer value
instead of dereferencing it for the user. Therefore, move the existing
dereference out of the per_cpu() Python helper and do that only in the
$lx_per_cpu() implementation.
Link: https://lkml.kernel.org/r/20250220-lx-per-cpu-ptr-v2-1-945dee8d8d38@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com >
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com >
Cc: Florian Rommel <mail@florommel.de >
Cc: Kieran Bingham <kbingham@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Hyeonggon Yoo
ee87af9824
MAINTAINERS: mailmap: update Hyeonggon's name and email address
...
Update my Korean name and personal email address to my English name and
Oracle email address.
Link: https://lkml.kernel.org/r/20250219071702.964344-1-42.hyeyoo@gmail.com
Signed-off-by: Hyeonggon Yoo (Oracle) <42.hyeyoo@gmail.com >
Acked-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com >
Cc: Dev Jain <dev.jain@arm.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Jarkko Sakkinen
fa34ce0ad9
mailmap: remove never used @parity.io email
...
As this employment lasted only four months and was never used over here,
let's just rip it off for good.
Link: https://lkml.kernel.org/r/20250218170557.68371-1-jarkko@kernel.org
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org >
Cc: Alex Elder <elder@kernel.org >
Cc: Antonio Quartulli <antonio@mandelbit.com >
Cc: Eugen Hristev <eugen.hristev@linaro.org >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Kees Cook <kees@kernel.org >
Cc: Mathieu Othacehe <othacehe@gnu.org >
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com >
Cc: Quentin Monnet <qmo@kernel.org >
Cc: Satya Priya Kakitapalli <quic_skakitap@quicinc.com >
Cc: Simon Wunderlich <sw@simonwunderlich.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:15 -07:00
Kuan-Wei Chiu
0ac451ecec
lib min_heap: use size_t for array size and index variables
...
Replace the int type with size_t for variables representing array sizes
and indices in the min-heap implementation. Using size_t aligns with
standard practices for size-related variables and avoids potential issues
on platforms where int may be insufficient to represent all valid sizes or
indices.
Link: https://lkml.kernel.org/r/20250215165618.1757219-1-visitorckw@gmail.com
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com >
Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw >
Cc: Yu-Chun Lin <eleanor15x@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
5e40d0d196
reboot: retire hw_protection_reboot and hw_protection_shutdown helpers
...
The hw_protection_reboot and hw_protection_shutdown functions mix
mechanism with policy: They let the driver requesting an emergency action
for hardware protection also decide how to deal with it.
This is inadequate in the general case as a driver reporting e.g. an
imminent power failure can't know whether a shutdown or a reboot would be
more appropriate for a given hardware platform.
With the addition of the hw_protection parameter, it's now possible to
configure at runtime the default emergency action and drivers are expected
to use hw_protection_trigger to have this parameter dictate policy.
As no current users of either hw_protection_shutdown or
hw_protection_shutdown helpers remain, remove them, as not to tempt driver
authors to call them.
Existing users now either defer to hw_protection_trigger or call
__hw_protection_trigger with a suitable argument directly when they have
inside knowledge on whether a reboot or shutdown would be more
appropriate.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-12-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
941a07cad2
thermal: core: allow user configuration of hardware protection action
...
In the general case, we don't know which of system shutdown or reboot is
the better action to take to protect hardware in an emergency situation.
We thus allow the policy to come from the device-tree in the form of an
optional critical-action OF property, but so far there was no way for the
end user to configure this.
With recent addition of the hw_protection parameter, the user can now
choose a default action for the case, where the driver isn't fully sure
what's the better course of action.
Let's make use of this by passing HWPROT_ACT_DEFAULT in absence of the
critical-action OF property.
As HWPROT_ACT_DEFAULT is shutdown by default, this introduces no
functional change for users, unless they start using the new parameter.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-11-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
738b785693
dt-bindings: thermal: give OS some leeway in absence of critical-action
...
An operating system may allow its user to configure the action to be
undertaken on critical overtemperature events.
However, the bindings currently mandate an absence of the critical-action
property to be equal to critical-action = "shutdown", which would mean any
differing user configuration would violate the bindings.
Resolve this by documenting the absence of the property to mean that the
OS gets to decide.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-10-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Acked-by: Rob Herring (Arm) <robh@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Cc: Tzung-Bi Shih <tzungbi@kernel.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
cd9beb9eb3
platform/chrome: cros_ec_lpc: prepare for hw_protection_shutdown removal
...
In the general case, a driver doesn't know which of system shutdown or
reboot is the better action to take to protect hardware in an emergency
situation. For this reason, hw_protection_shutdown is going to be removed
in favor of hw_protection_trigger, which defaults to shutdown, but may be
configured at kernel runtime to be a reboot instead.
The ChromeOS EC situation is different as we do know that shutdown is the
correct action as the EC is programmed to force reset after the short
period, thus replace hw_protection_shutdown with __hw_protection_trigger
with HWPROT_ACT_SHUTDOWN as argument to maintain the same behavior.
No functional change.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-9-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
b15388a2f0
regulator: allow user configuration of hardware protection action
...
When the core detects permanent regulator hardware failure or imminent
power failure of a critical supply, it will call hw_protection_shutdown in
an attempt to do a limited orderly shutdown followed by powering off the
system.
This doesn't work out well for many unattended embedded systems that don't
have support for shutdown and that power on automatically when power is
supplied:
- A brief power cycle gets detected by the driver
- The kernel powers down the system and SoC goes into shutdown mode
- Power is restored
- The system remains oblivious to the restored power
- System needs to be manually power cycled for a duration long enough
to drain the capacitors
Allow users to fix this by calling the newly introduced
hw_protection_trigger() instead: This way the hw_protection commandline or
sysfs parameter is used to dictate the policy of dealing with the
regulator fault.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-8-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
e016173f65
reboot: add support for configuring emergency hardware protection action
...
We currently leave the decision of whether to shutdown or reboot to
protect hardware in an emergency situation to the individual drivers.
This works out in some cases, where the driver detecting the critical
failure has inside knowledge: It binds to the system management controller
for example or is guided by hardware description that defines what to do.
In the general case, however, the driver detecting the issue can't know
what the appropriate course of action is and shouldn't be dictating the
policy of dealing with it.
Therefore, add a global hw_protection toggle that allows the user to
specify whether shutdown or reboot should be the default action when the
driver doesn't set policy.
This introduces no functional change yet as hw_protection_trigger() has no
callers, but these will be added in subsequent commits.
[arnd@arndb.de: hide unused hw_protection_attr]
Link: https://lkml.kernel.org/r/20250224141849.1546019-1-arnd@kernel.org
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-7-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:14 -07:00
Ahmad Fatoum
96201a8a98
reboot: indicate whether it is a HARDWARE PROTECTION reboot or shutdown
...
It currently depends on the caller, whether we attempt a hardware
protection shutdown (poweroff) or a reboot. A follow-up commit will make
this partially user-configurable, so it's a good idea to have the
emergency message clearly state whether the kernel is going for a reboot
or a shutdown.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-6-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Ahmad Fatoum
81cab0f94a
reboot: rename now misleading __hw_protection_shutdown symbols
...
The __hw_protection_shutdown function name has become misleading since it
can cause either a shutdown (poweroff) or a reboot depending on its
argument.
To avoid further confusion, let's rename it, so it doesn't suggest that a
poweroff is all it can do.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-5-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Ahmad Fatoum
aafb1245b2
reboot: describe do_kernel_restart's cmd argument in kernel-doc
...
A W=1 build rightfully complains about the function's kernel-doc being
incomplete.
Describe its single parameter to fix this.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-4-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Ahmad Fatoum
06eaeaee5b
docs: thermal: sync hardware protection doc with code
...
Originally, the thermal framework's only hardware protection action was to
trigger a shutdown. This has been changed a little over a year ago to
also support rebooting as alternative hardware protection action.
Update the documentation to reflect this.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-3-e1c09b090c0c@pengutronix.de
Fixes: 62e79e38b2 ("thermal/thermal_of: Allow rebooting after critical temp")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Ahmad Fatoum
bbf0ec4f57
reboot: reboot, not shutdown, on hw_protection_reboot timeout
...
hw_protection_shutdown() will kick off an orderly shutdown and if that
takes longer than a configurable amount of time, an emergency shutdown
will occur.
Recently, hw_protection_reboot() was added for those systems that don't
implement a proper shutdown and are better served by rebooting and having
the boot firmware worry about doing something about the critical
condition.
On timeout of the orderly reboot of hw_protection_reboot(), the system
would go into shutdown, instead of reboot. This is not a good idea, as
going into shutdown was explicitly not asked for.
Fix this by always doing an emergency reboot if hw_protection_reboot() is
called and the orderly reboot takes too long.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-2-e1c09b090c0c@pengutronix.de
Fixes: 79fa723ba8 ("reboot: Introduce thermal_zone_device_critical_reboot()")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: Benson Leung <bleung@chromium.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring (Arm) <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Ahmad Fatoum
318f05a057
reboot: replace __hw_protection_shutdown bool action parameter with an enum
...
Patch series "reboot: support runtime configuration of emergency
hw_protection action", v3.
We currently leave the decision of whether to shutdown or reboot to
protect hardware in an emergency situation to the individual drivers.
This works out in some cases, where the driver detecting the critical
failure has inside knowledge: It binds to the system management controller
for example or is guided by hardware description that defines what to do.
This is inadequate in the general case though as a driver reporting e.g.
an imminent power failure can't know whether a shutdown or a reboot would
be more appropriate for a given hardware platform.
To address this, this series adds a hw_protection kernel parameter and
sysfs toggle that can be used to change the action from the shutdown
default to reboot. A new hw_protection_trigger API then makes use of this
default action.
My particular use case is unattended embedded systems that don't have
support for shutdown and that power on automatically when power is
supplied:
- A brief power cycle gets detected by the driver
- The kernel powers down the system and SoC goes into shutdown mode
- Power is restored
- The system remains oblivious to the restored power
- System needs to be manually power cycled for a duration long enough
to drain the capacitors
With this series, such systems can configure the kernel with
hw_protection=reboot to have the boot firmware worry about critical
conditions.
This patch (of 12):
Currently __hw_protection_shutdown() either reboots or shuts down the
system according to its shutdown argument.
To make the logic easier to follow, both inside __hw_protection_shutdown
and at caller sites, lets replace the bool parameter with an enum.
This will be extra useful, when in a later commit, a third action is added
to the enumeration.
No functional change.
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-0-e1c09b090c0c@pengutronix.de
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-1-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de >
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org >
Cc: Benson Leung <bleung@chromium.org >
Cc: Mark Brown <broonie@kernel.org >
Cc: Daniel Lezcano <daniel.lezcano@linaro.org >
Cc: Fabio Estevam <festevam@denx.de >
Cc: Guenter Roeck <groeck@chromium.org >
Cc: Jonathan Corbet <corbet@lwn.net >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Lukasz Luba <lukasz.luba@arm.com >
Cc: Matteo Croce <teknoraver@meta.com >
Cc: Matti Vaittinen <mazziesaccount@gmail.com >
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Rob Herring <robh@kernel.org >
Cc: Rui Zhang <rui.zhang@intel.com >
Cc: Sascha Hauer <kernel@pengutronix.de >
Cc: "Serge E. Hallyn" <serge@hallyn.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Matthew Wilcox (Oracle)
bd0ee47da4
ocfs2: remove reference to bh->b_page
...
Buffer heads are attached to folios, not to pages. Also
flush_dcache_page() is now deprecated in favour of flush_dcache_folio().
Link: https://lkml.kernel.org/r/20250213214533.2242224-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:13 -07:00
Matthew Wilcox (Oracle)
dbc3b6320e
ocfs2: use memcpy_to_folio() in ocfs2_symlink_get_block()
...
Replace use of kmap_atomic() with the higher-level construct
memcpy_to_folio(). This removes a use of b_page and supports large folios
as well as being easier to understand. It also removes the check for
kmap_atomic() failing (because it can't).
Link: https://lkml.kernel.org/r/20250213214533.2242224-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org >
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Mark Tinguely <mark.tinguely@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Jun Piao <piaojun@huawei.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:12 -07:00
Vasiliy Kovalev
a406aff8c0
ocfs2: validate l_tree_depth to avoid out-of-bounds access
...
The l_tree_depth field is 16-bit (__le16), but the actual maximum depth is
limited to OCFS2_MAX_PATH_DEPTH.
Add a check to prevent out-of-bounds access if l_tree_depth has an invalid
value, which may occur when reading from a corrupted mounted disk [1].
Link: https://lkml.kernel.org/r/20250214084908.736528-1-kovalev@altlinux.org
Fixes: ccd979bdbc ("[PATCH] OCFS2: The Second Oracle Cluster Filesystem")
Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org >
Reported-by: syzbot+66c146268dc88f4341fd@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=66c146268dc88f4341fd [1]
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com >
Cc: Joel Becker <jlbec@evilplan.org >
Cc: Junxiao Bi <junxiao.bi@oracle.com >
Cc: Changwei Ge <gechangwei@live.cn >
Cc: Jun Piao <piaojun@huawei.com >
Cc: Kurt Hackel <kurt.hackel@oracle.com >
Cc: Mark Fasheh <mark@fasheh.com >
Cc: Vasiliy Kovalev <kovalev@altlinux.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 23:24:12 -07:00
Sebastian Andrzej Siewior
b4dc0bee2a
ucount: use rcuref_t for reference counting
...
Use rcuref_t for reference counting. This eliminates the cmpxchg loop in
the get and put path. This also eliminates the need to acquire the lock
in the put path because once the final user returns the reference, it can
no longer be obtained anymore.
Use rcuref_t for reference counting.
Link: https://lkml.kernel.org/r/20250203150525.456525-5-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Reviewed-by: Paul E. McKenney <paulmck@kernel.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Boqun Feng <boqun.feng@gmail.com >
Cc: Joel Fernandes <joel@joelfernandes.org >
Cc: Josh Triplett <josh@joshtriplett.org >
Cc: Lai jiangshan <jiangshanlai@gmail.com >
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com >
Cc: Mengen Sun <mengensun@tencent.com >
Cc: Steven Rostedt <rostedt@goodmis.org >
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com >
Cc: YueHong Wu <yuehongwu@tencent.com >
Cc: Zqiang <qiang.zhang1211@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 22:30:50 -07:00
Sebastian Andrzej Siewior
5f01a22c5b
ucount: use RCU for ucounts lookups
...
The ucounts element is looked up under ucounts_lock. This can be
optimized by using RCU for a lockless lookup and return and element if the
reference can be obtained.
Replace hlist_head with hlist_nulls_head which is RCU compatible. Let
find_ucounts() search for the required item within a RCU section and
return the item if a reference could be obtained. This means
alloc_ucounts() will always return an element (unless the memory
allocation failed). Let put_ucounts() RCU free the element if the
reference counter dropped to zero.
Link: https://lkml.kernel.org/r/20250203150525.456525-4-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Reviewed-by: Paul E. McKenney <paulmck@kernel.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Boqun Feng <boqun.feng@gmail.com >
Cc: Joel Fernandes <joel@joelfernandes.org >
Cc: Josh Triplett <josh@joshtriplett.org >
Cc: Lai jiangshan <jiangshanlai@gmail.com >
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com >
Cc: Mengen Sun <mengensun@tencent.com >
Cc: Steven Rostedt <rostedt@goodmis.org >
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com >
Cc: YueHong Wu <yuehongwu@tencent.com >
Cc: Zqiang <qiang.zhang1211@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 22:30:50 -07:00
Sebastian Andrzej Siewior
328152e677
ucount: replace get_ucounts_or_wrap() with atomic_inc_not_zero()
...
get_ucounts_or_wrap() increments the counter and if the counter is
negative then it decrements it again in order to reset the previous
increment. This statement can be replaced with atomic_inc_not_zero() to
only increment the counter if it is not yet 0.
This simplifies the get function because the put (if the get failed) can
be removed. atomic_inc_not_zero() is implement as a cmpxchg() loop which
can be repeated several times if another get/put is performed in parallel.
This will be optimized later.
Increment the reference counter only if not yet dropped to zero.
Link: https://lkml.kernel.org/r/20250203150525.456525-3-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Reviewed-by: Paul E. McKenney <paulmck@kernel.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Boqun Feng <boqun.feng@gmail.com >
Cc: Joel Fernandes <joel@joelfernandes.org >
Cc: Josh Triplett <josh@joshtriplett.org >
Cc: Lai jiangshan <jiangshanlai@gmail.com >
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com >
Cc: Mengen Sun <mengensun@tencent.com >
Cc: Steven Rostedt <rostedt@goodmis.org >
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com >
Cc: YueHong Wu <yuehongwu@tencent.com >
Cc: Zqiang <qiang.zhang1211@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 22:30:50 -07:00
Sebastian Andrzej Siewior
8c6bbda879
rcu: provide a static initializer for hlist_nulls_head
...
Patch series "ucount: Simplify refcounting with rcuref_t".
I noticed that the atomic_dec_and_lock_irqsave() in put_ucounts() loops
sometimes even during boot. Something like 2-3 iterations but still.
This series replaces the refcounting with rcuref_t and adds a RCU lookup.
This allows a lockless lookup in alloc_ucounts() if the entry is available
and a cmpxchg()less put of the item.
This patch (of 4):
Provide a static initializer for hlist_nulls_head so that it can be used
in statically defined data structures.
Link: https://lkml.kernel.org/r/20250203150525.456525-1-bigeasy@linutronix.de
Link: https://lkml.kernel.org/r/20250203150525.456525-2-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de >
Reviewed-by: Paul E. McKenney <paulmck@kernel.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Boqun Feng <boqun.feng@gmail.com >
Cc: Steven Rostedt <rostedt@goodmis.org >
Cc: Joel Fernandes <joel@joelfernandes.org >
Cc: Josh Triplett <josh@joshtriplett.org >
Cc: Lai jiangshan <jiangshanlai@gmail.com >
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com >
Cc: Mengen Sun <mengensun@tencent.com >
Cc: "Paul E . McKenney" <paulmck@kernel.org >
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com >
Cc: YueHong Wu <yuehongwu@tencent.com >
Cc: Zqiang <qiang.zhang1211@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 22:30:49 -07:00
Yury Norov
b115b6eccd
lib/zlib: drop EQUAL macro
...
The macro is prehistoric, and only exists to help those readers who don't
know what memcmp() returns if memory areas differ. This is pretty well
documented, so the macro looks excessive.
Now that the only user of the macro depends on DEBUG_ZLIB config, GCC
warns about unused macro if the library is built with W=2 against
defconfig. So drop it for good.
Link: https://lkml.kernel.org/r/20250205212933.68695-1-yury.norov@gmail.com
Signed-off-by: Yury Norov <yury.norov@gmail.com >
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org >
Reviewed-by: Mikhail Zaslonko <zaslonko@linux.ibm.com >
Cc: Heiko Carsten <heiko.carstens@de.ibm.com >
Cc: Ilya Leoshkevich <iii@linux.ibm.com >
Cc: Joe Perches <joe@perches.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 22:30:49 -07:00
Vlastimil Babka
6ba31721ae
get_maintainer: stop reporting subsystem status as maintainer role
...
After introducing the --substatus option, we can stop adjusting the
reported maintainer role by the subsystem's status.
For compatibility with the --git-chief-penguins option, keep the "chief
penguin" role.
Link: https://lkml.kernel.org/r/20250203-b4-get_maintainer-v2-2-83ba008b491f@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz >
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com >
Tested-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com >
Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org >
Cc: Joe Perches <joe@perches.com >
Cc: Kees Cook <kees@kernel.org >
Cc: Ted Ts'o <tytso@mit.edu >
Cc: Thorsten Leemhuis <linux@leemhuis.info >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-03-16 22:30:49 -07:00