Re: [PATCH] spi: Replace spi_pcpu_stats_totalize() macro by a C function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 28 Feb 2023 15:43:08 +0100, Geert Uytterhoeven wrote:
> spi_pcpu_stats_totalize() is a rather large macro, and is instantiated
> 28 times, causing a large amount of duplication in the amount of
> generated code.
> 
> Reduce the duplication by replacing spi_pcpu_stats_totalize() by a real
> C function, and absorb all other common code from
> spi_statistics_##name##_show().  As (a) the old "field" parameter was
> the name of a structure member, which cannot be passed to a function,
> and (b) passing a pointer to the member is also not an option, due to
> the loop over all possible CPUs, the "field" parameter is replaced by an
> "offset" parameter, pointing to a location within the structure.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: Replace spi_pcpu_stats_totalize() macro by a C function
      commit: fc12d4bb3227f21e1e7d6d78231074ca542c060d

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux