linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btintel: Constify static struct regmap_bus
@ 2022-03-30 22:32 Rikard Falkeborn
  2022-03-30 23:03 ` bluez.test.bot
  2022-04-01 17:30 ` [PATCH] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Rikard Falkeborn @ 2022-03-30 22:32 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz
  Cc: linux-bluetooth, linux-kernel, Rikard Falkeborn

The only usage of regmap_ibt is to (after the regmap_init() macro is
expanded), pass its address to __regmap_init(), which takes a pointer to
const struct regmap_bus as input. Make it const to allow the compiler to
put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
---
 drivers/bluetooth/btintel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
index 06514ed66022..818681c89db8 100644
--- a/drivers/bluetooth/btintel.c
+++ b/drivers/bluetooth/btintel.c
@@ -794,7 +794,7 @@ static void regmap_ibt_free_context(void *context)
 	kfree(context);
 }
 
-static struct regmap_bus regmap_ibt = {
+static const struct regmap_bus regmap_ibt = {
 	.read = regmap_ibt_read,
 	.write = regmap_ibt_write,
 	.gather_write = regmap_ibt_gather_write,
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: Bluetooth: btintel: Constify static struct regmap_bus
  2022-03-30 22:32 [PATCH] Bluetooth: btintel: Constify static struct regmap_bus Rikard Falkeborn
@ 2022-03-30 23:03 ` bluez.test.bot
  2022-04-01 17:30 ` [PATCH] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2022-03-30 23:03 UTC (permalink / raw)
  To: linux-bluetooth, rikard.falkeborn

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=627655

---Test result---

Test Summary:
CheckPatch                    PASS      1.62 seconds
GitLint                       PASS      0.98 seconds
SubjectPrefix                 PASS      0.87 seconds
BuildKernel                   PASS      33.48 seconds
BuildKernel32                 PASS      29.99 seconds
Incremental Build with patchesPASS      40.13 seconds
TestRunner: Setup             PASS      494.49 seconds
TestRunner: l2cap-tester      PASS      16.50 seconds
TestRunner: bnep-tester       PASS      6.43 seconds
TestRunner: mgmt-tester       PASS      106.51 seconds
TestRunner: rfcomm-tester     PASS      8.49 seconds
TestRunner: sco-tester        PASS      8.29 seconds
TestRunner: smp-tester        PASS      8.33 seconds
TestRunner: userchan-tester   PASS      6.81 seconds



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Bluetooth: btintel: Constify static struct regmap_bus
  2022-03-30 22:32 [PATCH] Bluetooth: btintel: Constify static struct regmap_bus Rikard Falkeborn
  2022-03-30 23:03 ` bluez.test.bot
@ 2022-04-01 17:30 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2022-04-01 17:30 UTC (permalink / raw)
  To: Rikard Falkeborn
  Cc: marcel, johan.hedberg, luiz.dentz, linux-bluetooth, linux-kernel

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Marcel Holtmann <marcel@holtmann.org>:

On Thu, 31 Mar 2022 00:32:52 +0200 you wrote:
> The only usage of regmap_ibt is to (after the regmap_init() macro is
> expanded), pass its address to __regmap_init(), which takes a pointer to
> const struct regmap_bus as input. Make it const to allow the compiler to
> put it in read-only memory.
> 
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
> 
> [...]

Here is the summary with links:
  - Bluetooth: btintel: Constify static struct regmap_bus
    https://git.kernel.org/bluetooth/bluetooth-next/c/30b0001fcdc1

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-01 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-30 22:32 [PATCH] Bluetooth: btintel: Constify static struct regmap_bus Rikard Falkeborn
2022-03-30 23:03 ` bluez.test.bot
2022-04-01 17:30 ` [PATCH] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).