[sashal-linux-stable-security:linux-3.2.y-security 1025/1698] lib/idr.c:162:4: error: implicit declaration of function 'idr_max'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable-security.git linux-3.2.y-security
head:   898614808b51d26adab360afbbbc5b501abdf962
commit: 71d417302c0d4ea1341902c88218769ab91e28e8 [1025/1698] idr: fix overflow bug during maximum ID calculation at maximum height
config: i386-randconfig-s0-201636 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.3-14) 4.9.3
reproduce:
        git checkout 71d417302c0d4ea1341902c88218769ab91e28e8
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   lib/idr.c: In function 'sub_alloc':
>> lib/idr.c:162:4: error: implicit declaration of function 'idr_max' [-Werror=implicit-function-declaration]
       if (id > idr_max(idp->layers)) {
       ^
   cc1: some warnings being treated as errors

vim +/idr_max +162 lib/idr.c

   156				/* no space available go back to previous layer. */
   157				l++;
   158				oid = id;
   159				id = (id | ((1 << (IDR_BITS * l)) - 1)) + 1;
   160	
   161				/* if already at the top layer, we need to grow */
 > 162				if (id > idr_max(idp->layers)) {
   163					*starting_id = id;
   164					return IDR_NEED_TO_GROW;
   165				}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]