xtensa: fix __sync_fetch_and_{and,or}_4 declarations
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 4 Jun 2020 20:37:10 +0000 (13:37 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 2 Jul 2020 15:35:02 +0000 (08:35 -0700)
commit73f9941306d5ce030f3ffc7db425c7b2a798cf8e
tree03c3efe85fcc4ff51da6fcfbb73c62a5cc5949d6
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
xtensa: fix __sync_fetch_and_{and,or}_4 declarations

Building xtensa kernel with gcc-10 produces the following warnings:
  arch/xtensa/kernel/xtensa_ksyms.c:90:15: warning: conflicting types
    for built-in function ‘__sync_fetch_and_and_4’;
    expected ‘unsigned int(volatile void *, unsigned int)’
    [-Wbuiltin-declaration-mismatch]
  arch/xtensa/kernel/xtensa_ksyms.c:96:15: warning: conflicting types
    for built-in function ‘__sync_fetch_and_or_4’;
    expected ‘unsigned int(volatile void *, unsigned int)’
    [-Wbuiltin-declaration-mismatch]

Fix declarations of these functions to avoid the warning.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/xtensa_ksyms.c