Date: Sat, 30 Jan 2010 01:23:43 +1100 (EST) From: Bruce Evans <brde@optusnet.com.au> To: Randall Stewart <rrs@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r203149 - head/sys/mips/rmi Message-ID: <20100130011335.R77171@delplex.bde.org> In-Reply-To: <201001290403.o0T43avo045817@svn.freebsd.org> References: <201001290403.o0T43avo045817@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 29 Jan 2010, Randall Stewart wrote:
> Log:
> Move ID up into comment block.. per bsdimp
Any chance of fixing the ~10 other style bugs visible in this patch? There
are 6 new ones in this commit alone:
> Modified: head/sys/mips/rmi/pic.h
> ==============================================================================
> --- head/sys/mips/rmi/pic.h Fri Jan 29 03:35:01 2010 (r203148)
> +++ head/sys/mips/rmi/pic.h Fri Jan 29 04:03:36 2010 (r203149)
> @@ -25,14 +25,15 @@
> * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
> * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
> * SUCH DAMAGE.
> + * __FBSDID("$FreeBSD$");
1. Missing blank line before $FreeBSD$.
2. Using the __FBSDID() macro in a comment is nonsense.
3. Insertion sort error. $FreeBSD$ goes last in the copyright comment.
> *
> * RMI_BSD */
4. Block comments are not formatted like this in KNF.
> #ifndef _RMI_PIC_H_
> #define _RMI_PIC_H_
5. Space instead of tab after #define.
6. Missing blank line before whatever follws the idempotency ifndef/def.
> #include <sys/cdefs.h>
> -/*
> -__FBSDID("$FreeBSD$");
> -*/
> +
7. Extra blank line.
> +
8. Extra blank line.
> +
9. Extra blank line.
>
> extern int rmi_spin_mutex_safe;
10. KNF would indent this using a tab or two.
>
>
The 6 new style bugs are 1-3 and 7-9.
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100130011335.R77171>
