linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux/fs/ufs/namei.c
@ 2003-09-11 14:03 Bob Tracy
  0 siblings, 0 replies; only message in thread
From: Bob Tracy @ 2003-09-11 14:03 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

The attached patch fixes a compilation problem (syntax) that
arises when using the recommended minimum (according to
linux/Documentation/Changes) gcc-2.95.3 compiler to build
2.6.0-test5.  Would have found this sooner, but my
Slackware 8.0 laptop has been in use at a remote location
for the past several months :-).

<old_fart_mode><gasoline><match>
Don't much care for whatever C language standard revision
that allows this kind of sloppiness.  However, gcc-3.2.2
handles it just fine.
</match></gasoline></old_fart_mode>

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@frus.com
-----------------------------------------------------------------------

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

--- linux/fs/ufs/namei.c.orig	Wed Sep 10 10:23:03 2003
+++ linux/fs/ufs/namei.c	Wed Sep 10 21:45:30 2003
@@ -113,10 +113,11 @@
 static int ufs_mknod (struct inode * dir, struct dentry *dentry, int mode, dev_t rdev)
 {
 	struct inode * inode;
+	int err;
 	if (!old_valid_dev(rdev))
 		return -EINVAL;
 	inode = ufs_new_inode(dir, mode);
-	int err = PTR_ERR(inode);
+	err = PTR_ERR(inode);
 	if (!IS_ERR(inode)) {
 		init_special_inode(inode, mode, rdev);
 		/* NOTE: that'll go when we get wide dev_t */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-11 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11 14:03 [PATCH] linux/fs/ufs/namei.c Bob Tracy

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