Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754828Ab2B2XvW (ORCPT ); Wed, 29 Feb 2012 18:51:22 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:58371 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164Ab2B2XvV convert rfc822-to-8bit (ORCPT ); Wed, 29 Feb 2012 18:51:21 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of joshuacov@googlemail.com designates 10.236.175.36 as permitted sender) smtp.mail=joshuacov@googlemail.com; dkim=pass header.i=joshuacov@googlemail.com MIME-Version: 1.0 In-Reply-To: <4F4EB0B9.2080906@zytor.com> References: <4F4BF11E.4090000@zytor.com> <4F4C1F76.70403@zytor.com> <4F4D1E6A.5000200@zytor.com> <4F4E6B98.2090306@zytor.com> <4F4EB0B9.2080906@zytor.com> Date: Thu, 1 Mar 2012 00:51:20 +0100 Message-ID: Subject: Re: [RESUBMIT] [PATCH] Use BIOS Keyboard variable to set Numlock From: "Joshua C." To: "H. Peter Anvin" Cc: Bodo Eggert <7eggert@gmx.de>, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 649 Lines: 22 2012/3/1 H. Peter Anvin : > Looks good, *except* that this will break the compile for all non-x86 > architectures. ?It might be worthwhile to factor out the > architecture-dependent bits for cleanliness. > > ? ? ? ?-hpa > Will this work? +#if (defined(__i386__) || defined(__x86_64__)) +#include +#include +#else +extern struct boot_params boot_params; +#endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/