* [PATCH] fix double ;;s in code @ 2018-02-17 21:19 Pavel Machek 2018-02-18 10:00 ` Christophe LEROY ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: Pavel Machek @ 2018-02-17 21:19 UTC (permalink / raw) To: elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid [-- Attachment #1: Type: text/plain, Size: 9417 bytes --] Fix double ;;'s in code. Signed-off-by: Pavel Machek <pavel@ucw.cz> 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) -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-17 21:19 [PATCH] fix double ;;s in code Pavel Machek @ 2018-02-18 10:00 ` Christophe LEROY 2018-02-19 15:41 ` Daniel Vetter 2018-02-20 5:33 ` Vineet Gupta 2018-02-22 9:09 ` Shawn Guo 2 siblings, 1 reply; 14+ messages in thread From: Christophe LEROY @ 2018-02-18 10:00 UTC (permalink / raw) To: Pavel Machek, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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/ ? 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) > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-18 10:00 ` Christophe LEROY @ 2018-02-19 15:41 ` Daniel Vetter 2018-02-19 19:33 ` Pavel Machek 2018-02-20 6:19 ` Michael Ellerman 0 siblings, 2 replies; 14+ messages in thread From: Daniel Vetter @ 2018-02-19 15:41 UTC (permalink / raw) To: Christophe LEROY Cc: Pavel Machek, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-19 15:41 ` Daniel Vetter @ 2018-02-19 19:33 ` Pavel Machek 2018-02-20 1:25 ` Rob Clark 2018-02-20 8:03 ` Jani Nikula 2018-02-20 6:19 ` Michael Ellerman 1 sibling, 2 replies; 14+ messages in thread From: Pavel Machek @ 2018-02-19 19:33 UTC (permalink / raw) To: Christophe LEROY, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid [-- Attachment #1: Type: text/plain, Size: 3726 bytes --] 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. 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 [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-19 19:33 ` Pavel Machek @ 2018-02-20 1:25 ` Rob Clark 2018-02-20 8:03 ` Jani Nikula 1 sibling, 0 replies; 14+ messages in thread From: Rob Clark @ 2018-02-20 1:25 UTC (permalink / raw) To: Pavel Machek Cc: Christophe LEROY, SF Markus Elfring, kernel list, vgupta, Russell King - ARM Linux, oleg, Catalin Marinas, Will Deacon, paulus, Benjamin Herrenschmidt, Michael Ellerman, Ard Biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, Maxime Ripard, Chen-Yu Tsai, Alexander Deucher, Christian König, Chunming Zhou, David Airlie, list@263.net:IOMMU DRIVERS <iommu@lists.linux-foundation.org>, Joerg Roedel <joro@8bytes.org>, , Shaohua Li, shawnguo, kernel, Fabio Estevam, Andrew Morton, Alexey Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, Masahiro Yamada, Stephen Boyd, Viresh Kumar, Linus Walleij, Heiko Stuebner, aik, ruscur, david, fbarrat, alistair, Rob Herring, Joe Perches, Harry Wentland, Cheng, Tony, Wenjing.Liu, Dave Airlie, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, Dan Carpenter, Archit Taneja, narmstrong, Ville Syrjälä, Jordan Crouse, Aishwarya Pant, Noralf Trønnes, andresx7, Monk.Liu, Nicolai Hähnle, Grodzovsky, Andrey, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, list@263.net:IOMMU DRIVERS <iommu@lists.linux-foundation.org>, Joerg Roedel <joro@8bytes.org>, , linux-raid 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 =C3=A0 22:19, Pavel Machek a =C3=A9crit : >> > > >> > > 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 underst= and >> > the impact. >> > >> > A maybe there should be one patch by area, eg one for each arch specif= ic >> > 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/driv= ers/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 =3D lt_settings->link_settin= gs.lane_count; >> > > union lane_align_status_updated dpcd_lane_status_updated = =3D {{0}}; >> > > - union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] =3D {{{0}}};= ; >> > > + union lane_status dpcd_lane_status[LANE_COUNT_DP_MAX] =3D {{{0}}}; >> > > hw_tr_pattern =3D 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->h= wmgr); >> > > - return -EINVAL;; >> > > + return -EINVAL; >> > > } >> > > if (ret =3D=3D PP_DPM_DISABLED) >> > > goto exit; >> > > diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/d= rm/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 buffer= s for scanout\n"); >> > > - aspace =3D NULL;; >> > > + aspace =3D 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_sched= uler *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_lis= t, node) { > > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/b= log.html ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-19 19:33 ` Pavel Machek 2018-02-20 1:25 ` Rob Clark @ 2018-02-20 8:03 ` Jani Nikula 2018-02-20 16:34 ` Alex Deucher 2018-02-20 23:47 ` Andrew Morton 1 sibling, 2 replies; 14+ messages in thread From: Jani Nikula @ 2018-02-20 8:03 UTC (permalink / raw) To: Pavel Machek, Christophe LEROY, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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. BR, Jani. -- Jani Nikula, Intel Open Source Technology Center ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-20 8:03 ` Jani Nikula @ 2018-02-20 16:34 ` Alex Deucher 2018-02-20 23:47 ` Andrew Morton 1 sibling, 0 replies; 14+ messages in thread From: Alex Deucher @ 2018-02-20 16:34 UTC (permalink / raw) To: Jani Nikula Cc: Pavel Machek, Christophe LEROY, SF Markus Elfring, kernel list, vgupta, Russell King, oleg, catalin.marinas, will.deacon, paulus, Benjamin Herrenschmidt, mpe, ard.biesheuvel, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, Maxime Ripard, wens, Deucher, Alexander, Christian Koenig, Chunming Zhou, Dave Airlie, Rob Clark, Joerg Roedel, Shaohua Li, shawnguo, Sascha Hauer, fabio.estevam, Andrew Morton, Alexey Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, Joe Perches, Wentland, Harry, Cheng, Tony, Wenjing Liu, Dave Airlie, Ding Wang, Sylvia Tsai, Hersen Wu, Rex Zhu, Eric Huang, Dan Carpenter, Archit Taneja, narmstrong, Ville Syrjälä, Jordan Crouse, aishpant, Noralf Trønnes, Andres Rodriguez, monk.liu, Nicolai Hähnle, Andrey Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx list, Maling list - DRI developers, linux-arm-msm, freedreno, iommu, linux-raid 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-20 8:03 ` Jani Nikula 2018-02-20 16:34 ` Alex Deucher @ 2018-02-20 23:47 ` Andrew Morton 1 sibling, 0 replies; 14+ messages in thread From: Andrew Morton @ 2018-02-20 23:47 UTC (permalink / raw) To: Jani Nikula Cc: Pavel Machek, Christophe LEROY, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-19 15:41 ` Daniel Vetter 2018-02-19 19:33 ` Pavel Machek @ 2018-02-20 6:19 ` Michael Ellerman 2018-02-20 16:41 ` Joe Perches 1 sibling, 1 reply; 14+ messages in thread From: Michael Ellerman @ 2018-02-20 6:19 UTC (permalink / raw) To: Daniel Vetter, Christophe LEROY Cc: Pavel Machek, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid Daniel Vetter <daniel@ffwll.ch> writes: > On Sun, Feb 18, 2018 at 11:00:56AM +0100, Christophe LEROY wrote: >> Le 17/02/2018 =C3=A0 22:19, Pavel Machek a =C3=A9crit=C2=A0: >> >=20 >> > Fix double ;;'s in code. >> >=20 >> > Signed-off-by: Pavel Machek <pavel@ucw.cz> >>=20 >> A summary of the files modified on top of the patch would help understand >> the impact. >>=20 >> 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:=20 ARC:=20 ARM:=20 arm64: ptrace:=20 KVM: PPC:=20 powerpc/powernv: x86/efi: block/sed-opal: clocksource: mips-gic:=20 clocksource/drivers/sun5i: drm/amd/display: drm/amd/powerplay: drm/msm/mdp5: drm:=20 iommu/vt-d: md:=20 soc: imx: gpc:=20 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) !=3D 2: print('Usage: %s <path>' % sys.argv[0], file=3Dsys.stderr) sys.exit(1) fname =3D sys.argv[1] cmd =3D ['git', 'log', '--format=3D%s', '-n', '100', fname] output =3D check_output(cmd).decode('utf-8') ignore =3D ['License', 'Merge'] # Ordered list of patterns patterns =3D [ # Common style "foo/bar/baz: Fix the foo" re.compile('^([\w\-_]+: )+'), # Less common "foo bar baz: Fix the foo" re.compile('^([\w\-_]+:? )+: ') ] words =3D [] for line in output.splitlines(): prefix =3D line.split()[0] for patt in patterns: match =3D patt.search(line) if match: prefix =3D 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=3Dsys.stderr) counts =3D Counter(words) print(counts.most_common(1)[0][0]) ^ permalink raw reply [flat|nested] 14+ 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; 14+ messages in thread From: Joe Perches @ 2018-02-20 16:41 UTC (permalink / raw) To: Michael Ellerman, Daniel Vetter, Christophe LEROY Cc: Pavel Machek, elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-17 21:19 [PATCH] fix double ;;s in code Pavel Machek 2018-02-18 10:00 ` Christophe LEROY @ 2018-02-20 5:33 ` Vineet Gupta 2018-02-22 9:09 ` Shawn Guo 2 siblings, 0 replies; 14+ messages in thread From: Vineet Gupta @ 2018-02-20 5:33 UTC (permalink / raw) To: Pavel Machek, elfring, kernel list, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, shawnguo, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid Cc: Luis de Bethencourt [-- Attachment #1: Type: text/plain, Size: 1069 bytes --] On 02/17/2018 01:19 PM, Pavel Machek wrote: > Fix double ;;'s in code. > > Signed-off-by: Pavel Machek<pavel@ucw.cz> > > 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"); > } > I have a fix from Luis to same effect from Jan sitting in my for-curr Thx for it anyways. -Vineet [-- Attachment #2: Type: text/html, Size: 1523 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] fix double ;;s in code 2018-02-17 21:19 [PATCH] fix double ;;s in code Pavel Machek 2018-02-18 10:00 ` Christophe LEROY 2018-02-20 5:33 ` Vineet Gupta @ 2018-02-22 9:09 ` Shawn Guo 2018-02-24 8:52 ` Pavel Machek 2 siblings, 1 reply; 14+ messages in thread From: Shawn Guo @ 2018-02-22 9:09 UTC (permalink / raw) To: Pavel Machek Cc: elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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 ^ permalink raw reply [flat|nested] 14+ 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; 14+ messages in thread From: Pavel Machek @ 2018-02-24 8:52 UTC (permalink / raw) To: Shawn Guo Cc: elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid [-- Attachment #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 #2: Digital signature --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 14+ 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; 14+ messages in thread From: Shawn Guo @ 2018-02-24 8:56 UTC (permalink / raw) To: Pavel Machek Cc: elfring, kernel list, vgupta, linux, oleg, catalin.marinas, will.deacon, paulus, benh, mpe, ard.biesheuvel, tglx, mingo, hpa, x86, scott.bauer, jonathan.derrick, axboe, daniel.lezcano, maxime.ripard, wens, alexander.deucher, christian.koenig, David1.Zhou, airlied, robdclark, joro, shli, kernel, fabio.estevam, akpm, Alexey.Brodkin, mhocko, vbabka, Vladislav.Zakharov, noamca, yamada.masahiro, sboyd, viresh.kumar, linus.walleij, heiko, aik, ruscur, david, fbarrat, alistair, robh, joe, harry.wentland, tony.cheng, Wenjing.Liu, airlied, Ding.Wang, sylvia.tsai, hersenxs.wu, Rex.Zhu, JinHuiEric.Huang, dan.carpenter, architt, daniel.vetter, narmstrong, ville.syrjala, jcrouse, aishpant, noralf, andresx7, Monk.Liu, nicolai.haehnle, Andrey.Grodzovsky, linux-snps-arc, linux-arm-kernel, kvm-ppc, linuxppc-dev, linux-efi, linux-block, amd-gfx, dri-devel, linux-arm-msm, freedreno, iommu, linux-raid 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2018-02-24 8:56 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-17 21:19 [PATCH] fix double ;;s in code Pavel Machek 2018-02-18 10:00 ` Christophe LEROY 2018-02-19 15:41 ` Daniel Vetter 2018-02-19 19:33 ` Pavel Machek 2018-02-20 1:25 ` Rob Clark 2018-02-20 8:03 ` Jani Nikula 2018-02-20 16:34 ` Alex Deucher 2018-02-20 23:47 ` Andrew Morton 2018-02-20 6:19 ` Michael Ellerman 2018-02-20 16:41 ` Joe Perches 2018-02-20 5:33 ` Vineet Gupta 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).