Bug 20677

Summary: smp_num_cpus undefined
Product: [Retired] Red Hat Linux Reporter: Todd Krein <todd>
Component: kernelAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-11 16:24:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Todd Krein 2000-11-11 16:24:18 UTC
In a stock 7.0 kernel, I do:

make oldconfig
make dep
make bzImage


I get errors that smp_num_cpus is redefined and ultimately undefined in 
ksym.c, amongst others.

Fix is to change include/linux/modules/i386_ksym.ver

#define smp_num_cpus _set_ver(smp_num_cpus)

to

#ifndef smp_num_cpus
#define smp_num_cpus _set_ver(smp_num_cpus)
#endif

Comment 1 Bill Nottingham 2000-11-13 07:20:23 UTC
You need to run 'make mrproper' before rebuilding.