Skip to contentSkip to conversation

linux-next: manual merge of the pinctrl-intel tree with the origin tree

PATCH Mark Brown 2 participants 2 messages Nov 19

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi 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
diff --cc drivers/pinctrl/intel/pinctrl-intel.c
index 51a86975909cf,833640fc40b09..0000000000000
@@@ -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;
  
@@@ -1484,7 -1480,8 +1480,8 @@@ static int intel_pinctrl_add_padgroups_
  	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;
  
@@@ -1514,9 -1511,8 +1511,8 @@@ static int intel_pinctrl_pm_init(struc
  	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;
  
@@@ -1580,9 -1576,9 +1576,9 @@@ int intel_pinctrl_probe(struct platform
  {
  	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;
  
#1 lore raw
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.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")

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