From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Peter Anvin <hpa@zytor.com>,
Wolfram Sang <wsa@the-dreams.de>, Zhang Rui <rui.zhang@intel.com>,
Eduardo Valentin <edubezval@gmail.com>
Subject: Re: [PATCH v1 1/1] x86/platform/iosf_mbi: Remove duplicate definitions
Date: Thu, 12 Nov 2015 01:36:03 +0800 [thread overview]
Message-ID: <201511120110.oT7EQKr8%fengguang.wu@intel.com> (raw)
In-Reply-To: <1447258824-131840-1-git-send-email-andriy.shevchenko@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 5365 bytes --]
Hi Andy,
[auto build test ERROR on thermal/next]
[also build test ERROR on v4.3 next-20151111]
[cannot apply to tip/x86/core]
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/x86-platform-iosf_mbi-Remove-duplicate-definitions/20151112-002509
base: https://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
arch/x86/platform/intel-quark/imr.c: In function 'imr_read':
>> arch/x86/platform/intel-quark/imr.c:114:39: error: 'QRK_MBI_MM_READ' undeclared (first use in this function)
ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
^
arch/x86/platform/intel-quark/imr.c:114:39: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/platform/intel-quark/imr.c: In function 'imr_write':
>> arch/x86/platform/intel-quark/imr.c:154:40: error: 'QRK_MBI_MM_WRITE' undeclared (first use in this function)
ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, reg++,
^
arch/x86/platform/intel-quark/imr.c: In function 'imr_read':
>> arch/x86/platform/intel-quark/imr.c:131:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +/QRK_MBI_MM_READ +114 arch/x86/platform/intel-quark/imr.c
28a375df Bryan O'Donoghue 2015-01-30 108 */
28a375df Bryan O'Donoghue 2015-01-30 109 static int imr_read(struct imr_device *idev, u32 imr_id, struct imr_regs *imr)
28a375df Bryan O'Donoghue 2015-01-30 110 {
28a375df Bryan O'Donoghue 2015-01-30 111 u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base;
28a375df Bryan O'Donoghue 2015-01-30 112 int ret;
28a375df Bryan O'Donoghue 2015-01-30 113
28a375df Bryan O'Donoghue 2015-01-30 @114 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
28a375df Bryan O'Donoghue 2015-01-30 115 reg++, &imr->addr_lo);
28a375df Bryan O'Donoghue 2015-01-30 116 if (ret)
28a375df Bryan O'Donoghue 2015-01-30 117 return ret;
28a375df Bryan O'Donoghue 2015-01-30 118
28a375df Bryan O'Donoghue 2015-01-30 119 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
28a375df Bryan O'Donoghue 2015-01-30 120 reg++, &imr->addr_hi);
28a375df Bryan O'Donoghue 2015-01-30 121 if (ret)
28a375df Bryan O'Donoghue 2015-01-30 122 return ret;
28a375df Bryan O'Donoghue 2015-01-30 123
28a375df Bryan O'Donoghue 2015-01-30 124 ret = iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
28a375df Bryan O'Donoghue 2015-01-30 125 reg++, &imr->rmask);
28a375df Bryan O'Donoghue 2015-01-30 126 if (ret)
28a375df Bryan O'Donoghue 2015-01-30 127 return ret;
28a375df Bryan O'Donoghue 2015-01-30 128
c11a25f4 Fengguang Wu 2015-02-19 129 return iosf_mbi_read(QRK_MBI_UNIT_MM, QRK_MBI_MM_READ,
28a375df Bryan O'Donoghue 2015-01-30 130 reg++, &imr->wmask);
28a375df Bryan O'Donoghue 2015-01-30 @131 }
28a375df Bryan O'Donoghue 2015-01-30 132
28a375df Bryan O'Donoghue 2015-01-30 133 /**
28a375df Bryan O'Donoghue 2015-01-30 134 * imr_write - write an IMR at a given index.
28a375df Bryan O'Donoghue 2015-01-30 135 *
28a375df Bryan O'Donoghue 2015-01-30 136 * Requires caller to hold imr mutex.
28a375df Bryan O'Donoghue 2015-01-30 137 * Note lock bits need to be written independently of address bits.
28a375df Bryan O'Donoghue 2015-01-30 138 *
28a375df Bryan O'Donoghue 2015-01-30 139 * @idev: pointer to imr_device structure.
28a375df Bryan O'Donoghue 2015-01-30 140 * @imr_id: IMR entry to write.
28a375df Bryan O'Donoghue 2015-01-30 141 * @imr: IMR structure representing address and access masks.
28a375df Bryan O'Donoghue 2015-01-30 142 * @lock: indicates if the IMR lock bit should be applied.
28a375df Bryan O'Donoghue 2015-01-30 143 * @return: 0 on success or error code passed from mbi_iosf on failure.
28a375df Bryan O'Donoghue 2015-01-30 144 */
28a375df Bryan O'Donoghue 2015-01-30 145 static int imr_write(struct imr_device *idev, u32 imr_id,
28a375df Bryan O'Donoghue 2015-01-30 146 struct imr_regs *imr, bool lock)
28a375df Bryan O'Donoghue 2015-01-30 147 {
28a375df Bryan O'Donoghue 2015-01-30 148 unsigned long flags;
28a375df Bryan O'Donoghue 2015-01-30 149 u32 reg = imr_id * IMR_NUM_REGS + idev->reg_base;
28a375df Bryan O'Donoghue 2015-01-30 150 int ret;
28a375df Bryan O'Donoghue 2015-01-30 151
28a375df Bryan O'Donoghue 2015-01-30 152 local_irq_save(flags);
28a375df Bryan O'Donoghue 2015-01-30 153
28a375df Bryan O'Donoghue 2015-01-30 @154 ret = iosf_mbi_write(QRK_MBI_UNIT_MM, QRK_MBI_MM_WRITE, reg++,
28a375df Bryan O'Donoghue 2015-01-30 155 imr->addr_lo);
28a375df Bryan O'Donoghue 2015-01-30 156 if (ret)
28a375df Bryan O'Donoghue 2015-01-30 157 goto failed;
:::::: The code at line 114 was first introduced by commit
:::::: 28a375df16c2b6d01227541f3956568995aa5fda x86/intel/quark: Add Isolated Memory Regions for Quark X1000
:::::: TO: Bryan O'Donoghue <pure.logic@nexus-software.ie>
:::::: CC: Ingo Molnar <mingo@kernel.org>
---
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: 51600 bytes --]
prev parent reply other threads:[~2015-11-11 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 16:20 [PATCH v1 1/1] x86/platform/iosf_mbi: Remove duplicate definitions Andy Shevchenko
2015-11-11 17:36 ` kbuild test robot [this message]
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=201511120110.oT7EQKr8%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=edubezval@gmail.com \
--cc=hpa@zytor.com \
--cc=kbuild-all@01.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rui.zhang@intel.com \
--cc=tglx@linutronix.de \
--cc=wsa@the-dreams.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