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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201702041328.Te6g7A9d%fengguang.wu@intel.com>
Date:   Sat, 4 Feb 2017 13:27:39 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.sched/core 138/144] arch/mips/netlogic/common/smp.c:157:31:
 note: in expansion of macro '__KSTK_TOS'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head:   f83f0b0647162b099f62e62c203b1cfb90b40239
commit: 3ab291518ff78c8410fd336e02eb59f10d98d4e7 [138/144] sched/headers: Split <linux/sched/task_stack> out of <linux/sched.h>
config: mips-nlm_xlr_defconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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 3ab291518ff78c8410fd336e02eb59f10d98d4e7
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All warnings (new ones prefixed by >>):

   In file included from arch/mips/include/asm/thread_info.h:15:0,
                    from include/linux/thread_info.h:25,
                    from include/asm-generic/preempt.h:4,
                    from ./arch/mips/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/smp.h:55,
                    from arch/mips/netlogic/common/smp.c:38:
   arch/mips/netlogic/common/smp.c: In function 'nlm_boot_secondary':
   arch/mips/include/asm/processor.h:384:41: error: implicit declaration of function 'task_stack_page' [-Werror=implicit-function-declaration]
    #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
                                            ^
>> arch/mips/netlogic/common/smp.c:157:31: note: in expansion of macro '__KSTK_TOS'
     nlm_next_sp = (unsigned long)__KSTK_TOS(idle);
                                  ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/__KSTK_TOS +157 arch/mips/netlogic/common/smp.c

5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   32   * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   33   */
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   34  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   35  #include <linux/kernel.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   36  #include <linux/delay.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   37  #include <linux/init.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  @38  #include <linux/smp.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   39  #include <linux/irq.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   40  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   41  #include <asm/mmu_context.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   42  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   43  #include <asm/netlogic/interrupt.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   44  #include <asm/netlogic/mips-extns.h>
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11   45  #include <asm/netlogic/haldefs.h>
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11   46  #include <asm/netlogic/common.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   47  
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   48  #if defined(CONFIG_CPU_XLP)
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   49  #include <asm/netlogic/xlp-hal/iomap.h>
66d29985fa arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   50  #include <asm/netlogic/xlp-hal/xlp.h>
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   51  #include <asm/netlogic/xlp-hal/pic.h>
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   52  #elif defined(CONFIG_CPU_XLR)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   53  #include <asm/netlogic/xlr/iomap.h>
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   54  #include <asm/netlogic/xlr/pic.h>
66d29985fa arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   55  #include <asm/netlogic/xlr/xlr.h>
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   56  #else
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   57  #error "Unknown CPU"
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16   58  #endif
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   59  
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11   60  void nlm_send_ipi_single(int logical_cpu, unsigned int action)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   61  {
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07   62  	unsigned int hwtid;
77ae798f5b arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31   63  	uint64_t picbase;
77ae798f5b arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31   64  
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07   65  	/* node id is part of hwtid, and needed for send_ipi */
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07   66  	hwtid = cpu_logical_map(logical_cpu);
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07   67  	picbase = nlm_get_node(nlm_hwtid_to_node(hwtid))->picbase;
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   68  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   69  	if (action & SMP_CALL_FUNCTION)
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07   70  		nlm_pic_send_ipi(picbase, hwtid, IRQ_IPI_SMP_FUNCTION, 0);
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11   71  	if (action & SMP_RESCHEDULE_YOURSELF)
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07   72  		nlm_pic_send_ipi(picbase, hwtid, IRQ_IPI_SMP_RESCHEDULE, 0);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   73  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   74  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   75  void nlm_send_ipi_mask(const struct cpumask *mask, unsigned int action)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   76  {
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   77  	int cpu;
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   78  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   79  	for_each_cpu(cpu, mask) {
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11   80  		nlm_send_ipi_single(cpu, action);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   81  	}
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   82  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   83  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   84  /* IRQ_IPI_SMP_FUNCTION Handler */
bd0b9ac405 arch/mips/netlogic/common/smp.c Thomas Gleixner    2015-09-14   85  void nlm_smp_function_ipi_handler(struct irq_desc *desc)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   86  {
31429d1a74 arch/mips/netlogic/common/smp.c Thomas Gleixner    2015-07-13   87  	unsigned int irq = irq_desc_get_irq(desc);
220d9122e8 arch/mips/netlogic/common/smp.c Jayachandran C     2013-01-14   88  	clear_c0_eimr(irq);
220d9122e8 arch/mips/netlogic/common/smp.c Jayachandran C     2013-01-14   89  	ack_c0_eirr(irq);
4ace6139bf arch/mips/netlogic/common/smp.c Alex Smith         2015-07-24   90  	generic_smp_call_function_interrupt();
220d9122e8 arch/mips/netlogic/common/smp.c Jayachandran C     2013-01-14   91  	set_c0_eimr(irq);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   92  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   93  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   94  /* IRQ_IPI_SMP_RESCHEDULE  handler */
bd0b9ac405 arch/mips/netlogic/common/smp.c Thomas Gleixner    2015-09-14   95  void nlm_smp_resched_ipi_handler(struct irq_desc *desc)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07   96  {
31429d1a74 arch/mips/netlogic/common/smp.c Thomas Gleixner    2015-07-13   97  	unsigned int irq = irq_desc_get_irq(desc);
220d9122e8 arch/mips/netlogic/common/smp.c Jayachandran C     2013-01-14   98  	clear_c0_eimr(irq);
220d9122e8 arch/mips/netlogic/common/smp.c Jayachandran C     2013-01-14   99  	ack_c0_eirr(irq);
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16  100  	scheduler_ipi();
220d9122e8 arch/mips/netlogic/common/smp.c Jayachandran C     2013-01-14  101  	set_c0_eimr(irq);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  102  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  103  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  104  /*
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  105   * Called before going into mips code, early cpu init
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  106   */
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11  107  void nlm_early_init_secondary(int cpu)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  108  {
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16  109  	change_c0_config(CONF_CM_CMASK, 0x3);
65040e224e arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-16  110  #ifdef CONFIG_CPU_XLP
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11  111  	xlp_mmu_init();
0c9654072a arch/mips/netlogic/common/smp.c Jayachandran C     2011-11-11  112  #endif
77ae798f5b arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  113  	write_c0_ebase(nlm_current_node()->ebase);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  114  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  115  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  116  /*
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  117   * Code to run on secondary just after probing the CPU
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  118   */
078a55fc82 arch/mips/netlogic/common/smp.c Paul Gortmaker     2013-06-18  119  static void nlm_init_secondary(void)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  120  {
38541742da arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  121  	int hwtid;
38541742da arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  122  
38541742da arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  123  	hwtid = hard_smp_processor_id();
38541742da arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  124  	current_cpu_data.core = hwtid / NLM_THREADS_PER_CORE;
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07  125  	current_cpu_data.package = nlm_nodeid();
ed21cfe207 arch/mips/netlogic/common/smp.c Ganesan Ramalingam 2012-10-31  126  	nlm_percpu_init(hwtid);
38541742da arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  127  	nlm_smp_irq_init(hwtid);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  128  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  129  
b3ea581834 arch/mips/netlogic/common/smp.c Hillf Danton       2011-11-16  130  void nlm_prepare_cpus(unsigned int max_cpus)
b3ea581834 arch/mips/netlogic/common/smp.c Hillf Danton       2011-11-16  131  {
b3ea581834 arch/mips/netlogic/common/smp.c Hillf Danton       2011-11-16  132  	/* declare we are SMT capable */
b3ea581834 arch/mips/netlogic/common/smp.c Hillf Danton       2011-11-16  133  	smp_num_siblings = nlm_threads_per_core;
b3ea581834 arch/mips/netlogic/common/smp.c Hillf Danton       2011-11-16  134  }
b3ea581834 arch/mips/netlogic/common/smp.c Hillf Danton       2011-11-16  135  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  136  void nlm_smp_finish(void)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  137  {
39263eeb44 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-06-07  138  	local_irq_enable();
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  139  }
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  140  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  141  /*
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  142   * Boot all other cpus in the system, initialize them, and bring them into
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  143   * the boot function
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  144   */
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  145  unsigned long nlm_next_gp;
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  146  unsigned long nlm_next_sp;
62b734d289 arch/mips/netlogic/common/smp.c Jayachandran C     2013-03-23  147  static cpumask_t phys_cpu_present_mask;
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  148  
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  149  void nlm_boot_secondary(int logical_cpu, struct task_struct *idle)
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  150  {
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07  151  	uint64_t picbase;
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07  152  	int hwtid;
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07  153  
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07  154  	hwtid = cpu_logical_map(logical_cpu);
c273652546 arch/mips/netlogic/common/smp.c Jayachandran C     2015-01-07  155  	picbase = nlm_get_node(nlm_hwtid_to_node(hwtid))->picbase;
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  156  
77ae798f5b arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31 @157  	nlm_next_sp = (unsigned long)__KSTK_TOS(idle);
77ae798f5b arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  158  	nlm_next_gp = (unsigned long)task_thread_info(idle);
5c64250674 arch/mips/netlogic/xlr/smp.c    Jayachandran C     2011-05-07  159  
77ae798f5b arch/mips/netlogic/common/smp.c Jayachandran C     2012-10-31  160  	/* barrier for sp/gp store above */

:::::: The code at line 157 was first introduced by commit
:::::: 77ae798f5b736dfdc692b86b393d9699052ac77a MIPS: Netlogic: Support for multi-chip configuration

:::::: TO: Jayachandran C <jchandra@...adcom.com>
:::::: CC: John Crispin <blogic@...nwrt.org>

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

Download attachment ".config.gz" of type "application/gzip" (17288 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ