All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Krufky <mkrufky@linuxtv.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH] dvb: remove coding style comments on indentation
Date: Sun, 25 Mar 2007 22:17:37 +0000	[thread overview]
Message-ID: <4606F501.2060504@linuxtv.org> (raw)
In-Reply-To: <4606E766.3090100@linuxtv.org>

Charles Clément wrote:
> On Sun, Mar 25, 2007 at 05:19:34PM -0400, Michael Krufky wrote:
>> Charles Clément wrote:
>>> Remove comments on setting indentation for emacs in bt8xx driver.
>> What do we gain by this patch?  The "c-basic-offset: 8" helps us
>> to enforce tabbing style.  Why would anybody want this removed?
>>
>> Regards,
>>
>> Mike Krufky
> 
> I agree that there is no benefit from the patch itself, but the
> Documentation/CodingStyle file already specifies the tabbing style.
> I do not think it should be included in multiple source files.
> 

Documentation/CodingStyle is the human-readable file that specifies
the codingstyle, but when I have bttv-cards.c open in emacs, the only
thing telling emacs to enforce codingstyle is the lines that you want
to remove.  Emacs doesn't look to Documentation/CodingStyle for
formatting rules -- only people look there.  I dont think it causes
any harm to keep these lines in the bottom of a source file -- I'm
against this removal.

-Michael Krufky

>>> Signed-off-by: Charles Clément <caratorn@gmail.com>
>>>
>>> ---
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bt832.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bt832.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bt832.c
>>> @@ -255,11 +255,3 @@ static void __exit bt832_cleanup_module(
>>>  
>>>  module_init(bt832_init_module);
>>>  module_exit(bt832_cleanup_module);
>>> -
>>> -/*
>>> - * Overrides for Emacs so that we follow Linus's tabbing style.
>>> - * ---------------------------------------------------------------------------
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-cards.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-cards.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-cards.c
>>> @@ -5044,10 +5044,3 @@ int __devinit bttv_handle_chipset(struct
>>>  		pci_write_config_byte(btv->c.pci, PCI_LATENCY_TIMER, latency);
>>>  	return 0;
>>>  }
>>> -
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-driver.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-driver.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-driver.c
>>> @@ -4981,9 +4981,3 @@ static void bttv_cleanup_module(void)
>>>  
>>>  module_init(bttv_init_module);
>>>  module_exit(bttv_cleanup_module);
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-gpio.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-gpio.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-gpio.c
>>> @@ -186,9 +186,3 @@ void bttv_gpio_bits(struct bttv_core *co
>>>  	spin_unlock_irqrestore(&btv->gpio_lock,flags);
>>>  }
>>>  EXPORT_SYMBOL(bttv_gpio_bits);
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv.h
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv.h
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv.h
>>> @@ -355,8 +355,3 @@ extern void bttv_input_fini(struct bttv 
>>>  extern void bttv_input_irq(struct bttv *dev);
>>>  
>>>  #endif /* _BTTV_H_ */
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-i2c.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-i2c.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-i2c.c
>>> @@ -481,9 +481,3 @@ int __devexit fini_bttv_i2c(struct bttv 
>>>  
>>>  	return i2c_del_adapter(&btv->c.i2c_adap);
>>>  }
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-if.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-if.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-if.c
>>> @@ -151,9 +151,3 @@ void bttv_i2c_call(unsigned int card, un
>>>  		return;
>>>  	bttv_call_i2c_clients(&bttvs[card], cmd, arg);
>>>  }
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-input.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-input.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-input.c
>>> @@ -348,10 +348,3 @@ void bttv_input_fini(struct bttv *btv)
>>>  	kfree(btv->remote);
>>>  	btv->remote = NULL;
>>>  }
>>> -
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttvp.h
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttvp.h
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttvp.h
>>> @@ -469,9 +469,3 @@ extern struct bttv bttvs[BTTV_MAX];
>>>  #define btaor(dat,mask,adr) btwrite((dat) | ((mask) & btread(adr)), adr)
>>>  
>>>  #endif /* _BTTVP_H_ */
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-risc.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-risc.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-risc.c
>>> @@ -894,9 +894,3 @@ bttv_overlay_risc(struct bttv *btv,
>>>  	buf->vb.field = ov->field;
>>>  	return 0;
>>>  }
>>> -
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>> Index: linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-vbi.c
>>> =================================>>> --- linux-2.6.21-rc4.orig/drivers/media/video/bt8xx/bttv-vbi.c
>>> +++ linux-2.6.21-rc4/drivers/media/video/bt8xx/bttv-vbi.c
>>> @@ -446,10 +446,3 @@ bttv_vbi_fmt_reset	(struct bttv_vbi_fmt 
>>>  	/* See bttv_vbi_fmt_set(). */
>>>  	f->end                  = tvnorm->vbistart[0] * 2 + 2;
>>>  }
>>> -
>>> -/* ----------------------------------------------------------------------- */
>>> -/*
>>> - * Local variables:
>>> - * c-basic-offset: 8
>>> - * End:
>>> - */
>>>
>> _______________________________________________
>> Kernel-janitors mailing list
>> Kernel-janitors@lists.linux-foundation.org
>> https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
> 

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2007-03-25 22:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-25 21:19 [KJ] [PATCH] dvb: remove coding style comments on indentation Michael Krufky
2007-03-25 21:35 ` Bernd Petrovitsch
2007-03-25 21:54 ` Michael Krufky
2007-03-25 21:56 ` Charles Clément
2007-03-25 22:16 ` Mike Isely
2007-03-25 22:17 ` Michael Krufky [this message]
2007-03-25 22:35 ` Bernd Petrovitsch
2007-03-25 23:28 ` Mike Isely
2007-03-26  0:06 ` hermann pitton
  -- strict thread matches above, loose matches on Subject: below --
2007-03-25 12:25 Charles Clément

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4606F501.2060504@linuxtv.org \
    --to=mkrufky@linuxtv.org \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.