Re: (subset) [PATCH 00/34] address all -Wunused-const warnings
On Wed, 03 Apr 2024 10:06:18 +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Compilers traditionally warn for unused 'static' variables, but not > if they are constant. The reason here is a custom for C++ programmers > to define named constants as 'static const' variables in header files > instead of using macros or enums. > > [...] Applied, thanks! [09/34] power: rt9455: hide unused rt9455_boost_voltage_values commit: 452d8950db3e839aba1bb13bc5378f4bac11fa04 Best regards, -- Sebastian Reichel
Re: [PATCH v2 3/6] mm: replace vma->vm_flags direct modifications with modifier calls
Hi, On Wed, Jan 25, 2023 at 12:38:48AM -0800, Suren Baghdasaryan wrote: > Replace direct modifications to vma->vm_flags with calls to modifier > functions to be able to track flag changes and to keep vma locking > correctness. > > Signed-off-by: Suren Baghdasaryan > --- > [...] > drivers/hsi/clients/cmt_speech.c | 2 +- > 120 files changed, 188 insertions(+), 199 deletions(-) > [...] > diff --git a/drivers/hsi/clients/cmt_speech.c > b/drivers/hsi/clients/cmt_speech.c > index 8069f795c864..952a31e742a1 100644 > --- a/drivers/hsi/clients/cmt_speech.c > +++ b/drivers/hsi/clients/cmt_speech.c > @@ -1264,7 +1264,7 @@ static int cs_char_mmap(struct file *file, struct > vm_area_struct *vma) > if (vma_pages(vma) != 1) > return -EINVAL; > > - vma->vm_flags |= VM_IO | VM_DONTDUMP | VM_DONTEXPAND; > + set_vm_flags(vma, VM_IO | VM_DONTDUMP | VM_DONTEXPAND); > vma->vm_ops = _char_vm_ops; > vma->vm_private_data = file->private_data; > Acked-by: Sebastian Reichel -- Sebastian signature.asc Description: PGP signature
Re: [PATCH 000/606] i2c: Complete conversion to i2c_probe_new
Hi, On Fri, Nov 18, 2022 at 11:35:34PM +0100, Uwe Kleine-König wrote: > Hello, > > since commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() > call-back type") from 2016 there is a "temporary" alternative probe > callback for i2c drivers. > > This series completes all drivers to this new callback (unless I missed > something). It's based on current next/master. > A part of the patches depend on commit 662233731d66 ("i2c: core: > Introduce i2c_client_get_device_id helper function"), there is a branch that > you can pull into your tree to get it: > > https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git > i2c/client_device_id_helper-immutable > > I don't think it's feasable to apply this series in one go, so I ask the > maintainers of the changed files to apply via their tree. I guess it > will take a few kernel release iterations until all patch are in, but I > think a single tree creates too much conflicts. > > The last patch changes i2c_driver::probe, all non-converted drivers will > fail to compile then. So I hope the build bots will tell me about any > driver I missed to convert. This patch is obviously not for application > now. > > I dropped most individuals from the recipents of this mail to not > challenge the mail servers and mailing list filters too much. Sorry if > you had extra efforts to find this mail. > > Best regards > Uwe ... > power: supply: adp5061: Convert to i2c's .probe_new() > power: supply: bq2415x: Convert to i2c's .probe_new() > power: supply: bq24190: Convert to i2c's .probe_new() > power: supply: bq24257: Convert to i2c's .probe_new() > power: supply: bq24735: Convert to i2c's .probe_new() > power: supply: bq2515x: Convert to i2c's .probe_new() > power: supply: bq256xx: Convert to i2c's .probe_new() > power: supply: bq25890: Convert to i2c's .probe_new() > power: supply: bq25980: Convert to i2c's .probe_new() > power: supply: bq27xxx: Convert to i2c's .probe_new() > power: supply: ds2782: Convert to i2c's .probe_new() > power: supply: lp8727: Convert to i2c's .probe_new() > power: supply: ltc2941: Convert to i2c's .probe_new() > power: supply: ltc4162-l: Convert to i2c's .probe_new() > power: supply: max14656: Convert to i2c's .probe_new() > power: supply: max17040: Convert to i2c's .probe_new() > power: supply: max17042_battery: Convert to i2c's .probe_new() > power: supply: rt5033_battery: Convert to i2c's .probe_new() > power: supply: rt9455: Convert to i2c's .probe_new() > power: supply: sbs: Convert to i2c's .probe_new() > power: supply: sbs-manager: Convert to i2c's .probe_new() > power: supply: smb347: Convert to i2c's .probe_new() > power: supply: ucs1002: Convert to i2c's .probe_new() > power: supply: z2_battery: Convert to i2c's .probe_new() > [...] Thanks, I queued patches 513-536 to the power-supply subsystem. -- Sebastian signature.asc Description: PGP signature
Re: [PATCH v2 1/1] kernel.h: Split out panic and oops helpers
Hi, On Fri, Apr 09, 2021 at 01:02:50PM +0300, Andy Shevchenko wrote: > kernel.h is being used as a dump for all kinds of stuff for a long time. > Here is the attempt to start cleaning it up by splitting out panic and > oops helpers. > > There are several purposes of doing this: > - dropping dependency in bug.h > - dropping a loop by moving out panic_notifier.h > - unload kernel.h from something which has its own domain > > At the same time convert users tree-wide to use new headers, although > for the time being include new header back to kernel.h to avoid twisted > indirected includes for existing users. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Bjorn Andersson > Acked-by: Mike Rapoport > Acked-by: Corey Minyard > Acked-by: Christian Brauner > Acked-by: Arnd Bergmann > Acked-by: Kees Cook > Acked-by: Wei Liu > Acked-by: Rasmus Villemoes > Signed-off-by: Andrew Morton > --- > v2: > - fixed all errors with allmodconfig on x86_64 (Andrew) > - checked with allyesconfig on x86_64 > - additionally grepped source code for panic notifier list usage >and converted all users > - elaborated commit message (Luis) > - collected given tags (incl. Andrew's SoB, see below) > > I added Andrew's SoB since part of the fixes I took from him. Andrew, > feel free to amend or tell me how you want me to do. > > [...] > drivers/power/reset/ltc2952-poweroff.c| 1 + > [...] Acked-by: Sebastian Reichel -- Sebastian signature.asc Description: PGP signature
Re: [PATCH 05/13] timer: Remove init_timer_deferrable() in favor of timer_setup()
Hi, On Wed, Oct 04, 2017 at 04:26:59PM -0700, Kees Cook wrote: > This refactors the only users of init_timer_deferrable() to use > the new timer_setup() and from_timer(). Removes definition of > init_timer_deferrable(). [...] > drivers/hsi/clients/ssi_protocol.c | 32 > ---- Acked-by: Sebastian Reichel <s...@kernel.org> -- Sebastian signature.asc Description: PGP signature
Re: [PATCH] hsi: Build hsi_boardinfo.c into hsi core if enabled
Hi Andrew, On Tue, Jun 14, 2016 at 11:13:04AM -0500, Andrew F. Davis wrote: > If the HSI core is built as a module hsi_boardinfo may still > be built-in as its Kconfig type is bool, which can cause build > issues. Fix this by building this code into the HSI core when > enabled. > > Reported-by: kbuild test robot> Signed-off-by: Andrew F. Davis > --- > This build error seems to be due to Kconfig symbol CONFIG_HSI_BOARDINFO > being a bool but depending on a tristate (CONFIG_HSI). This is normally > okay when it is just a flag to enable a feature in source, but the > helper code file hsi_boardinfo.c is built as a separate entity when > enabled. This patch is probably how it was intended, and is more like > how others do this kind of thing. > > This patch should be applied before the parent patch: Thanks, I applied both patches. -- Sebastian signature.asc Description: PGP signature ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev