* [drm-drm-intel:for-linux-next 4/5] drivers/gpu/drm/i915/gt/gen8_ppgtt.c:392:24: warning: duplicate 'inline' declaration specifier
@ 2020-05-12 0:09 kbuild test robot
2020-05-12 17:53 ` Nick Desaulniers
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-05-12 0:09 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]
tree: git://anongit.freedesktop.org/drm/drm-intel for-linux-next
head: 1c8ee8b92fb6ac9d5975147cc902e8c142eca338
commit: 84eac0c65940d9633247b0c8c826d4bcb7307351 [4/5] drm/i915/gt: Force pte cacheline to main memory
config: x86_64-randconfig-a011-20200511 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 68a9356bdea69dbcec1233f8b1fab47e72fca991)
reproduce:
git checkout 84eac0c65940d9633247b0c8c826d4bcb7307351
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gt/gen8_ppgtt.c:392:24: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier]
static __always_inline inline void
^
include/linux/compiler_types.h:138:16: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
1 warning generated.
vim +/inline +392 drivers/gpu/drm/i915/gt/gen8_ppgtt.c
391
> 392 static __always_inline inline void
393 write_pte(gen8_pte_t *pte, const gen8_pte_t val)
394 {
395 /* Magic delays? Or can we refine these to flush all in one pass? */
396 *pte = val;
397 wmb(); /* cpu to cache */
398 clflush(pte); /* cache to memory */
399 wmb(); /* visible to all */
400 }
401
---
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: 37738 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [drm-drm-intel:for-linux-next 4/5] drivers/gpu/drm/i915/gt/gen8_ppgtt.c:392:24: warning: duplicate 'inline' declaration specifier
2020-05-12 0:09 [drm-drm-intel:for-linux-next 4/5] drivers/gpu/drm/i915/gt/gen8_ppgtt.c:392:24: warning: duplicate 'inline' declaration specifier kbuild test robot
@ 2020-05-12 17:53 ` Nick Desaulniers
0 siblings, 0 replies; 2+ messages in thread
From: Nick Desaulniers @ 2020-05-12 17:53 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2420 bytes --]
On Mon, May 11, 2020 at 5:09 PM kbuild test robot <lkp@intel.com> wrote:
>
> tree: git://anongit.freedesktop.org/drm/drm-intel for-linux-next
> head: 1c8ee8b92fb6ac9d5975147cc902e8c142eca338
> commit: 84eac0c65940d9633247b0c8c826d4bcb7307351 [4/5] drm/i915/gt: Force pte cacheline to main memory
> config: x86_64-randconfig-a011-20200511 (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 68a9356bdea69dbcec1233f8b1fab47e72fca991)
> reproduce:
> git checkout 84eac0c65940d9633247b0c8c826d4bcb7307351
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/gpu/drm/i915/gt/gen8_ppgtt.c:392:24: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier]
> static __always_inline inline void
> ^
IIRC __always_inline expands to `inline` plus the __attribute__, so
you don't need __always_inline + inline. I hit something similar
yesterday with `noinline`.
> include/linux/compiler_types.h:138:16: note: expanded from macro 'inline'
> #define inline inline __gnu_inline __inline_maybe_unused notrace
> ^
> 1 warning generated.
>
> vim +/inline +392 drivers/gpu/drm/i915/gt/gen8_ppgtt.c
>
> 391
> > 392 static __always_inline inline void
> 393 write_pte(gen8_pte_t *pte, const gen8_pte_t val)
> 394 {
> 395 /* Magic delays? Or can we refine these to flush all in one pass? */
> 396 *pte = val;
> 397 wmb(); /* cpu to cache */
> 398 clflush(pte); /* cache to memory */
> 399 wmb(); /* visible to all */
> 400 }
> 401
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe(a)googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202005120804.nsmIMr1X%25lkp%40intel.com.
--
Thanks,
~Nick Desaulniers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-12 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12 0:09 [drm-drm-intel:for-linux-next 4/5] drivers/gpu/drm/i915/gt/gen8_ppgtt.c:392:24: warning: duplicate 'inline' declaration specifier kbuild test robot
2020-05-12 17:53 ` Nick Desaulniers
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.