提交 3b366d0f 编写于 作者: Z Zou Wei 提交者: yingbao jia

platform/x86: ISST: Mark mmio_range_devid_0 and mmio_range_devid_1 with static keyword

commit 0cd3f561 upstream.
mainline inclusion
from mainline-5.11
commit 0cd3f561
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6FY06
CVE: NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0cd3f561efa9adce840140720e0581355db3e554

Intel-SIG: commit 0cd3f561 platform/x86: ISST: Mark mmio_range_devid_0
and mmio_range_devid_1 with static keyword.
Backport SST missed patch for 5.10.

-------------------------------------------------

Fix the following sparse warnings:

drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:23:24: warning: symbol 'mmio_range_devid_0' was not declared. Should it be static?
drivers/platform/x86/intel_speed_select_if/isst_if_mmio.c:28:24: warning: symbol 'mmio_range_devid_1' was not declared. Should it be static?
Signed-off-by: NZou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1607430489-116200-1-git-send-email-zou_wei@huawei.comSigned-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: Nyingbao jia <yingbao.jia@intel.com>
上级 d007086b
......@@ -20,12 +20,12 @@ struct isst_mmio_range {
int end;
};
struct isst_mmio_range mmio_range_devid_0[] = {
static struct isst_mmio_range mmio_range_devid_0[] = {
{0x04, 0x14},
{0x20, 0xD0},
};
struct isst_mmio_range mmio_range_devid_1[] = {
static struct isst_mmio_range mmio_range_devid_1[] = {
{0x04, 0x14},
{0x20, 0x11C},
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册