From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [thierryreding:for-5.13/work 41/49] drivers/gpu/drm/tegra/dc.c:939:13: error: use of undeclared identifier 'CURSOR_COMPOSITION_MODE_XORG'
Date: Sat, 20 Mar 2021 06:41:42 +0800 [thread overview]
Message-ID: <202103200636.577iLS2S-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3922 bytes --]
tree: https://github.com/thierryreding/linux for-5.13/work
head: 009ea3ee74a12859073a37d2ef800fa154ff7705
commit: bbc118a5ae5360b4b9f62107d199ed6473f1cd4e [41/49] drm/tegra: dc: Implement hardware cursor on Tegra186 and later
config: arm-randconfig-r011-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/thierryreding/linux/commit/bbc118a5ae5360b4b9f62107d199ed6473f1cd4e
git remote add thierryreding https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.13/work
git checkout bbc118a5ae5360b4b9f62107d199ed6473f1cd4e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/tegra/dc.c:10:
include/linux/iommu.h:1064:36: error: redefinition of 'dev_iommu_fwspec_get'
static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev)
^
include/linux/iommu.h:982:36: note: previous definition is here
static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev)
^
>> drivers/gpu/drm/tegra/dc.c:939:13: error: use of undeclared identifier 'CURSOR_COMPOSITION_MODE_XORG'
value &= ~CURSOR_COMPOSITION_MODE_XORG;
^
2 errors generated.
vim +/CURSOR_COMPOSITION_MODE_XORG +939 drivers/gpu/drm/tegra/dc.c
928
929 /* enable cursor and set blend mode */
930 value = tegra_dc_readl(dc, DC_DISP_DISP_WIN_OPTIONS);
931 value |= CURSOR_ENABLE;
932 tegra_dc_writel(dc, value, DC_DISP_DISP_WIN_OPTIONS);
933
934 value = tegra_dc_readl(dc, DC_DISP_BLEND_CURSOR_CONTROL);
935 value &= ~CURSOR_DST_BLEND_MASK;
936 value &= ~CURSOR_SRC_BLEND_MASK;
937
938 if (dc->soc->has_nvdisplay)
> 939 value &= ~CURSOR_COMPOSITION_MODE_XORG;
940 else
941 value |= CURSOR_MODE_NORMAL;
942
943 value |= CURSOR_DST_BLEND_NEG_K1_TIMES_SRC;
944 value |= CURSOR_SRC_BLEND_K1_TIMES_SRC;
945 value |= CURSOR_ALPHA;
946 tegra_dc_writel(dc, value, DC_DISP_BLEND_CURSOR_CONTROL);
947
948 /* nvdisplay relies on software for clipping */
949 if (dc->soc->has_nvdisplay) {
950 unsigned int i, j, w, h;
951
952 x = new_state->dst.x1;
953 y = new_state->dst.y1;
954
955 i = new_state->src.x1 >> 16;
956 j = new_state->src.y1 >> 16;
957
958 value = ((j & tegra->vmask) << 16) | (i & tegra->hmask);
959 tegra_dc_writel(dc, value, DC_DISP_PCALC_HEAD_SET_CROPPED_POINT_IN_CURSOR);
960
961 w = (new_state->src.x2 - new_state->src.x1) >> 16;
962 h = (new_state->src.y2 - new_state->src.y1) >> 16;
963
964 value = ((h & tegra->vmask) << 16) | (w & tegra->hmask);
965 tegra_dc_writel(dc, value, DC_DISP_PCALC_HEAD_SET_CROPPED_SIZE_IN_CURSOR);
966 } else {
967 x = new_state->crtc_x;
968 y = new_state->crtc_y;
969 }
970
971 /* position the cursor */
972 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask);
973 tegra_dc_writel(dc, value, DC_DISP_CURSOR_POSITION);
974 }
975
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39747 bytes --]
reply other threads:[~2021-03-19 22:41 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=202103200636.577iLS2S-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.