lkml.org 
[lkml]   [1997]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject1.1.49 cosmetic patches


Hi,

On building soundblaster module under SMP gcc complains about:
-----
sb_common.c:666: warning: unused variable `n'
-----

Also on binfmt_elf.c gcc barfs
-----
binfmt_elf.c: In function `load_elf_binary':
binfmt_elf.c:392: warning: `interpreter_dentry' might be used uninitialized in this function
-----

Here are two cosmetic patches (modulo spaces) to make gcc quiet.
-----------------------
--- linux/drivers/sound/sb_common.c.orig Tue Aug 12 01:40:01 1997
+++ linux/drivers/sound/sb_common.c Tue Aug 12 01:39:38 1997
@@ -663,7 +663,9 @@
sb_dsp_init (struct address_info *hw_config)
{
sb_devc *devc;
+#ifndef __SMP__
int n;
+#endif
char name[100];
extern int sb_be_quiet;

--- linux/fs/binfmt_elf.c.orig Tue Aug 12 01:48:26 1997
+++ linux/fs/binfmt_elf.c Tue Aug 12 01:47:23 1997
@@ -389,7 +389,7 @@
struct elfhdr interp_elf_ex;
struct file * file;
struct exec interp_ex;
- struct dentry *interpreter_dentry;
+ struct dentry *interpreter_dentry = NULL;
unsigned long load_addr;
int load_addr_set = 0;
unsigned int interpreter_type = INTERPRETER_NONE;
-----------------------
Rgds.
--
Manuel J. Galan
manolow@step.es



\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.032 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site