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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101004184445.GA31377@linux-os.sc.intel.com>
Date:	Mon, 4 Oct 2010 11:44:45 -0700
From:	Fenghua Yu <fenghua.yu@...el.com>
To:	Randy Dunlap <randy.dunlap@...cle.com>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	"Yu, Fenghua" <fenghua.yu@...el.com>,
	"linux-next@...r.kernel.org" <linux-next@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: linux-next: Tree for October 1 (hwmon/pkgtemp)

On Fri, Oct 01, 2010 at 03:43:14PM -0700, Randy Dunlap wrote:
> On Fri, 1 Oct 2010 15:37:56 +1000 Stephen Rothwell wrote:
> 
> > Hi all,
> > 
> > Changes since 20100930:
> 
> 
> drivers/hwmon/pkgtemp.c:356: error: implicit declaration of function 'cpu_core_mask'
> 
> CONFIG_SMP is not set.
> 
> config is attached.
> 

From: Fenghua Yu <fenghua.yu@...el.com>
Date: Mon, 4 Oct 2010 11:00:36 -0700
Subject: [PATCH] hwmon (pkgtemp): Fix build failure for UP

This fix is only a workaround. Another fix is to add #ifdef CONFIG_SMP around
cpu_core_mask. But the code will not be cleaner than this fix.  This fix is
similar to coretemp in commit fff2017354a3a9906862aabbf2a1cae5b4330e40.

For a real fix, cpu_core_mask() should be defined in UP include code, eg in
linux/smp.h, and asm/smp.h should not be included directly. This fix is
currently not possible because asm/smp.h define cpu_core_mask() unconditionally
and is included directly from many source files.

In the long run, both cpu_sibling_mask and cpu_core_mask will be defined in UP
and this workaround and the workaround in coretemp can be removed.

Reported-by: Randy Dunlap <randy.dunlap@...cle.com>
Signed-off-by: Fenghua Yu <fenghua.yu@...el.com>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>
Cc: Ingo Molnar <mingo@...e.hu>
Cc: Guenter Roeck <guenter.roeck@...csson.com>
---
 drivers/hwmon/pkgtemp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/hwmon/pkgtemp.c b/drivers/hwmon/pkgtemp.c
index c9f652d..36d96c7 100644
--- a/drivers/hwmon/pkgtemp.c
+++ b/drivers/hwmon/pkgtemp.c
@@ -32,6 +32,7 @@
 #include <linux/list.h>
 #include <linux/platform_device.h>
 #include <linux/cpu.h>
+#include <asm/smp.h>
 #include <asm/msr.h>
 #include <asm/processor.h>
 
-- 
1.6.0.3

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