[sashal-linux-stable:queue-5.4 92/132] drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:15: error: incompatible function pointer types initializing 'int drm_panel with an expression of type 'int (struct drm_panel struct drm_connector
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad [92/132] drm/panel: add panel driver for Elida KD35T133 panels
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout e2bf810d1ab3ed29b696968b2b4cceb58f2f5bad
# 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(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-elida-kd35t133.c:233:15: error: incompatible function pointer types initializing 'int (*)(struct drm_panel *)' with an expression of type 'int (struct drm_panel *, struct drm_connector *)' [-Werror,-Wincompatible-function-pointer-types]
.get_modes = kd35t133_get_modes,
^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/panel/panel-elida-kd35t133.c:281:30: error: too many arguments to function call, expected single argument 'panel', have 4 arguments
drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_panel.h:150:6: note: 'drm_panel_init' declared here
void drm_panel_init(struct drm_panel *panel);
^
>> drivers/gpu/drm/panel/panel-elida-kd35t133.c:284:8: error: implicit declaration of function 'drm_panel_of_backlight' [-Werror,-Wimplicit-function-declaration]
ret = drm_panel_of_backlight(&ctx->panel);
^
3 errors generated.
vim +233 drivers/gpu/drm/panel/panel-elida-kd35t133.c
229
230 static const struct drm_panel_funcs kd35t133_funcs = {
231 .unprepare = kd35t133_unprepare,
232 .prepare = kd35t133_prepare,
> 233 .get_modes = kd35t133_get_modes,
234 };
235
236 static int kd35t133_probe(struct mipi_dsi_device *dsi)
237 {
238 struct device *dev = &dsi->dev;
239 struct kd35t133 *ctx;
240 int ret;
241
242 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
243 if (!ctx)
244 return -ENOMEM;
245
246 ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
247 if (IS_ERR(ctx->reset_gpio)) {
248 DRM_DEV_ERROR(dev, "cannot get reset gpio\n");
249 return PTR_ERR(ctx->reset_gpio);
250 }
251
252 ctx->vdd = devm_regulator_get(dev, "vdd");
253 if (IS_ERR(ctx->vdd)) {
254 ret = PTR_ERR(ctx->vdd);
255 if (ret != -EPROBE_DEFER)
256 DRM_DEV_ERROR(dev,
257 "Failed to request vdd regulator: %d\n",
258 ret);
259 return ret;
260 }
261
262 ctx->iovcc = devm_regulator_get(dev, "iovcc");
263 if (IS_ERR(ctx->iovcc)) {
264 ret = PTR_ERR(ctx->iovcc);
265 if (ret != -EPROBE_DEFER)
266 DRM_DEV_ERROR(dev,
267 "Failed to request iovcc regulator: %d\n",
268 ret);
269 return ret;
270 }
271
272 mipi_dsi_set_drvdata(dsi, ctx);
273
274 ctx->dev = dev;
275
276 dsi->lanes = 1;
277 dsi->format = MIPI_DSI_FMT_RGB888;
278 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
279 MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
280
> 281 drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
282 DRM_MODE_CONNECTOR_DSI);
283
> 284 ret = drm_panel_of_backlight(&ctx->panel);
285 if (ret)
286 return ret;
287
288 drm_panel_add(&ctx->panel);
289
290 ret = mipi_dsi_attach(dsi);
291 if (ret < 0) {
292 DRM_DEV_ERROR(dev, "mipi_dsi_attach failed: %d\n", ret);
293 drm_panel_remove(&ctx->panel);
294 return ret;
295 }
296
297 return 0;
298 }
299
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v2 4/4] clk: bcm: Add BCM63268 timer clock and reset driver
by kernel test robot
Hi "Álvaro,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on robh/for-next pza/reset/next v5.12-rc3 next-20210319]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/lvaro-Fern-ndez-Rojas/clk-add-BC...
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
# https://github.com/0day-ci/linux/commit/f163044e385e4769e7b9c8ea16f34575f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review lvaro-Fern-ndez-Rojas/clk-add-BCM63268-timer-clock-and-reset/20210315-202837
git checkout f163044e385e4769e7b9c8ea16f34575f3db4516
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/clk/bcm/clk-bcm63268-timer.c: In function 'bcm63268_timer_reset_update':
>> drivers/clk/bcm/clk-bcm63268-timer.c:89:8: error: implicit declaration of function '__raw_readl'; did you mean '__raw_read_lock'? [-Werror=implicit-function-declaration]
89 | val = __raw_readl(reset->regs);
| ^~~~~~~~~~~
| __raw_read_lock
>> drivers/clk/bcm/clk-bcm63268-timer.c:94:2: error: implicit declaration of function '__raw_writel'; did you mean '__raw_write_lock'? [-Werror=implicit-function-declaration]
94 | __raw_writel(val, reset->regs);
| ^~~~~~~~~~~~
| __raw_write_lock
cc1: some warnings being treated as errors
vim +89 drivers/clk/bcm/clk-bcm63268-timer.c
80
81 static int bcm63268_timer_reset_update(struct reset_controller_dev *rcdev,
82 unsigned long id, bool assert)
83 {
84 struct bcm63268_tclkrst_hw *reset = to_bcm63268_timer_reset(rcdev);
85 unsigned long flags;
86 uint32_t val;
87
88 spin_lock_irqsave(&reset->lock, flags);
> 89 val = __raw_readl(reset->regs);
90 if (assert)
91 val &= ~BIT(id);
92 else
93 val |= BIT(id);
> 94 __raw_writel(val, reset->regs);
95 spin_unlock_irqrestore(&reset->lock, flags);
96
97 return 0;
98 }
99
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 125/132] sound/pci/hda/patch_conexant.c:644:28: error: variable has incomplete type 'enum led_brightness'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 4f4e1bdc6788e7f33be3abfa0a09811f6b14257e [125/132] ALSA: hda/conexant: Convert to cdev-variant of mic-mute LED controls
config: arm-randconfig-r013-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 4f4e1bdc6788e7f33be3abfa0a09811f6b14257e
# 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(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> sound/pci/hda/patch_conexant.c:643:43: warning: declaration of 'struct led_classdev' will not be visible outside of this function [-Wvisibility]
static int cxt_gpio_micmute_update(struct led_classdev *led_cdev,
^
>> sound/pci/hda/patch_conexant.c:644:13: warning: declaration of 'enum led_brightness' will not be visible outside of this function [-Wvisibility]
enum led_brightness brightness)
^
>> sound/pci/hda/patch_conexant.c:644:28: error: variable has incomplete type 'enum led_brightness'
enum led_brightness brightness)
^
sound/pci/hda/patch_conexant.c:644:13: note: forward declaration of 'enum led_brightness'
enum led_brightness brightness)
^
>> sound/pci/hda/patch_conexant.c:646:53: error: incomplete definition of type 'struct led_classdev'
struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent);
~~~~~~~~^
include/sound/hda_codec.h:289:45: note: expanded from macro 'dev_to_hda_codec'
#define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
^~~~
include/linux/kernel.h:993:26: note: expanded from macro 'container_of'
void *__mptr = (void *)(ptr); \
^~~
sound/pci/hda/patch_conexant.c:643:43: note: forward declaration of 'struct led_classdev'
static int cxt_gpio_micmute_update(struct led_classdev *led_cdev,
^
>> sound/pci/hda/patch_conexant.c:646:53: error: incomplete definition of type 'struct led_classdev'
struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent);
~~~~~~~~^
include/sound/hda_codec.h:289:45: note: expanded from macro 'dev_to_hda_codec'
#define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
^~~~
include/linux/kernel.h:994:34: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^~~
include/linux/compiler_types.h:220:63: note: expanded from macro '__same_type'
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:417:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:405:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:397:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
sound/pci/hda/patch_conexant.c:643:43: note: forward declaration of 'struct led_classdev'
static int cxt_gpio_micmute_update(struct led_classdev *led_cdev,
^
>> sound/pci/hda/patch_conexant.c:646:53: error: incomplete definition of type 'struct led_classdev'
struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent);
~~~~~~~~^
include/sound/hda_codec.h:289:45: note: expanded from macro 'dev_to_hda_codec'
#define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev)
^~~~
include/linux/kernel.h:995:20: note: expanded from macro 'container_of'
!__same_type(*(ptr), void), \
^~~
include/linux/compiler_types.h:220:63: note: expanded from macro '__same_type'
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:417:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:405:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:397:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
sound/pci/hda/patch_conexant.c:643:43: note: forward declaration of 'struct led_classdev'
static int cxt_gpio_micmute_update(struct led_classdev *led_cdev,
^
>> sound/pci/hda/patch_conexant.c:670:3: error: implicit declaration of function 'snd_hda_gen_add_micmute_led_cdev' [-Werror,-Wimplicit-function-declaration]
snd_hda_gen_add_micmute_led_cdev(codec, cxt_gpio_micmute_update);
^
sound/pci/hda/patch_conexant.c:670:3: note: did you mean 'snd_hda_gen_add_micmute_led'?
sound/pci/hda/hda_generic.h:357:5: note: 'snd_hda_gen_add_micmute_led' declared here
int snd_hda_gen_add_micmute_led(struct hda_codec *codec,
^
2 warnings and 5 errors generated.
vim +644 sound/pci/hda/patch_conexant.c
641
642 /* turn on/off mic-mute LED via GPIO per capture hook */
> 643 static int cxt_gpio_micmute_update(struct led_classdev *led_cdev,
> 644 enum led_brightness brightness)
645 {
> 646 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent);
647 struct conexant_spec *spec = codec->spec;
648
649 cxt_update_gpio_led(codec, spec->gpio_mic_led_mask, brightness);
650 return 0;
651 }
652
653
654 static void cxt_fixup_mute_led_gpio(struct hda_codec *codec,
655 const struct hda_fixup *fix, int action)
656 {
657 struct conexant_spec *spec = codec->spec;
658 static const struct hda_verb gpio_init[] = {
659 { 0x01, AC_VERB_SET_GPIO_MASK, 0x03 },
660 { 0x01, AC_VERB_SET_GPIO_DIRECTION, 0x03 },
661 {}
662 };
663
664 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
665 spec->gen.vmaster_mute.hook = cxt_fixup_gpio_mute_hook;
666 spec->gpio_led = 0;
667 spec->mute_led_polarity = 0;
668 spec->gpio_mute_led_mask = 0x01;
669 spec->gpio_mic_led_mask = 0x02;
> 670 snd_hda_gen_add_micmute_led_cdev(codec, cxt_gpio_micmute_update);
671 }
672 snd_hda_add_verbs(codec, gpio_init);
673 if (spec->gpio_led)
674 snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_GPIO_DATA,
675 spec->gpio_led);
676 }
677
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared
by kernel test robot
Hi Arnd,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1c273e10bc0cc7efb933e0ca10e260cdfc9f0b8c
commit: a734bbf694270dca8594a5c33375867dc31503f5 m68k: m68328: move platform code to separate files
date: 3 months ago
config: m68k-randconfig-r015-20210318 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a734bbf694270dca8594a5c33375867dc31503f5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/m68k/68000/dragen2.c:38:13: warning: no previous prototype for 'init_dragen2' [-Wmissing-prototypes]
38 | void __init init_dragen2(char *command, int size)
| ^~~~~~~~~~~~
arch/m68k/68000/dragen2.c: In function 'init_dragen2':
>> arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared (first use in this function)
73 | LSSA = (long) screen_bits;
| ^~~~~~~~~~~
arch/m68k/68000/dragen2.c:73:16: note: each undeclared identifier is reported only once for each function it appears in
vim +/screen_bits +73 arch/m68k/68000/dragen2.c
45
46 /* CSGB Init */
47 CSGBB = 0x4000;
48 CSB = 0x1a1;
49
50 /* CS8900 init */
51 /* PK3: hardware sleep function pin, active low */
52 PKSEL |= PK(3); /* select pin as I/O */
53 PKDIR |= PK(3); /* select pin as output */
54 PKDATA |= PK(3); /* set pin high */
55
56 /* PF5: hardware reset function pin, active high */
57 PFSEL |= PF(5); /* select pin as I/O */
58 PFDIR |= PF(5); /* select pin as output */
59 PFDATA &= ~PF(5); /* set pin low */
60
61 /* cs8900 hardware reset */
62 PFDATA |= PF(5);
63 { int i; for (i = 0; i < 32000; ++i); }
64 PFDATA &= ~PF(5);
65
66 /* INT1 enable (cs8900 IRQ) */
67 PDPOL &= ~PD(1); /* active high signal */
68 PDIQEG &= ~PD(1);
69 PDIRQEN |= PD(1); /* IRQ enabled */
70
71 #ifdef CONFIG_INIT_LCD
72 /* initialize LCD controller */
> 73 LSSA = (long) screen_bits;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 26/132] drivers/hwtracing/coresight/coresight-etm-cp14.c:15:5: error: redefinition of 'etm_readl_cp14'
by kernel test robot
Hi Kim,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: fc8f4214ea523919c42a8572789c7a7e467c2f07 [26/132] coresight: etm3x: Allow etm3x to be built as a module
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout fc8f4214ea523919c42a8572789c7a7e467c2f07
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/hwtracing/coresight/coresight-etm-cp14.c:15:5: error: redefinition of 'etm_readl_cp14'
15 | int etm_readl_cp14(u32 reg, unsigned int *val)
| ^~~~~~~~~~~~~~
In file included from drivers/hwtracing/coresight/coresight-etm.h:11,
from drivers/hwtracing/coresight/coresight-etm-cp14.c:13:
drivers/hwtracing/coresight/coresight-priv.h:162:19: note: previous definition of 'etm_readl_cp14' was here
162 | static inline int etm_readl_cp14(u32 off, unsigned int *val) { return 0; }
| ^~~~~~~~~~~~~~
>> drivers/hwtracing/coresight/coresight-etm-cp14.c:306:5: error: redefinition of 'etm_writel_cp14'
306 | int etm_writel_cp14(u32 reg, u32 val)
| ^~~~~~~~~~~~~~~
In file included from drivers/hwtracing/coresight/coresight-etm.h:11,
from drivers/hwtracing/coresight/coresight-etm-cp14.c:13:
drivers/hwtracing/coresight/coresight-priv.h:163:19: note: previous definition of 'etm_writel_cp14' was here
163 | static inline int etm_writel_cp14(u32 off, u32 val) { return 0; }
| ^~~~~~~~~~~~~~~
vim +/etm_readl_cp14 +15 drivers/hwtracing/coresight/coresight-etm-cp14.c
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 14
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 @15 int etm_readl_cp14(u32 reg, unsigned int *val)
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 16 {
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 17 switch (reg) {
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 18 case ETMCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 19 *val = etm_read(ETMCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 20 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 21 case ETMCCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 22 *val = etm_read(ETMCCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 23 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 24 case ETMTRIGGER:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 25 *val = etm_read(ETMTRIGGER);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 26 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 27 case ETMSR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 28 *val = etm_read(ETMSR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 29 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 30 case ETMSCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 31 *val = etm_read(ETMSCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 32 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 33 case ETMTSSCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 34 *val = etm_read(ETMTSSCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 35 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 36 case ETMTEEVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 37 *val = etm_read(ETMTEEVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 38 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 39 case ETMTECR1:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 40 *val = etm_read(ETMTECR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 41 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 42 case ETMFFLR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 43 *val = etm_read(ETMFFLR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 44 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 45 case ETMACVRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 46 *val = etm_read(ETMACVR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 47 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 48 case ETMACVRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 49 *val = etm_read(ETMACVR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 50 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 51 case ETMACVRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 52 *val = etm_read(ETMACVR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 53 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 54 case ETMACVRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 55 *val = etm_read(ETMACVR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 56 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 57 case ETMACVRn(4):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 58 *val = etm_read(ETMACVR4);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 59 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 60 case ETMACVRn(5):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 61 *val = etm_read(ETMACVR5);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 62 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 63 case ETMACVRn(6):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 64 *val = etm_read(ETMACVR6);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 65 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 66 case ETMACVRn(7):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 67 *val = etm_read(ETMACVR7);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 68 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 69 case ETMACVRn(8):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 70 *val = etm_read(ETMACVR8);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 71 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 72 case ETMACVRn(9):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 73 *val = etm_read(ETMACVR9);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 74 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 75 case ETMACVRn(10):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 76 *val = etm_read(ETMACVR10);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 77 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 78 case ETMACVRn(11):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 79 *val = etm_read(ETMACVR11);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 80 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 81 case ETMACVRn(12):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 82 *val = etm_read(ETMACVR12);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 83 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 84 case ETMACVRn(13):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 85 *val = etm_read(ETMACVR13);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 86 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 87 case ETMACVRn(14):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 88 *val = etm_read(ETMACVR14);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 89 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 90 case ETMACVRn(15):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 91 *val = etm_read(ETMACVR15);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 92 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 93 case ETMACTRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 94 *val = etm_read(ETMACTR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 95 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 96 case ETMACTRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 97 *val = etm_read(ETMACTR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 98 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 99 case ETMACTRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 100 *val = etm_read(ETMACTR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 101 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 102 case ETMACTRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 103 *val = etm_read(ETMACTR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 104 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 105 case ETMACTRn(4):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 106 *val = etm_read(ETMACTR4);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 107 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 108 case ETMACTRn(5):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 109 *val = etm_read(ETMACTR5);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 110 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 111 case ETMACTRn(6):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 112 *val = etm_read(ETMACTR6);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 113 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 114 case ETMACTRn(7):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 115 *val = etm_read(ETMACTR7);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 116 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 117 case ETMACTRn(8):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 118 *val = etm_read(ETMACTR8);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 119 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 120 case ETMACTRn(9):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 121 *val = etm_read(ETMACTR9);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 122 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 123 case ETMACTRn(10):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 124 *val = etm_read(ETMACTR10);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 125 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 126 case ETMACTRn(11):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 127 *val = etm_read(ETMACTR11);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 128 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 129 case ETMACTRn(12):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 130 *val = etm_read(ETMACTR12);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 131 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 132 case ETMACTRn(13):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 133 *val = etm_read(ETMACTR13);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 134 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 135 case ETMACTRn(14):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 136 *val = etm_read(ETMACTR14);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 137 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 138 case ETMACTRn(15):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 139 *val = etm_read(ETMACTR15);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 140 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 141 case ETMCNTRLDVRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 142 *val = etm_read(ETMCNTRLDVR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 143 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 144 case ETMCNTRLDVRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 145 *val = etm_read(ETMCNTRLDVR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 146 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 147 case ETMCNTRLDVRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 148 *val = etm_read(ETMCNTRLDVR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 149 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 150 case ETMCNTRLDVRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 151 *val = etm_read(ETMCNTRLDVR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 152 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 153 case ETMCNTENRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 154 *val = etm_read(ETMCNTENR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 155 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 156 case ETMCNTENRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 157 *val = etm_read(ETMCNTENR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 158 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 159 case ETMCNTENRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 160 *val = etm_read(ETMCNTENR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 161 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 162 case ETMCNTENRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 163 *val = etm_read(ETMCNTENR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 164 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 165 case ETMCNTRLDEVRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 166 *val = etm_read(ETMCNTRLDEVR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 167 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 168 case ETMCNTRLDEVRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 169 *val = etm_read(ETMCNTRLDEVR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 170 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 171 case ETMCNTRLDEVRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 172 *val = etm_read(ETMCNTRLDEVR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 173 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 174 case ETMCNTRLDEVRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 175 *val = etm_read(ETMCNTRLDEVR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 176 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 177 case ETMCNTVRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 178 *val = etm_read(ETMCNTVR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 179 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 180 case ETMCNTVRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 181 *val = etm_read(ETMCNTVR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 182 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 183 case ETMCNTVRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 184 *val = etm_read(ETMCNTVR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 185 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 186 case ETMCNTVRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 187 *val = etm_read(ETMCNTVR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 188 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 189 case ETMSQ12EVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 190 *val = etm_read(ETMSQ12EVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 191 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 192 case ETMSQ21EVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 193 *val = etm_read(ETMSQ21EVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 194 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 195 case ETMSQ23EVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 196 *val = etm_read(ETMSQ23EVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 197 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 198 case ETMSQ31EVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 199 *val = etm_read(ETMSQ31EVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 200 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 201 case ETMSQ32EVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 202 *val = etm_read(ETMSQ32EVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 203 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 204 case ETMSQ13EVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 205 *val = etm_read(ETMSQ13EVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 206 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 207 case ETMSQR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 208 *val = etm_read(ETMSQR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 209 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 210 case ETMEXTOUTEVRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 211 *val = etm_read(ETMEXTOUTEVR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 212 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 213 case ETMEXTOUTEVRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 214 *val = etm_read(ETMEXTOUTEVR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 215 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 216 case ETMEXTOUTEVRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 217 *val = etm_read(ETMEXTOUTEVR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 218 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 219 case ETMEXTOUTEVRn(3):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 220 *val = etm_read(ETMEXTOUTEVR3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 221 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 222 case ETMCIDCVRn(0):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 223 *val = etm_read(ETMCIDCVR0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 224 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 225 case ETMCIDCVRn(1):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 226 *val = etm_read(ETMCIDCVR1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 227 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 228 case ETMCIDCVRn(2):
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 229 *val = etm_read(ETMCIDCVR2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 230 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 231 case ETMCIDCMR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 232 *val = etm_read(ETMCIDCMR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 233 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 234 case ETMIMPSPEC0:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 235 *val = etm_read(ETMIMPSPEC0);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 236 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 237 case ETMIMPSPEC1:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 238 *val = etm_read(ETMIMPSPEC1);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 239 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 240 case ETMIMPSPEC2:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 241 *val = etm_read(ETMIMPSPEC2);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 242 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 243 case ETMIMPSPEC3:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 244 *val = etm_read(ETMIMPSPEC3);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 245 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 246 case ETMIMPSPEC4:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 247 *val = etm_read(ETMIMPSPEC4);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 248 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 249 case ETMIMPSPEC5:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 250 *val = etm_read(ETMIMPSPEC5);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 251 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 252 case ETMIMPSPEC6:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 253 *val = etm_read(ETMIMPSPEC6);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 254 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 255 case ETMIMPSPEC7:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 256 *val = etm_read(ETMIMPSPEC7);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 257 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 258 case ETMSYNCFR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 259 *val = etm_read(ETMSYNCFR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 260 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 261 case ETMIDR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 262 *val = etm_read(ETMIDR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 263 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 264 case ETMCCER:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 265 *val = etm_read(ETMCCER);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 266 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 267 case ETMEXTINSELR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 268 *val = etm_read(ETMEXTINSELR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 269 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 270 case ETMTESSEICR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 271 *val = etm_read(ETMTESSEICR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 272 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 273 case ETMEIBCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 274 *val = etm_read(ETMEIBCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 275 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 276 case ETMTSEVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 277 *val = etm_read(ETMTSEVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 278 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 279 case ETMAUXCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 280 *val = etm_read(ETMAUXCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 281 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 282 case ETMTRACEIDR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 283 *val = etm_read(ETMTRACEIDR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 284 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 285 case ETMVMIDCVR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 286 *val = etm_read(ETMVMIDCVR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 287 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 288 case ETMOSLSR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 289 *val = etm_read(ETMOSLSR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 290 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 291 case ETMOSSRR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 292 *val = etm_read(ETMOSSRR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 293 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 294 case ETMPDCR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 295 *val = etm_read(ETMPDCR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 296 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 297 case ETMPDSR:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 298 *val = etm_read(ETMPDSR);
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 299 return 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 300 default:
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 301 *val = 0;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 302 return -EINVAL;
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 303 }
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 304 }
a939fc5a71ad53 drivers/coresight/coresight-etm-cp14.c Pratik Patel 2014-11-03 305
:::::: The code at line 15 was first introduced by commit
:::::: a939fc5a71ad531633610242400c262e78731532 coresight-etm: add CoreSight ETM/PTM driver
:::::: TO: Pratik Patel <pratikp(a)codeaurora.org>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 91/132] drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:442:15: error: incompatible function pointer types initializing 'int drm_panel with an expression of type 'int (struct drm_panel struct drm_connector
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 2b06044daf23bebbc3e61d430dea24bb1779d0b8 [91/132] drm/panel: Add Feixin K101 IM2BA02 panel
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 2b06044daf23bebbc3e61d430dea24bb1779d0b8
# 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(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:442:15: error: incompatible function pointer types initializing 'int (*)(struct drm_panel *)' with an expression of type 'int (struct drm_panel *, struct drm_connector *)' [-Werror,-Wincompatible-function-pointer-types]
.get_modes = k101_im2ba02_get_modes,
^~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:474:30: error: too many arguments to function call, expected single argument 'panel', have 4 arguments
drm_panel_init(&ctx->panel, &dsi->dev, &k101_im2ba02_funcs,
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_panel.h:150:6: note: 'drm_panel_init' declared here
void drm_panel_init(struct drm_panel *panel);
^
>> drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c:477:8: error: implicit declaration of function 'drm_panel_of_backlight' [-Werror,-Wimplicit-function-declaration]
ret = drm_panel_of_backlight(&ctx->panel);
^
3 errors generated.
vim +442 drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c
436
437 static const struct drm_panel_funcs k101_im2ba02_funcs = {
438 .disable = k101_im2ba02_disable,
439 .unprepare = k101_im2ba02_unprepare,
440 .prepare = k101_im2ba02_prepare,
441 .enable = k101_im2ba02_enable,
> 442 .get_modes = k101_im2ba02_get_modes,
443 };
444
445 static int k101_im2ba02_dsi_probe(struct mipi_dsi_device *dsi)
446 {
447 struct k101_im2ba02 *ctx;
448 unsigned int i;
449 int ret;
450
451 ctx = devm_kzalloc(&dsi->dev, sizeof(*ctx), GFP_KERNEL);
452 if (!ctx)
453 return -ENOMEM;
454
455 mipi_dsi_set_drvdata(dsi, ctx);
456 ctx->dsi = dsi;
457
458 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++)
459 ctx->supplies[i].supply = regulator_names[i];
460
461 ret = devm_regulator_bulk_get(&dsi->dev, ARRAY_SIZE(ctx->supplies),
462 ctx->supplies);
463 if (ret < 0) {
464 DRM_DEV_ERROR(&dsi->dev, "Couldn't get regulators\n");
465 return ret;
466 }
467
468 ctx->reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW);
469 if (IS_ERR(ctx->reset)) {
470 DRM_DEV_ERROR(&dsi->dev, "Couldn't get our reset GPIO\n");
471 return PTR_ERR(ctx->reset);
472 }
473
> 474 drm_panel_init(&ctx->panel, &dsi->dev, &k101_im2ba02_funcs,
475 DRM_MODE_CONNECTOR_DSI);
476
> 477 ret = drm_panel_of_backlight(&ctx->panel);
478 if (ret)
479 return ret;
480
481 ret = drm_panel_add(&ctx->panel);
482 if (ret < 0)
483 return ret;
484
485 dsi->mode_flags = MIPI_DSI_MODE_VIDEO;
486 dsi->format = MIPI_DSI_FMT_RGB888;
487 dsi->lanes = 4;
488
489 ret = mipi_dsi_attach(dsi);
490 if (ret < 0) {
491 drm_panel_remove(&ctx->panel);
492 return ret;
493 }
494
495 return 0;
496 }
497
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-rt-devel:linux-5.12.y-rt-rebase 30/193] kernel/printk/printk.c:2654:4: error: implicit declaration of function 'latched_seq_write'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.12.y-rt-rebase
head: 2664a7f5d3d24da4b2657a1e933181d376b77616
commit: bc04b285e73c1a64fd5d9723af20a21ce0feb628 [30/193] printk: use seqcount_latch for console_seq
config: parisc-randconfig-r036-20210318 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.12.y-rt-rebase
git checkout bc04b285e73c1a64fd5d9723af20a21ce0feb628
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/printk/printk.c:62:
kernel/printk/internal.h:56:20: warning: no previous prototype for 'vprintk_func' [-Wmissing-prototypes]
56 | __printf(1, 0) int vprintk_func(const char *fmt, va_list args) { return 0; }
| ^~~~~~~~~~~~
kernel/printk/printk.c:176:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes]
176 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/printk.c:2288:2: error: #error FIXME
2288 | #error FIXME
| ^~~~~
kernel/printk/printk.c: In function 'console_unlock':
kernel/printk/printk.c:2648:9: error: implicit declaration of function 'latched_seq_read_nolock' [-Werror=implicit-function-declaration]
2648 | seq = latched_seq_read_nolock(&console_seq);
| ^~~~~~~~~~~~~~~~~~~~~~~
>> kernel/printk/printk.c:2654:4: error: implicit declaration of function 'latched_seq_write' [-Werror=implicit-function-declaration]
2654 | latched_seq_write(&console_seq, r.info->seq);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/latched_seq_write +2654 kernel/printk/printk.c
2582
2583 /**
2584 * console_unlock - unlock the console system
2585 *
2586 * Releases the console_lock which the caller holds on the console system
2587 * and the console driver list.
2588 *
2589 * While the console_lock was held, console output may have been buffered
2590 * by printk(). If this is the case, console_unlock(); emits
2591 * the output prior to releasing the lock.
2592 *
2593 * If there is output waiting, we wake /dev/kmsg and syslog() users.
2594 *
2595 * console_unlock(); may be called from any context.
2596 */
2597 void console_unlock(void)
2598 {
2599 static char ext_text[CONSOLE_EXT_LOG_MAX];
2600 static char text[CONSOLE_LOG_MAX];
2601 unsigned long flags;
2602 bool do_cond_resched, retry;
2603 struct printk_info info;
2604 struct printk_record r;
2605 u64 seq;
2606
2607 if (console_suspended) {
2608 up_console_sem();
2609 return;
2610 }
2611
2612 prb_rec_init_rd(&r, &info, text, sizeof(text));
2613
2614 /*
2615 * Console drivers are called with interrupts disabled, so
2616 * @console_may_schedule should be cleared before; however, we may
2617 * end up dumping a lot of lines, for example, if called from
2618 * console registration path, and should invoke cond_resched()
2619 * between lines if allowable. Not doing so can cause a very long
2620 * scheduling stall on a slow console leading to RCU stall and
2621 * softlockup warnings which exacerbate the issue with more
2622 * messages practically incapacitating the system.
2623 *
2624 * console_trylock() is not able to detect the preemptive
2625 * context reliably. Therefore the value must be stored before
2626 * and cleared after the "again" goto label.
2627 */
2628 do_cond_resched = console_may_schedule;
2629 again:
2630 console_may_schedule = 0;
2631
2632 /*
2633 * We released the console_sem lock, so we need to recheck if
2634 * cpu is online and (if not) is there at least one CON_ANYTIME
2635 * console.
2636 */
2637 if (!can_use_console()) {
2638 console_locked = 0;
2639 up_console_sem();
2640 return;
2641 }
2642
2643 for (;;) {
2644 size_t ext_len = 0;
2645 size_t len;
2646
2647 skip:
2648 seq = latched_seq_read_nolock(&console_seq);
2649 if (!prb_read_valid(prb, seq, &r))
2650 break;
2651
2652 if (seq != r.info->seq) {
2653 console_dropped += r.info->seq - seq;
> 2654 latched_seq_write(&console_seq, r.info->seq);
2655 seq = r.info->seq;
2656 }
2657
2658 if (suppress_message_printing(r.info->level)) {
2659 /*
2660 * Skip record we have buffered and already printed
2661 * directly to the console when we received it, and
2662 * record that has level above the console loglevel.
2663 */
2664 latched_seq_write(&console_seq, seq + 1);
2665 goto skip;
2666 }
2667
2668 /* Output to all consoles once old messages replayed. */
2669 if (unlikely(exclusive_console &&
2670 seq >= exclusive_console_stop_seq)) {
2671 exclusive_console = NULL;
2672 }
2673
2674 /*
2675 * Handle extended console text first because later
2676 * record_print_text() will modify the record buffer in-place.
2677 */
2678 if (nr_ext_console_drivers) {
2679 ext_len = info_print_ext_header(ext_text,
2680 sizeof(ext_text),
2681 r.info);
2682 ext_len += msg_print_ext_body(ext_text + ext_len,
2683 sizeof(ext_text) - ext_len,
2684 &r.text_buf[0],
2685 r.info->text_len,
2686 &r.info->dev_info);
2687 }
2688 len = record_print_text(&r,
2689 console_msg_format & MSG_FORMAT_SYSLOG,
2690 printk_time);
2691 latched_seq_write(&console_seq, seq + 1);
2692
2693 printk_safe_enter_irqsave(flags);
2694
2695 /*
2696 * While actively printing out messages, if another printk()
2697 * were to occur on another CPU, it may wait for this one to
2698 * finish. This task can not be preempted if there is a
2699 * waiter waiting to take over.
2700 */
2701 console_lock_spinning_enable();
2702
2703 stop_critical_timings(); /* don't trace print latency */
2704 call_console_drivers(ext_text, ext_len, text, len);
2705 start_critical_timings();
2706
2707 if (console_lock_spinning_disable_and_check()) {
2708 printk_safe_exit_irqrestore(flags);
2709 return;
2710 }
2711
2712 printk_safe_exit_irqrestore(flags);
2713
2714 if (do_cond_resched)
2715 cond_resched();
2716 }
2717
2718 console_locked = 0;
2719
2720 up_console_sem();
2721
2722 /*
2723 * Someone could have filled up the buffer again, so re-check if there's
2724 * something to flush. In case we cannot trylock the console_sem again,
2725 * there's a new owner and the console_unlock() from them will do the
2726 * flush, no worries.
2727 */
2728 retry = prb_read_valid(prb, latched_seq_read_nolock(&console_seq), NULL);
2729 if (retry && console_trylock())
2730 goto again;
2731 }
2732 EXPORT_SYMBOL(console_unlock);
2733
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[sashal-linux-stable:queue-5.4 87/132] drivers/scsi/sd.c:560:17: error: use of undeclared identifier 'SCSI_CMD_RETRIES_NO_LIMIT'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 066f5c8dc4f58c8cc3b6361333440249560dc526 [87/132] scsi: sd: Allow user to configure command retries
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 436c6c9c20cc522c92a923440a5fc509c342a7db)
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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 066f5c8dc4f58c8cc3b6361333440249560dc526
# 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(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/scsi/sd.c:560:17: error: use of undeclared identifier 'SCSI_CMD_RETRIES_NO_LIMIT'
if (retries == SCSI_CMD_RETRIES_NO_LIMIT || retries <= SD_MAX_RETRIES) {
^
1 error generated.
vim +/SCSI_CMD_RETRIES_NO_LIMIT +560 drivers/scsi/sd.c
547
548 static ssize_t
549 max_retries_store(struct device *dev, struct device_attribute *attr,
550 const char *buf, size_t count)
551 {
552 struct scsi_disk *sdkp = to_scsi_disk(dev);
553 struct scsi_device *sdev = sdkp->device;
554 int retries, err;
555
556 err = kstrtoint(buf, 10, &retries);
557 if (err)
558 return err;
559
> 560 if (retries == SCSI_CMD_RETRIES_NO_LIMIT || retries <= SD_MAX_RETRIES) {
561 sdkp->max_retries = retries;
562 return count;
563 }
564
565 sdev_printk(KERN_ERR, sdev, "max_retries must be between -1 and %d\n",
566 SD_MAX_RETRIES);
567 return -EINVAL;
568 }
569
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-next:master 4960/5787] include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_350' declared with attribute error: BUILD_BUG_ON failed: KMALLOC_MIN_SIZE > 16 || KMALLOC_SHIFT_HIGH < 10
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f00397ee41c79b6155b9b44abd0055b2c0621349
commit: 1a58eef5def955feead11a1a983fc2e8c8750800 [4960/5787] selftests: add a kselftest for SLUB debugging functionality
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 1a58eef5def955feead11a1a983fc2e8c8750800
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:
lib/test_slub.c: In function 'resiliency_test':
>> include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_350' declared with attribute error: BUILD_BUG_ON failed: KMALLOC_MIN_SIZE > 16 || KMALLOC_SHIFT_HIGH < 10
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:301:4: note: in definition of macro '__compiletime_assert'
301 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
lib/test_slub.c:101:2: note: in expansion of macro 'BUILD_BUG_ON'
101 | BUILD_BUG_ON(KMALLOC_MIN_SIZE > 16 || KMALLOC_SHIFT_HIGH < 10);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_350 +320 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 306
eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @320 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321
:::::: The code at line 320 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months