* linux-next: manual merge of the mfd tree with the origin tree
@ 2026-11-09 14:14 Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-11-09 14:14 UTC (permalink / raw)
To: Lee Jones
Cc: Kees Cook, Kees Cook, Linux Kernel Mailing List,
Linux Next Mailing List, Rosen Penev
[-- Attachment #1: Type: text/plain, Size: 2025 bytes --]
Hi all,
Today's linux-next merge of the mfd tree got a conflict in:
drivers/mfd/twl-core.c
between commit:
4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family")
from the origin tree and commit:
88f84144a35f8 ("mfd: twl-core: Embed the twl_client array in twl_private")
from the mfd tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --combined drivers/mfd/twl-core.c
index 88296178f77e7,e5b79c9ffbba1..0000000000000
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@@ -153,13 -153,15 +153,15 @@@ struct twl_mapping
unsigned char base; /* base address */
};
+ #define TWL_MAX_SLAVES 4
+
struct twl_private {
bool ready; /* The core driver is ready to be used */
u32 twl_idcode; /* TWL IDCODE Register value */
unsigned int twl_id;
struct twl_mapping *twl_map;
- struct twl_client *twl_modules;
+ struct twl_client twl_modules[TWL_MAX_SLAVES];
};
static struct twl_private *twl_priv;
@@@ -770,7 -772,8 +772,7 @@@ twl_probe(struct i2c_client *client
goto out;
}
- twl_priv = devm_kzalloc(&client->dev, sizeof(struct twl_private),
- GFP_KERNEL);
+ twl_priv = devm_kzalloc_obj(&client->dev, struct twl_private);
if (!twl_priv) {
status = -ENOMEM;
goto out;
@@@ -787,13 -790,6 +789,6 @@@
}
num_slaves = twl_get_num_slaves();
- twl_priv->twl_modules = devm_kzalloc_objs(&client->dev,
- struct twl_client, num_slaves);
- if (!twl_priv->twl_modules) {
- status = -ENOMEM;
- goto out;
- }
-
for (i = 0; i < num_slaves; i++) {
struct twl_client *twl = &twl_priv->twl_modules[i];
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* linux-next: manual merge of the mfd tree with the origin tree
@ 2026-11-09 14:14 Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-11-09 14:14 UTC (permalink / raw)
To: Lee Jones
Cc: Cosmin Tanislav, Kees Cook, Kees Cook, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]
Hi all,
Today's linux-next merge of the mfd tree got a conflict in:
drivers/mfd/rz-mtu3.c
between commit:
4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family")
from the origin tree and commit:
9aac1f80c8784 ("mfd: rz-mtu3: Do not use struct rz_mtu3_channel::dev")
from the mfd tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --cc drivers/mfd/rz-mtu3.c
index 7e1313a57abc0,558ed3fbe5207..0000000000000
--- a/drivers/mfd/rz-mtu3.c
+++ b/drivers/mfd/rz-mtu3.c
@@@ -315,17 -291,16 +291,16 @@@ static int rz_mtu3_probe(struct platfor
struct rz_mtu3 *ddata;
struct reset_control *rstc;
unsigned int i;
+ int ret;
- ddata = devm_kzalloc(dev, sizeof(*ddata), GFP_KERNEL);
+ ddata = devm_kzalloc_obj(dev, *ddata);
if (!ddata)
return -ENOMEM;
- ddata->priv_data = devm_kzalloc_obj(dev, *priv);
- if (!ddata->priv_data)
- priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
++ priv = devm_kzalloc_obj(dev, *priv);
+ if (!priv)
return -ENOMEM;
- priv = ddata->priv_data;
-
priv->mmio = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(priv->mmio))
return PTR_ERR(priv->mmio);
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-09 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 14:14 linux-next: manual merge of the mfd tree with the origin tree Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2026-11-09 14:14 Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®