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] [day] [month] [year] [list]
Message-ID: <4BABAE00.8010606@goop.org>
Date:	Thu, 25 Mar 2010 11:40:00 -0700
From:	Jeremy Fitzhardinge <jeremy@...p.org>
To:	Randy Dunlap <randy.dunlap@...cle.com>
CC:	Stephen Rothwell <sfr@...b.auug.org.au>,
	"linux-next@...r.kernel.org" <linux-next@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...l.org>,
	Chris Wright <chrisw@...s-sol.org>
Subject: Re: [PATCH 3/3 -next] xen: fix build when SYSRQ is disabled

On 03/25/2010 11:29 AM, Randy Dunlap wrote:
> From: Randy Dunlap<randy.dunlap@...cle.com>
>
> Fix build error when CONFIG_MAGIC_SYSRQ is not enabled:
>
> drivers/xen/manage.c:223: error: implicit declaration of function 'handle_sysrq'
>    

Yep, looks fine.

Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>

     J
> Signed-off-by: Randy Dunlap<randy.dunlap@...cle.com>
> Cc: Jeremy Fitzhardinge<jeremy@...source.com>
> Cc: Chris Wright<chrisw@...s-sol.org>
> ---
>   drivers/xen/manage.c |   14 +++++++++-----
>   1 file changed, 9 insertions(+), 5 deletions(-)
>
> --- linux-next-20100325.orig/drivers/xen/manage.c
> +++ linux-next-20100325/drivers/xen/manage.c
> @@ -194,6 +194,7 @@ static void shutdown_handler(struct xenb
>   	kfree(str);
>   }
>
> +#ifdef CONFIG_MAGIC_SYSRQ
>   static void sysrq_handler(struct xenbus_watch *watch, const char **vec,
>   			  unsigned int len)
>   {
> @@ -223,15 +224,16 @@ static void sysrq_handler(struct xenbus_
>   		handle_sysrq(sysrq_key, NULL);
>   }
>
> -static struct xenbus_watch shutdown_watch = {
> -	.node = "control/shutdown",
> -	.callback = shutdown_handler
> -};
> -
>   static struct xenbus_watch sysrq_watch = {
>   	.node = "control/sysrq",
>   	.callback = sysrq_handler
>   };
> +#endif
> +
> +static struct xenbus_watch shutdown_watch = {
> +	.node = "control/shutdown",
> +	.callback = shutdown_handler
> +};
>
>   static int setup_shutdown_watcher(void)
>   {
> @@ -243,11 +245,13 @@ static int setup_shutdown_watcher(void)
>   		return err;
>   	}
>
> +#ifdef CONFIG_MAGIC_SYSRQ
>   	err = register_xenbus_watch(&sysrq_watch);
>   	if (err) {
>   		printk(KERN_ERR "Failed to set sysrq watcher\n");
>   		return err;
>   	}
> +#endif
>
>   	return 0;
>   }
>    

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