linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] fix double ;;s in code
       [not found] ` <187435d4-5017-edb5-9b6a-b433a148bfcc@c-s.fr>
@ 2018-02-19 15:41   ` Daniel Vetter
       [not found]     ` <20180219193312.GA3709@amd>
       [not found]     ` <20180219154135.GV22199-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Vetter @ 2018-02-19 15:41 UTC (permalink / raw)
  To: Christophe LEROY
  Cc: daniel.lezcano, narmstrong, airlied, Alexey.Brodkin, will.deacon,
	fbarrat, kernel list, paulus, yamada.masahiro, mhocko,
	viresh.kumar, Pavel Machek, hpa, JinHuiEric.Huang, Rex.Zhu,
	elfring, scott.bauer, linux-arm-kernel, mpe, x86, Wenjing.Liu,
	linux, amd-gfx, Ding.Wang, aik, wens, mingo, vbabka,
	catalin.marinas, airlied, ruscur, shli, dan.carpenter, andresx7,
	linux-arm-msm, linux-efi, alistair, linuxppc-dev

On Sun, Feb 18, 2018 at 11:00:56AM +0100, Christophe LEROY wrote:
> 
> 
> Le 17/02/2018 à 22:19, Pavel Machek a écrit :
> > 
> > Fix double ;;'s in code.
> > 
> > Signed-off-by: Pavel Machek <pavel@ucw.cz>
> 
> A summary of the files modified on top of the patch would help understand
> the impact.
> 
> A maybe there should be one patch by area, eg one for each arch specific
> modif and one for drivers/ and one for block/ ?

Yeah, pls split this into one patch per area, with a suitable patch
subject prefix. Look at git log of each file to get a feeling for what's
the standard in each area.

Then scripts/get_maintainers.pl will also give you a more focues list of
relevant people for each part.
-Daniel

> 
> Christophe
> 
> > 
> > diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
> > index 9d27331..ec12fe1 100644
> > --- a/arch/arc/kernel/setup.c
> > +++ b/arch/arc/kernel/setup.c
> > @@ -373,7 +373,7 @@ static void arc_chk_core_config(void)
> >   {
> >   	struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()];
> >   	int saved = 0, present = 0;
> > -	char *opt_nm = NULL;;
> > +	char *opt_nm = NULL;
> >   	if (!cpu->extn.timer0)
> >   		panic("Timer0 is not present!\n");
> > diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
> > index 333daab..183391d 100644
> > --- a/arch/arc/kernel/unwind.c
> > +++ b/arch/arc/kernel/unwind.c
> > @@ -366,7 +366,7 @@ static void init_unwind_hdr(struct unwind_table *table,
> >   	return;
> >   ret_err:
> > -	panic("Attention !!! Dwarf FDE parsing errors\n");;
> > +	panic("Attention !!! Dwarf FDE parsing errors\n");
> >   }
> >   #ifdef CONFIG_MODULES
> > diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c
> > index 629f8e9..cf2701c 100644
> > --- a/arch/arm/kernel/time.c
> > +++ b/arch/arm/kernel/time.c
> > @@ -83,7 +83,7 @@ static void dummy_clock_access(struct timespec64 *ts)
> >   }
> >   static clock_access_fn __read_persistent_clock = dummy_clock_access;
> > -static clock_access_fn __read_boot_clock = dummy_clock_access;;
> > +static clock_access_fn __read_boot_clock = dummy_clock_access;
> >   void read_persistent_clock64(struct timespec64 *ts)
> >   {
> > diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
> > index 6618036..9ae31f7 100644
> > --- a/arch/arm64/kernel/ptrace.c
> > +++ b/arch/arm64/kernel/ptrace.c
> > @@ -1419,7 +1419,7 @@ static int compat_ptrace_hbp_get(unsigned int note_type,
> >   	u64 addr = 0;
> >   	u32 ctrl = 0;
> > -	int err, idx = compat_ptrace_hbp_num_to_idx(num);;
> > +	int err, idx = compat_ptrace_hbp_num_to_idx(num);
> >   	if (num & 1) {
> >   		err = ptrace_hbp_get_addr(note_type, tsk, idx, &addr);
> > diff --git a/arch/powerpc/kvm/book3s_xive.c b/arch/powerpc/kvm/book3s_xive.c
> > index f0f5cd4..f9818d7 100644
> > --- a/arch/powerpc/kvm/book3s_xive.c
> > +++ b/arch/powerpc/kvm/book3s_xive.c
> > @@ -188,7 +188,7 @@ static int xive_provision_queue(struct kvm_vcpu *vcpu, u8 prio)
> >   	if (!qpage) {
> >   		pr_err("Failed to allocate queue %d for VCPU %d\n",
> >   		       prio, xc->server_num);
> > -		return -ENOMEM;;
> > +		return -ENOMEM;
> >   	}
> >   	memset(qpage, 0, 1 << xive->q_order);
> > diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
> > index 496e476..a6c92c7 100644
> > --- a/arch/powerpc/platforms/powernv/pci-ioda.c
> > +++ b/arch/powerpc/platforms/powernv/pci-ioda.c
> > @@ -1854,7 +1854,7 @@ static int pnv_pci_ioda_dma_set_mask(struct pci_dev *pdev, u64 dma_mask)
> >   	s64 rc;
> >   	if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE))
> > -		return -ENODEV;;
> > +		return -ENODEV;
> >   	pe = &phb->ioda.pe_array[pdn->pe_number];
> >   	if (pe->tce_bypass_enabled) {
> > diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
> > index 353e20c..886a911 100644
> > --- a/arch/x86/boot/compressed/eboot.c
> > +++ b/arch/x86/boot/compressed/eboot.c
> > @@ -439,7 +439,7 @@ setup_uga32(void **uga_handle, unsigned long size, u32 *width, u32 *height)
> >   	struct efi_uga_draw_protocol *uga = NULL, *first_uga;
> >   	efi_guid_t uga_proto = EFI_UGA_PROTOCOL_GUID;
> >   	unsigned long nr_ugas;
> > -	u32 *handles = (u32 *)uga_handle;;
> > +	u32 *handles = (u32 *)uga_handle;
> >   	efi_status_t status = EFI_INVALID_PARAMETER;
> >   	int i;
> > @@ -484,7 +484,7 @@ setup_uga64(void **uga_handle, unsigned long size, u32 *width, u32 *height)
> >   	struct efi_uga_draw_protocol *uga = NULL, *first_uga;
> >   	efi_guid_t uga_proto = EFI_UGA_PROTOCOL_GUID;
> >   	unsigned long nr_ugas;
> > -	u64 *handles = (u64 *)uga_handle;;
> > +	u64 *handles = (u64 *)uga_handle;
> >   	efi_status_t status = EFI_INVALID_PARAMETER;
> >   	int i;
> > diff --git a/block/sed-opal.c b/block/sed-opal.c
> > index 9ed51d0c..e4929ee 100644
> > --- a/block/sed-opal.c
> > +++ b/block/sed-opal.c
> > @@ -490,7 +490,7 @@ static int opal_discovery0_end(struct opal_dev *dev)
> >   	if (!found_com_id) {
> >   		pr_debug("Could not find OPAL comid for device. Returning early\n");
> > -		return -EOPNOTSUPP;;
> > +		return -EOPNOTSUPP;
> >   	}
> >   	dev->comid = comid;
> > diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
> > index a04808a..65e18c8 100644
> > --- a/drivers/clocksource/mips-gic-timer.c
> > +++ b/drivers/clocksource/mips-gic-timer.c
> > @@ -205,12 +205,12 @@ static int __init gic_clocksource_of_init(struct device_node *node)
> >   	} else if (of_property_read_u32(node, "clock-frequency",
> >   					&gic_frequency)) {
> >   		pr_err("GIC frequency not specified.\n");
> > -		return -EINVAL;;
> > +		return -EINVAL;
> >   	}
> >   	gic_timer_irq = irq_of_parse_and_map(node, 0);
> >   	if (!gic_timer_irq) {
> >   		pr_err("GIC timer IRQ not specified.\n");
> > -		return -EINVAL;;
> > +		return -EINVAL;
> >   	}
> >   	ret = __gic_clocksource_init();
> > diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c
> > index 2a3fe83..3b56ea3 100644
> > --- a/drivers/clocksource/timer-sun5i.c
> > +++ b/drivers/clocksource/timer-sun5i.c
> > @@ -334,7 +334,7 @@ static int __init sun5i_timer_init(struct device_node *node)
> >   	timer_base = of_io_request_and_map(node, 0, of_node_full_name(node));
> >   	if (IS_ERR(timer_base)) {
> >   		pr_err("Can't map registers\n");
> > -		return PTR_ERR(timer_base);;
> > +		return PTR_ERR(timer_base);
> >   	}
> >   	irq = irq_of_parse_and_map(node, 0);
> > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> > index 61e8c3e..33d91e4 100644
> > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> > @@ -718,7 +718,7 @@ static enum link_training_result perform_channel_equalization_sequence(
> >   	uint32_t retries_ch_eq;
> >   	enum dc_lane_count lane_count = lt_settings->link_settings.lane_count;
> >   	union lane_align_status_updated dpcd_lane_status_updated = {{0}};
> > -	union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] = {{{0}}};;
> > +	union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] = {{{0}}};
> >   	hw_tr_pattern = get_supported_tp(link);
> > diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> > index 4c3223a..adb6e7b 100644
> > --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> > +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> > @@ -162,7 +162,7 @@ static int pp_hw_init(void *handle)
> >   		if(hwmgr->smumgr_funcs->start_smu(pp_handle->hwmgr)) {
> >   			pr_err("smc start failed\n");
> >   			hwmgr->smumgr_funcs->smu_fini(pp_handle->hwmgr);
> > -			return -EINVAL;;
> > +			return -EINVAL;
> >   		}
> >   		if (ret == PP_DPM_DISABLED)
> >   			goto exit;
> > diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
> > index 3e9bba4..6d8e3a9 100644
> > --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
> > +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
> > @@ -680,7 +680,7 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev)
> >   	} else {
> >   		dev_info(&pdev->dev,
> >   			 "no iommu, fallback to phys contig buffers for scanout\n");
> > -		aspace = NULL;;
> > +		aspace = NULL;
> >   	}
> >   	pm_runtime_put_sync(&pdev->dev);
> > diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c b/drivers/gpu/drm/scheduler/gpu_scheduler.c
> > index 2c18996..0d95888 100644
> > --- a/drivers/gpu/drm/scheduler/gpu_scheduler.c
> > +++ b/drivers/gpu/drm/scheduler/gpu_scheduler.c
> > @@ -461,7 +461,7 @@ void drm_sched_hw_job_reset(struct drm_gpu_scheduler *sched, struct drm_sched_jo
> >   {
> >   	struct drm_sched_job *s_job;
> >   	struct drm_sched_entity *entity, *tmp;
> > -	int i;;
> > +	int i;
> >   	spin_lock(&sched->job_list_lock);
> >   	list_for_each_entry_reverse(s_job, &sched->ring_mirror_list, node) {
> > diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
> > index 35a408d..99bc9bd 100644
> > --- a/drivers/iommu/intel-svm.c
> > +++ b/drivers/iommu/intel-svm.c
> > @@ -205,7 +205,7 @@ static void intel_flush_svm_range_dev (struct intel_svm *svm, struct intel_svm_d
> >   			 * for example, an "address" value of 0x12345f000 will
> >   			 * flush from 0x123440000 to 0x12347ffff (256KiB). */
> >   			unsigned long last = address + ((unsigned long)(pages - 1) << VTD_PAGE_SHIFT);
> > -			unsigned long mask = __rounddown_pow_of_two(address ^ last);;
> > +			unsigned long mask = __rounddown_pow_of_two(address ^ last);
> >   			desc.high = QI_DEV_EIOTLB_ADDR((address & ~mask) | (mask - 1)) | QI_DEV_EIOTLB_SIZE;
> >   		} else {
> > diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
> > index b2eae33..f978edd 100644
> > --- a/drivers/md/raid1.c
> > +++ b/drivers/md/raid1.c
> > @@ -1108,7 +1108,7 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio,
> >   	bio_copy_data(behind_bio, bio);
> >   skip_copy:
> > -	r1_bio->behind_master_bio = behind_bio;;
> > +	r1_bio->behind_master_bio = behind_bio;
> >   	set_bit(R1BIO_BehindIO, &r1_bio->state);
> >   	return;
> > diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
> > index 53f7275..cfb42f5 100644
> > --- a/drivers/soc/imx/gpc.c
> > +++ b/drivers/soc/imx/gpc.c
> > @@ -348,7 +348,7 @@ static int imx_gpc_old_dt_init(struct device *dev, struct regmap *regmap,
> >   		if (i == 1) {
> >   			domain->supply = devm_regulator_get(dev, "pu");
> >   			if (IS_ERR(domain->supply))
> > -				return PTR_ERR(domain->supply);;
> > +				return PTR_ERR(domain->supply);
> >   			ret = imx_pgc_get_clocks(dev, domain);
> >   			if (ret)
> > 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] fix double ;;s in code
       [not found]     ` <20180219193312.GA3709@amd>
@ 2018-02-20  1:25       ` Rob Clark
       [not found]       ` <87o9kkcck3.fsf@intel.com>
  1 sibling, 0 replies; 9+ messages in thread
From: Rob Clark @ 2018-02-20  1:25 UTC (permalink / raw)
  To: Pavel Machek
  Cc: daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A, Heiko Stuebner,
	narmstrong-rdvid1DuHRBWk0Htik3J/w, David Airlie,
	Benjamin Herrenschmidt, Linus Walleij, Alexey Brodkin,
	Will Deacon, fbarrat-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	kernel list, paulus-mnsaURCQ41sdnm+yROfE0A, Masahiro Yamada,
	mhocko-IBi9RG/b67k, Viresh Kumar, hpa-YMNOUZJC4hwAvxtiuMwx3w,
	JinHuiEric.Huang-5C7GfCeVMHo, Rex.Zhu-5C7GfCeVMHo,
	SF Markus Elfring, scott.bauer-ral2JQCrhuEAvxtiuMwx3w,
	Chunming Zhou, Archit Taneja,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Michael Ellerman,
	list-Y9sIeH5OGRo@public.gmane.org:IOMMU DRIVERS <iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>, Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>, 

On Mon, Feb 19, 2018 at 2:33 PM, Pavel Machek <pavel@ucw.cz> wrote:
> On Mon 2018-02-19 16:41:35, Daniel Vetter wrote:
>> On Sun, Feb 18, 2018 at 11:00:56AM +0100, Christophe LEROY wrote:
>> >
>> >
>> > Le 17/02/2018 à 22:19, Pavel Machek a écrit :
>> > >
>> > > Fix double ;;'s in code.
>> > >
>> > > Signed-off-by: Pavel Machek <pavel@ucw.cz>
>> >
>> > A summary of the files modified on top of the patch would help understand
>> > the impact.
>> >
>> > A maybe there should be one patch by area, eg one for each arch specific
>> > modif and one for drivers/ and one for block/ ?
>>
>> Yeah, pls split this into one patch per area, with a suitable patch
>> subject prefix. Look at git log of each file to get a feeling for what's
>> the standard in each area.
>
> Yeah I can spend hour spliting it, and then people will ignore it
> anyway.
>
> If you care about one of the files being modified, please fix the
> bug, ";;" is a clear bug.
>
> If you don't care ... well I don't care either.
>
> drivers/gpu/ has four entries, i guess that's something for you.

fwiw, one of those four is dup of a patch that I've already pushed to
msm-next for drm/msm (which seems to be an argument for splitting up a
treewide patch.. which seems something quite scriptable, but up to you
whether you want to bother with that.. either way drm/msm is ;;-clean
now)

BR,
-R


>                                                                 Pavel
>
>> > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
>> > > index 61e8c3e..33d91e4 100644
>> > > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
>> > > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
>> > > @@ -718,7 +718,7 @@ static enum link_training_result perform_channel_equalization_sequence(
>> > >           uint32_t retries_ch_eq;
>> > >           enum dc_lane_count lane_count = lt_settings->link_settings.lane_count;
>> > >           union lane_align_status_updated dpcd_lane_status_updated = {{0}};
>> > > - union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] = {{{0}}};;
>> > > + union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] = {{{0}}};
>> > >           hw_tr_pattern = get_supported_tp(link);
>> > > diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
>> > > index 4c3223a..adb6e7b 100644
>> > > --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
>> > > +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
>> > > @@ -162,7 +162,7 @@ static int pp_hw_init(void *handle)
>> > >                   if(hwmgr->smumgr_funcs->start_smu(pp_handle->hwmgr)) {
>> > >                           pr_err("smc start failed\n");
>> > >                           hwmgr->smumgr_funcs->smu_fini(pp_handle->hwmgr);
>> > > -                 return -EINVAL;;
>> > > +                 return -EINVAL;
>> > >                   }
>> > >                   if (ret == PP_DPM_DISABLED)
>> > >                           goto exit;
>> > > diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
>> > > index 3e9bba4..6d8e3a9 100644
>> > > --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
>> > > +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
>> > > @@ -680,7 +680,7 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev)
>> > >           } else {
>> > >                   dev_info(&pdev->dev,
>> > >                            "no iommu, fallback to phys contig buffers for scanout\n");
>> > > -         aspace = NULL;;
>> > > +         aspace = NULL;
>> > >           }
>> > >           pm_runtime_put_sync(&pdev->dev);
>> > > diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler.c b/drivers/gpu/drm/scheduler/gpu_scheduler.c
>> > > index 2c18996..0d95888 100644
>> > > --- a/drivers/gpu/drm/scheduler/gpu_scheduler.c
>> > > +++ b/drivers/gpu/drm/scheduler/gpu_scheduler.c
>> > > @@ -461,7 +461,7 @@ void drm_sched_hw_job_reset(struct drm_gpu_scheduler *sched, struct drm_sched_jo
>> > >   {
>> > >           struct drm_sched_job *s_job;
>> > >           struct drm_sched_entity *entity, *tmp;
>> > > - int i;;
>> > > + int i;
>> > >           spin_lock(&sched->job_list_lock);
>> > >           list_for_each_entry_reverse(s_job, &sched->ring_mirror_list, node) {
>
> --
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno

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

* Re: [PATCH] fix double ;;s in code
       [not found]     ` <20180219154135.GV22199-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
@ 2018-02-20  6:19       ` Michael Ellerman
  2018-02-20 16:41         ` Joe Perches
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Ellerman @ 2018-02-20  6:19 UTC (permalink / raw)
  To: Daniel Vetter, Christophe LEROY
  Cc: daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
	heiko-4mtYJXux2i+zQB+pC5nmwQ, narmstrong-rdvid1DuHRBWk0Htik3J/w,
	airlied-cv59FeDIM0c, benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r,
	linus.walleij-QSEj5FYQhm4dnm+yROfE0A,
	Alexey.Brodkin-HKixBCOQz3hWk0Htik3J/w, will.deacon-5wv7dgnIgG8,
	fbarrat-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, kernel list,
	paulus-mnsaURCQ41sdnm+yROfE0A,
	yamada.masahiro-uWyLwvC0a2jby3iVrkZq2A, mhocko-IBi9RG/b67k,
	viresh.kumar-QSEj5FYQhm4dnm+yROfE0A, Pavel Machek,
	hpa-YMNOUZJC4hwAvxtiuMwx3w, JinHuiEric.Huang-5C7GfCeVMHo,
	Rex.Zhu-5C7GfCeVMHo, elfring-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f,
	scott.bauer-ral2JQCrhuEAvxtiuMwx3w, David1.Zhou-5C7GfCeVMHo,
	architt-sgV2jX0FEOL9JmXXK+q4OQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	joro-zLv9SwRftAIdnm+yROfE0A, x86-DgEjT+Ai2ygdnm+yROfE0A,
	Wenjing.Liu-5C7GfCeVMHo, linux-I+IVW8TIWO2tmTQ+vhA3Yw,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Ding.Wang-5C7GfCeVMHo,
	aik-sLpHqDYs0B2HXe+LvDLADg, wens-jdAy2FN1RRM,
	mingo-H+wXaHxf7aLQT0dZR+AlfA, vbabka-AlSwsSmVLrQ,
	catalin.marinas-5wv7dgnIgG8, airlied-H+wXaHxf7aLQT0dZR+AlfA,
	ruscur-3Su/lFKaw5ejKv3TNrM5DQ, shli-DgEjT+Ai2ygdnm+yROfE0A,
	dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA, andresx7@

Daniel Vetter <daniel@ffwll.ch> writes:
> On Sun, Feb 18, 2018 at 11:00:56AM +0100, Christophe LEROY wrote:
>> Le 17/02/2018 à 22:19, Pavel Machek a écrit :
>> > 
>> > Fix double ;;'s in code.
>> > 
>> > Signed-off-by: Pavel Machek <pavel@ucw.cz>
>> 
>> A summary of the files modified on top of the patch would help understand
>> the impact.
>> 
>> A maybe there should be one patch by area, eg one for each arch specific
>> modif and one for drivers/ and one for block/ ?
>
> Yeah, pls split this into one patch per area, with a suitable patch
> subject prefix. Look at git log of each file to get a feeling for what's
> the standard in each area.

This part is actually pretty annoying.

I hacked up a script (below) which seems to do a reasonable job in most
cases.

For this patch it gives:

  $ for f in $(git ls-files -m); do ./guess-prefix.py $f; done
  ARC: 
  ARC: 
  ARM: 
  arm64: ptrace: 
  KVM: PPC: 
  powerpc/powernv:
  x86/efi:
  block/sed-opal:
  clocksource: mips-gic: 
  clocksource/drivers/sun5i:
  drm/amd/display:
  drm/amd/powerplay:
  drm/msm/mdp5:
  drm: 
  iommu/vt-d:
  md: 
  soc: imx: gpc: 

I think those are correct except for:
 - "drm:" for "drivers/gpu/drm/scheduler" which has only a single commit.
 - "md:" for "drivers/md/raid1.c" which is tricked by inconsistent
    usage of "md: raid1:" and "md/raid1:".

But that seems like a reasonable hit rate.

Another approach would be to have a file that defines for each subsystem
what the preferred style is, but that is likely to be a PITA to
maintain.

cheers


#!/usr/bin/python3

import sys
import re
from subprocess import check_output
from collections import Counter

if len(sys.argv) != 2:
    print('Usage: %s <path>' % sys.argv[0], file=sys.stderr)
    sys.exit(1)

fname = sys.argv[1]

cmd = ['git', 'log', '--format=%s', '-n', '100', fname]
output = check_output(cmd).decode('utf-8')

ignore = ['License', 'Merge']

# Ordered list of patterns
patterns = [
    # Common style "foo/bar/baz: Fix the foo"
    re.compile('^([\w\-_]+: )+'),
    # Less common "foo bar baz: Fix the foo"
    re.compile('^([\w\-_]+:? )+: ')
]

words = []
for line in output.splitlines():
    prefix = line.split()[0]
    for patt in patterns:
        match = patt.search(line)
        if match:
            prefix = match.group(0)
            break

    if prefix in ignore:
        continue

    words.append(prefix)

# Warn if we didn't find many examples
if len(words) < 5:
    print("Warning: only found %d previous commits to guess from for" % len(words),
          fname, file=sys.stderr)

counts = Counter(words)
print(counts.most_common(1)[0][0])
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] fix double ;;s in code
       [not found]       ` <87o9kkcck3.fsf@intel.com>
@ 2018-02-20 16:34         ` Alex Deucher
  2018-02-20 23:47         ` Andrew Morton
  1 sibling, 0 replies; 9+ messages in thread
From: Alex Deucher @ 2018-02-20 16:34 UTC (permalink / raw)
  To: Jani Nikula
  Cc: daniel.lezcano, narmstrong, Dave Airlie, catalin.marinas,
	Alexey Brodkin, will.deacon, fbarrat, oleg, paulus,
	yamada.masahiro, mhocko, viresh.kumar, Pavel Machek,
	H. Peter Anvin, Eric Huang, Rex Zhu, SF Markus Elfring,
	scott.bauer, linux-arm-kernel, mpe, x86, Wenjing Liu,
	Russell King, amd-gfx list, Ding Wang, aik, wens, Ingo Molnar,
	vbabka, Dave Airlie, ruscur

On Tue, Feb 20, 2018 at 3:03 AM, Jani Nikula
<jani.nikula@linux.intel.com> wrote:
> On Mon, 19 Feb 2018, Pavel Machek <pavel@ucw.cz> wrote:
>> On Mon 2018-02-19 16:41:35, Daniel Vetter wrote:
>>> Yeah, pls split this into one patch per area, with a suitable patch
>>> subject prefix. Look at git log of each file to get a feeling for what's
>>> the standard in each area.
>>
>> Yeah I can spend hour spliting it, and then people will ignore it
>> anyway.
>>
>> If you care about one of the files being modified, please fix the
>> bug, ";;" is a clear bug.
>>
>> If you don't care ... well I don't care either.
>
> Look, if this causes just one conflict down the line because it touches
> the kernel all over the place, then IMO it already wasn't worth
> it. Merge conflicts are inevitable, but there's no reason to make life
> harder just to cater for a cleanup patch. It's not that important.
>
> Had it been split up, the drm parts would've been merged already.

FWIW, the amdgpu and scheduler changes have already been fixed for -next.

Alex

>
> BR,
> Jani.
>
> --
> Jani Nikula, Intel Open Source Technology Center
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] fix double ;;s in code
  2018-02-20  6:19       ` Michael Ellerman
@ 2018-02-20 16:41         ` Joe Perches
  0 siblings, 0 replies; 9+ messages in thread
From: Joe Perches @ 2018-02-20 16:41 UTC (permalink / raw)
  To: Michael Ellerman, Daniel Vetter, Christophe LEROY
  Cc: daniel.lezcano, heiko, narmstrong, airlied, benh, linus.walleij,
	Alexey.Brodkin, will.deacon, fbarrat, kernel list, paulus,
	yamada.masahiro, mhocko, viresh.kumar, Pavel Machek, hpa,
	JinHuiEric.Huang, Rex.Zhu, elfring, scott.bauer, David1.Zhou,
	architt, linux-arm-kernel, joro, x86, Wenjing.Liu, linux, amd-gfx,
	Ding.Wang, aik, wens, mingo, vbabka, catalin.marinas, airlied,
	ruscur, shli, dan.carpenter, andresx7@

On Tue, 2018-02-20 at 17:19 +1100, Michael Ellerman wrote:
> Daniel Vetter <daniel@ffwll.ch> writes:
> > On Sun, Feb 18, 2018 at 11:00:56AM +0100, Christophe LEROY wrote:
> > > Le 17/02/2018 à 22:19, Pavel Machek a écrit :
> > > > 
> > > > Fix double ;;'s in code.
> > > > 
> > > > Signed-off-by: Pavel Machek <pavel@ucw.cz>
> > > 
> > > A summary of the files modified on top of the patch would help understand
> > > the impact.
> > > 
> > > A maybe there should be one patch by area, eg one for each arch specific
> > > modif and one for drivers/ and one for block/ ?
> > 
> > Yeah, pls split this into one patch per area, with a suitable patch
> > subject prefix. Look at git log of each file to get a feeling for what's
> > the standard in each area.
> 
> This part is actually pretty annoying.
> 
> I hacked up a script (below) which seems to do a reasonable job in most
> cases.

Here was another suggestion from awhile ago
https://lkml.org/lkml/2010/11/16/245

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

* Re: [PATCH] fix double ;;s in code
       [not found]       ` <87o9kkcck3.fsf@intel.com>
  2018-02-20 16:34         ` Alex Deucher
@ 2018-02-20 23:47         ` Andrew Morton
  1 sibling, 0 replies; 9+ messages in thread
From: Andrew Morton @ 2018-02-20 23:47 UTC (permalink / raw)
  To: Jani Nikula
  Cc: daniel.lezcano, narmstrong, airlied, catalin.marinas,
	Alexey.Brodkin, will.deacon, fbarrat, oleg, paulus,
	yamada.masahiro, mhocko, viresh.kumar, Pavel Machek, hpa,
	JinHuiEric.Huang, Rex.Zhu, elfring, scott.bauer, linux-arm-kernel,
	mpe, x86, Wenjing.Liu, linux, amd-gfx, Ding.Wang, aik, wens,
	mingo, vbabka, airlied, ruscur, shli, dan.carpenter, andresx7,
	linux-arm-msm, axboe, linux-efi, alistair, linuxppc-dev

On Tue, 20 Feb 2018 10:03:56 +0200 Jani Nikula <jani.nikula@linux.intel.com> wrote:

> On Mon, 19 Feb 2018, Pavel Machek <pavel@ucw.cz> wrote:
> > On Mon 2018-02-19 16:41:35, Daniel Vetter wrote:
> >> Yeah, pls split this into one patch per area, with a suitable patch
> >> subject prefix. Look at git log of each file to get a feeling for what's
> >> the standard in each area.
> >
> > Yeah I can spend hour spliting it, and then people will ignore it
> > anyway.
> >
> > If you care about one of the files being modified, please fix the
> > bug, ";;" is a clear bug.
> >
> > If you don't care ... well I don't care either.
> 
> Look, if this causes just one conflict down the line because it touches
> the kernel all over the place, then IMO it already wasn't worth
> it. Merge conflicts are inevitable, but there's no reason to make life
> harder just to cater for a cleanup patch. It's not that important.
> 
> Had it been split up, the drm parts would've been merged already.

I just stage patches like this behind linux-next.  So if your stuff in
in -next, you'll never notice a thing.

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] fix double ;;s in code
       [not found] <20180217211955.GE9640@amd>
       [not found] ` <187435d4-5017-edb5-9b6a-b433a148bfcc@c-s.fr>
@ 2018-02-22  9:09 ` Shawn Guo
  2018-02-24  8:52   ` Pavel Machek
  1 sibling, 1 reply; 9+ messages in thread
From: Shawn Guo @ 2018-02-22  9:09 UTC (permalink / raw)
  To: Pavel Machek
  Cc: daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A,
	heiko-4mtYJXux2i+zQB+pC5nmwQ, narmstrong-rdvid1DuHRBWk0Htik3J/w,
	airlied-cv59FeDIM0c, benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r,
	linus.walleij-QSEj5FYQhm4dnm+yROfE0A,
	Alexey.Brodkin-HKixBCOQz3hWk0Htik3J/w, will.deacon-5wv7dgnIgG8,
	fbarrat-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, kernel list,
	paulus-mnsaURCQ41sdnm+yROfE0A,
	yamada.masahiro-uWyLwvC0a2jby3iVrkZq2A, mhocko-IBi9RG/b67k,
	viresh.kumar-QSEj5FYQhm4dnm+yROfE0A, hpa-YMNOUZJC4hwAvxtiuMwx3w,
	JinHuiEric.Huang-5C7GfCeVMHo,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	elfring-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f,
	scott.bauer-ral2JQCrhuEAvxtiuMwx3w, David1.Zhou-5C7GfCeVMHo,
	architt-sgV2jX0FEOL9JmXXK+q4OQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	mpe-Gsx/Oe8HsFggBc27wqDAHg, joro-zLv9SwRftAIdnm+yROfE0A,
	x86-DgEjT+Ai2ygdnm+yROfE0A, Wenjing.Liu-5C7GfCeVMHo,
	linux-I+IVW8TIWO2tmTQ+vhA3Yw,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Ding.Wang-5C7GfCeVMHo,
	aik-sLpHqDYs0B2HXe+LvDLADg, wens-jdAy2FN1RRM,
	mingo-H+wXaHxf7aLQT0dZR+AlfA, vbabka-AlSwsSmVLrQ,
	catalin.marinas-5wv7dgnIgG8, airlied-H+wXaHxf7aLQT0dZR+AlfA,
	ruscur-3Su/lFKaw5ejKv3TNrM5DQ, shli-DgEjT+Ai2ygdnm+yROfE0A,
	dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA

Hi Pavel,

On Sat, Feb 17, 2018 at 10:19:55PM +0100, Pavel Machek wrote:
...
> diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
> index 53f7275..cfb42f5 100644
> --- a/drivers/soc/imx/gpc.c
> +++ b/drivers/soc/imx/gpc.c
> @@ -348,7 +348,7 @@ static int imx_gpc_old_dt_init(struct device *dev, struct regmap *regmap,
>  		if (i == 1) {
>  			domain->supply = devm_regulator_get(dev, "pu");
>  			if (IS_ERR(domain->supply))
> -				return PTR_ERR(domain->supply);;
> +				return PTR_ERR(domain->supply);
>  
>  			ret = imx_pgc_get_clocks(dev, domain);
>  			if (ret)
> 

Considering the controversy how the changes should be merged, I'm going
to send a separate patch just for IMX GPC driver with a reported-by-you
tag.  Thanks for catching this.

Shawn
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] fix double ;;s in code
  2018-02-22  9:09 ` Shawn Guo
@ 2018-02-24  8:52   ` Pavel Machek
  2018-02-24  8:56     ` Shawn Guo
  0 siblings, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2018-02-24  8:52 UTC (permalink / raw)
  To: Shawn Guo
  Cc: daniel.lezcano, narmstrong, airlied, Alexey.Brodkin, will.deacon,
	fbarrat, kernel list, paulus, yamada.masahiro, mhocko,
	viresh.kumar, hpa, JinHuiEric.Huang, iommu, elfring, scott.bauer,
	linux-arm-kernel, mpe, x86, Wenjing.Liu, linux, amd-gfx,
	Ding.Wang, aik, wens, mingo, vbabka, catalin.marinas, airlied,
	ruscur, shli, dan.carpenter, andresx7, linux-arm-msm, linux-efi,
	alistair, linuxppc-dev


[-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --]

Hi!

> > diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
> > index 53f7275..cfb42f5 100644
> > --- a/drivers/soc/imx/gpc.c
> > +++ b/drivers/soc/imx/gpc.c
> > @@ -348,7 +348,7 @@ static int imx_gpc_old_dt_init(struct device *dev, struct regmap *regmap,
> >  		if (i == 1) {
> >  			domain->supply = devm_regulator_get(dev, "pu");
> >  			if (IS_ERR(domain->supply))
> > -				return PTR_ERR(domain->supply);;
> > +				return PTR_ERR(domain->supply);
> >  
> >  			ret = imx_pgc_get_clocks(dev, domain);
> >  			if (ret)
> > 
> 
> Considering the controversy how the changes should be merged, I'm going
> to send a separate patch just for IMX GPC driver with a reported-by-you
> tag.  Thanks for catching this.

That works for me.

Alternatively... Andrew Morton merged the patch to his -mm tree
(thanks!), so you don't need to take any action, and it will be
eventually fixed.

If you merge your own version of the patch, that's ok, too, since
Andrew will just drop his version.

Best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] fix double ;;s in code
  2018-02-24  8:52   ` Pavel Machek
@ 2018-02-24  8:56     ` Shawn Guo
  0 siblings, 0 replies; 9+ messages in thread
From: Shawn Guo @ 2018-02-24  8:56 UTC (permalink / raw)
  To: Pavel Machek
  Cc: daniel.lezcano, narmstrong, airlied, Alexey.Brodkin, will.deacon,
	fbarrat, kernel list, paulus, yamada.masahiro, mhocko,
	viresh.kumar, hpa, JinHuiEric.Huang, iommu, elfring, scott.bauer,
	linux-arm-kernel, mpe, x86, Wenjing.Liu, linux, amd-gfx,
	Ding.Wang, aik, wens, mingo, vbabka, catalin.marinas, airlied,
	ruscur, shli, dan.carpenter, andresx7, linux-arm-msm, linux-efi,
	alistair, linuxppc-dev

On Sat, Feb 24, 2018 at 09:52:27AM +0100, Pavel Machek wrote:
> Hi!
> 
> > > diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
> > > index 53f7275..cfb42f5 100644
> > > --- a/drivers/soc/imx/gpc.c
> > > +++ b/drivers/soc/imx/gpc.c
> > > @@ -348,7 +348,7 @@ static int imx_gpc_old_dt_init(struct device *dev, struct regmap *regmap,
> > >  		if (i == 1) {
> > >  			domain->supply = devm_regulator_get(dev, "pu");
> > >  			if (IS_ERR(domain->supply))
> > > -				return PTR_ERR(domain->supply);;
> > > +				return PTR_ERR(domain->supply);
> > >  
> > >  			ret = imx_pgc_get_clocks(dev, domain);
> > >  			if (ret)
> > > 
> > 
> > Considering the controversy how the changes should be merged, I'm going
> > to send a separate patch just for IMX GPC driver with a reported-by-you
> > tag.  Thanks for catching this.
> 
> That works for me.
> 
> Alternatively... Andrew Morton merged the patch to his -mm tree
> (thanks!), so you don't need to take any action, and it will be
> eventually fixed.

Okay, I'm dropping my patch from IMX tree.

Shawn
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2018-02-24  8:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20180217211955.GE9640@amd>
     [not found] ` <187435d4-5017-edb5-9b6a-b433a148bfcc@c-s.fr>
2018-02-19 15:41   ` [PATCH] fix double ;;s in code Daniel Vetter
     [not found]     ` <20180219193312.GA3709@amd>
2018-02-20  1:25       ` Rob Clark
     [not found]       ` <87o9kkcck3.fsf@intel.com>
2018-02-20 16:34         ` Alex Deucher
2018-02-20 23:47         ` Andrew Morton
     [not found]     ` <20180219154135.GV22199-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2018-02-20  6:19       ` Michael Ellerman
2018-02-20 16:41         ` Joe Perches
2018-02-22  9:09 ` Shawn Guo
2018-02-24  8:52   ` Pavel Machek
2018-02-24  8:56     ` Shawn Guo

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).