Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4889128pjb; Mon, 27 Jul 2020 07:40:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOq72/4yWrFYoz15qwtoLUe/XzUXlvaeC8aeY0CS5qr1HJh/xFAHJE9V6omjiijMDHDg3Z X-Received: by 2002:aa7:d3c8:: with SMTP id o8mr21650939edr.294.1595860827077; Mon, 27 Jul 2020 07:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860827; cv=none; d=google.com; s=arc-20160816; b=W9U4sGTomnSY+m4D9S0nTx/xhBxalhTNuvdrdWQ+ejBhPJBTiWNjFTIpks4F1M0TRF B0cnndsTKEiz1GlRF5T7HCQFGQgDT0nC+wXKxDZwcGeJ6tSB72QWF6MGAOqu/40JWib3 6IoP0+7rSONxs4Z+XZwFjCbaTr+rCym8ik3CN0vFcXK1b1SAPaN7q1H2+QOYQchRcg3J OBCTbYGP1S3BoWYKdzjxC5r9imUzZpVeTfCDS4D+FmkZmPzEemDagCuG6gQMSmlqHGFM +jNXpxRqHvj9cFduN6YPWvbJIEFkC8DZd5AH0JDGbMFAqPWi+QC2l2z4IS/fMf7VKfUv YLTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Rbr8kTVNFsB01dFLLBWrZje0rPvp5mjxOijlUgEtiUI=; b=RF3Tfc2tdFpgaHR9m1r5AP8pHQ3itGVu68re8I+/vG1NVtol0h/nMjPlUMQ6XKLiL8 TX3Bwr3Mgg27JLEQPscBgdgyuzOuttwgQ736aYs3AiBdty7Vc3yAvlznnii4T8F/B6H2 vnmyJM3YGP8rjw3UEb3yrFhODmiQ3gL8XDZlc4zNc9pvydO5hL7v96VuXNxXghel8Zq2 iKS5JBWTs6xHiJ3s0SzEIuMB42NW0PDlhRneDsrj1ia60w+/diddNCGA5I3h/1xgzA4w fGFmrbeS2LtBCq89kFPkIZ/+JZ5SGZT7eRYdw8B2h3FCwccGB92y+t5QYcrFSIlcqDj+ TGxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="g/cmzO+O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si5837291ejz.445.2020.07.27.07.40.04; Mon, 27 Jul 2020 07:40:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="g/cmzO+O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729816AbgG0OKS (ORCPT + 99 others); Mon, 27 Jul 2020 10:10:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:32878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729146AbgG0OKP (ORCPT ); Mon, 27 Jul 2020 10:10:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1577520838; Mon, 27 Jul 2020 14:10:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859014; bh=cqwlgHyPsfPuA8z4WrenfxsuVzf4oQ5bGA82xRt0E4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g/cmzO+O42bAtRc2QQU2K2uPilixwpnFikEUHPPihIoMQtFS2aoPmcm1pbfr2p21G Ip75HiiEYgJ3iPwWuaTHx2WcvhZRRW7SQv2BFw8BlbuGqfSHF3oLucvD8Udvp8zkdd h5REMNwBmVW6eGKV1D4gT0Z/NhGGR5gD78NtBn24= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov , Sasha Levin Subject: [PATCH 4.19 07/86] xtensa: fix __sync_fetch_and_{and,or}_4 declarations Date: Mon, 27 Jul 2020 16:03:41 +0200 Message-Id: <20200727134914.712708685@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Max Filippov [ Upstream commit 73f9941306d5ce030f3ffc7db425c7b2a798cf8e ] 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 Signed-off-by: Sasha Levin --- arch/xtensa/kernel/xtensa_ksyms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/kernel/xtensa_ksyms.c b/arch/xtensa/kernel/xtensa_ksyms.c index 4092555828b13..24cf6972eacea 100644 --- a/arch/xtensa/kernel/xtensa_ksyms.c +++ b/arch/xtensa/kernel/xtensa_ksyms.c @@ -87,13 +87,13 @@ void __xtensa_libgcc_window_spill(void) } EXPORT_SYMBOL(__xtensa_libgcc_window_spill); -unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v) +unsigned int __sync_fetch_and_and_4(volatile void *p, unsigned int v) { BUG(); } EXPORT_SYMBOL(__sync_fetch_and_and_4); -unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v) +unsigned int __sync_fetch_and_or_4(volatile void *p, unsigned int v) { BUG(); } -- 2.25.1