lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080127194053.GA17136@suse.de>
Date:	Sun, 27 Jan 2008 11:40:53 -0800
From:	Greg KH <gregkh@...e.de>
To:	WANG Cong <xiyou.wangcong@...il.com>
Cc:	Jeremy Fitzhardinge <jeremy@...p.org>,
	Randy Dunlap <rdunlap@...otime.net>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [Patch] drivers/base/core.c: fix a compile error

On Sat, Jan 26, 2008 at 05:14:45PM +0800, WANG Cong wrote:
> On Fri, Jan 25, 2008 at 03:24:13PM -0800, Jeremy Fitzhardinge wrote:
> >Greg KH wrote:
> >>Ah, sorry, I missed that "note" :(
> >>
> >>thanks,
> >>
> >>greg 'time to get that make randconfig system up and working' k-h
> >>  
> >
> >Here's a config that fails.
> >
> 
> Here's one possible fix. Please review.
> 
> Signed-off-by: WANG Cong <xiyou.wangcong@...il.com>
> 
> ---
> 
> Index: linux-2.6/include/linux/genhd.h
> ===================================================================
> --- linux-2.6.orig/include/linux/genhd.h
> +++ linux-2.6/include/linux/genhd.h
> @@ -12,6 +12,8 @@
>  #include <linux/types.h>
>  #include <linux/kdev_t.h>
>  
> +extern struct device_type part_type;
> +
>  #ifdef CONFIG_BLOCK
>  
>  #define kobj_to_dev(k) container_of(k, struct device, kobj)
> @@ -19,7 +21,6 @@
>  #define dev_to_part(device) container_of(device, struct hd_struct, dev)
>  
>  extern struct device_type disk_type;
> -extern struct device_type part_type;
>  extern struct kobject *block_depr;
>  extern struct class block_class;

No, that will fix the build error, but die when linking :(

I'll work on a real fix for this now...

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ