Re: [PATCH] init: fix sparse warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Alexey,

On Sat, 2008-07-12 at 11:35 +0400, Alexey Dobriyan wrote:
> >  
> > +const char __user cuold[] = "/old";
> > +char __user uold[] = "/old";
> > +const char __user curoot[] = "/";
> > +char __user uroot[] = "/";
> > +const char __user curootroot[] = "/root";
> > +char __user urootroot[] = "/root";
> > +const char __user cudot[] = ".";
> > +char __user udot[] = ".";
> > +const char __user cuinitrd[] = "/root/initrd";
> > +char __user uinitrd[] = "/root/initrd";
> > +/* devs */
> > +const char __user cudevram[] = "/dev/ram";
> > +char __user udevram[] = "/dev/ram";
> > +const char __user cudevconsole[] = "/dev/console";
> > +char __user udevconsole[] = "/dev/console";
> > +const char __user cudevroot[] = "/dev/root";
> > +char __user udevroot[] = "/dev/root";
> > +const char __user cudevrootold[] = "/dev/root.old";
> > +char __user udevrootold[] = "/dev/root.old";
> 
> Oh, c'mon!

This looks ugly. But I am able to remove all sparse warnings
of init/do_mounts_initrd.c by above stuff. 

  CHECK   init/do_mounts_initrd.c
  CC      init/do_mounts_initrd.o

Can you suggest me some nicer way.

Thank you,

Jaswinder Singh.

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux