LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-25-2018, 08:21 AM   #1
ilansch
LQ Newbie
 
Registered: Feb 2017
Posts: 13

Rep: Reputation: Disabled
Where is MAX_NR_ZONES defined in suse 12.3 kernel 4.4.131-94.29


Hi,
I maintain kernel module, till today, when compiling the kernel
module, I use to download kernel sources (headers are not enough since
i had to include btrfs code), and compile it.

In suse 12.3 (4.4.131-94.29-default), I downloaded the source package
(kernel-source-4.4.131-94.29.1.src.rpm), extract linux-4.4.tar.xz out
of it, copy to /usr/src/4.4.131-94.29 and update symbolic link from
/lib/modules/4.4.131-94.29-default/source to source ->
/usr/src/linux-4.4.131-94.29

When compiling I get the following exception:
/usr/src/linux-4.4.131-94.29/include/linux/page-flags-layout.h:21:2:
error: #error ZONES_SHIFT -- too many zones configured adjust
calculation
#error ZONES_SHIFT -- too many zones configured adjust calculation

I assume MAX_NR_ZONES is not defined.
How could that be ?

The code for page-flags-layout.h line 21 is:
#if MAX_NR_ZONES < 2
#define ZONES_SHIFT 0
#elif MAX_NR_ZONES <= 2
#define ZONES_SHIFT 1
#elif MAX_NR_ZONES <= 4
#define ZONES_SHIFT 2
#else
#error ZONES_SHIFT -- too many zones configured adjust calculation
#endif
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New Loptop Acer Aspire ES 11 ES1-131-C4ZS, Kernel 4.2.3 problem cnshettys@gmail.com Linux - Kernel 1 11-13-2016 03:26 PM
FYI - inserting module for NVIDIA 304.131 (possibly 340.xxx) and kernel 4.4.14< pso Slackware 15 07-22-2016 04:44 AM
[SOLVED] NVIDIA 64Bit 304.131 Driver unable to build kernel module - help please Mobile1 Slackware 4 06-09-2016 06:02 PM
[SOLVED] Failure to insert nVidia 304.131 module with kernel 4.4.0 on Slackware-current allend Slackware 9 01-18-2016 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration