linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: unlisted-recipients:; (no To-header on input)
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>
Subject: include/linux/hrtimer.h:194:1: error: requested alignment is not an integer constant
Date: Sun, 12 Jun 2016 08:51:54 +0800	[thread overview]
Message-ID: <201606120851.x5lz0mCn%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2785 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   45b00c94be33db5d00595046663163ce55cbbfb9
commit: 6d9a1411393d51f17bee3fe163430b21b2cb2de9 hrtimer: Cache line align the hrtimer cpu base
date:   1 year, 2 months ago
config: frv-allnoconfig (attached as .config)
compiler: frv-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6d9a1411393d51f17bee3fe163430b21b2cb2de9
        # save the attached .config to linux build tree
        make.cross ARCH=frv 

All errors (new ones prefixed by >>):

   kernel/time/Kconfig:157:warning: range is invalid
   In file included from include/linux/cache.h:5:0,
                    from include/linux/printk.h:8,
                    from include/linux/kernel.h:13,
                    from include/linux/sched.h:17,
                    from arch/frv/kernel/asm-offsets.c:7:
   arch/frv/include/asm/cache.h:17:26: error: 'CONFIG_FRV_L1_CACHE_SHIFT' undeclared here (not in a function)
    #define L1_CACHE_SHIFT  (CONFIG_FRV_L1_CACHE_SHIFT)
                             ^
   arch/frv/include/asm/cache.h:18:31: note: in expansion of macro 'L1_CACHE_SHIFT'
    #define L1_CACHE_BYTES  (1 << L1_CACHE_SHIFT)
                                  ^
   arch/frv/include/asm/cache.h:21:54: note: in expansion of macro 'L1_CACHE_BYTES'
    #define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES)))
                                                         ^
   include/linux/hrtimer.h:194:3: note: in expansion of macro '____cacheline_aligned'
    } ____cacheline_aligned;
      ^
   In file included from include/linux/sched.h:53:0,
                    from arch/frv/kernel/asm-offsets.c:7:
>> include/linux/hrtimer.h:194:1: error: requested alignment is not an integer constant
    } ____cacheline_aligned;
    ^
   make[2]: *** [arch/frv/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +194 include/linux/hrtimer.h

   188		unsigned int			nr_events;
   189		unsigned int			nr_retries;
   190		unsigned int			nr_hangs;
   191		unsigned int			max_hang_time;
   192	#endif
   193		struct hrtimer_clock_base	clock_base[HRTIMER_MAX_CLOCK_BASES];
 > 194	} ____cacheline_aligned;
   195	
   196	static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time)
   197	{

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3708 bytes --]

                 reply	other threads:[~2016-06-12  0:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201606120851.x5lz0mCn%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).