linux-next: manual merge of the pinctrl-intel tree with the origin tree
Subsystems (3)
Mark Brown
maintainerHi all,
Today's linux-next merge of the pinctrl-intel tree got a conflict in:
drivers/pinctrl/intel/pinctrl-intel.c
between commit:
4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family")
from the origin tree and commit:
34925b925793b ("pinctrl: intel: define iterator variables inside for-loop")
from the pinctrl-intel 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.
drivers/pinctrl/intel/pinctrl-intel.c +0 -0
@@@ -1437,10 -1434,10 +1434,10 @@@ static int intel_pinctrl_add_padgroups_ struct intel_community *community) {struct intel_padgroup *gpps; +unsigned int ngpps = community->ngpps;unsigned int padown_num =0 ; -size_t i, ngpps = community->ngpps; - gpps =devm_kcalloc (pctrl->dev, ngpps,sizeof (*gpps),GFP_KERNEL ); + gpps =devm_kzalloc_objs (pctrl->dev, *gpps, ngpps);if (!gpps)return -ENOMEM ;if (community->gpp_size >INTEL_PINCTRL_MAX_GPP_SIZE )return -EINVAL ; + ngpps =DIV_ROUND_UP (npins, community->gpp_size); - gpps =devm_kcalloc (pctrl->dev, ngpps,sizeof (*gpps),GFP_KERNEL ); + gpps =devm_kzalloc_objs (pctrl->dev, *gpps, ngpps);if (!gpps)return -ENOMEM ;const struct intel_pinctrl_soc_data *soc = pctrl->soc;struct intel_community_context *communities;struct intel_pad_context *pads; -int i; - pads =devm_kcalloc (pctrl->dev, soc->npins,sizeof (*pads),GFP_KERNEL ); + pads =devm_kzalloc_objs (pctrl->dev, *pads, soc->npins);if (!pads)return -ENOMEM ; {struct device *dev = &pdev->dev;struct intel_pinctrl *pctrl; -int i, ret, irq; +int ret, irq; - pctrl =devm_kzalloc (dev,sizeof (*pctrl),GFP_KERNEL ); + pctrl =devm_kzalloc_obj (dev, *pctrl);if (!pctrl)return -ENOMEM ;
Quoted 14 lines · Mark Brown
Hi all,
Today's linux-next merge of the pinctrl-intel tree got a conflict in:
drivers/pinctrl/intel/pinctrl-intel.cbetween commit:
4dd10fbbeb9c3("treewide: Convertdevm_kmalloc()family to thedevm_kmalloc_obj()family")from the origin tree and commit:
34925b925793b("pinctrl: intel: define iterator variables inside for-loop")
Quoted 8 lines
from the pinctrl-intel 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.
Thanks, it is correct resolution.
Signature · 2 lines
With Best Regards, Andy Shevchenko