Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2192487iof; Tue, 7 Jun 2022 22:45:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJwVvDfwiMmMHSW5WWIpiBffVaEBZaa3z8o3/Cfkrn0fLtwJt1oKBtwD3KF0DVIXKzCrFX X-Received: by 2002:a63:554b:0:b0:3fd:be86:9757 with SMTP id f11-20020a63554b000000b003fdbe869757mr12039635pgm.395.1654667110478; Tue, 07 Jun 2022 22:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667110; cv=none; d=google.com; s=arc-20160816; b=rlrZx5yaMIeDkw3pEcRUFh7JEPq8C5qDJM3Bjcs3JRxr15zaIHVxzE1nYjcqh3+40Q yTcUpYMKsfLWU0Xv1nYPecC/iAULZtc7uEjAprdp+RIpYp8AduCg+FAQ7liFEe73+gaZ azf3ZrcmL+T3vr2wJ23/fQj6I4pqrYNni4V6RpjAw906by9hXz2BKuHati2xAsconYoT PY4ZfFdBrbGuzKKdlnVFQ/qJrzj4FyljIftNSkGXHuYi8So8AJyPyVMWzbpFncD2JS9Q ug+Od9r75VgMuLnbRTQRxj/SyT5FivR6q+fvDpikJbltdQw5gkedWIT63PHOdq+QCPa8 8TAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RMdQnI73pwxoY/W4+TXOmf9V3zeXrgb4zHiZMJwBs0Y=; b=Ga2jZib+9/4X4/y4jSXfBaTNegInB1eH2JEBidSNlB9iFh+hOw2VmNxn9J1DihDlG6 hIWRqJiBON2S2gqw8n2tYOMkL/VnU515NcDgOiwn3Zs/HJ87nXqTfsP1Yqdr/MPbzsX9 wqNFTU+NqqIfFUc3daHO+InyEdN8DvlcEBPWgUUDxHLv2oudqrO4JXook43y+HjqWvFJ +nLLCNo3cwv2lITtKX3h5e0j/jqxI6SbikzaP6xrtkJCpTdfNNuILPvw50ycC497TiuR gkDHu2BbyESWqLsTllXo1RWrUvaeeAiCedIDY57QSMy4vAdizynh5hv2lP9Y7++szaoQ 3RsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nNU+jYK6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l12-20020a056a00140c00b0051c395582d3si5905858pfu.186.2022.06.07.22.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:45:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nNU+jYK6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A170C3D501C; Tue, 7 Jun 2022 22:10:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242936AbiFGScY (ORCPT + 99 others); Tue, 7 Jun 2022 14:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351758AbiFGSCT (ORCPT ); Tue, 7 Jun 2022 14:02:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7195811991A; Tue, 7 Jun 2022 10:45:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 09EC3616B1; Tue, 7 Jun 2022 17:45:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11F79C385A5; Tue, 7 Jun 2022 17:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623915; bh=y268Ia38mDcy8oVClEGS/uTeQtbK8P1DKzIAcwjQsRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nNU+jYK6zpAF7I34HNTv7kNYaEozJ3WXmye9apRAikcICWKCHuG64Vkj2OJYHEeU8 smP5MskQd5cvRRuayU8ToqgNFb09oDzGT2DJyijYTrNazZ/nSiJNdKJu8qzTpZ+Psd hFmooPBX05HiQF242gHrB7vOqGR9HCsvM5sOEW0s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Guenter Roeck , Geert Uytterhoeven , Michael Schmitz , Sasha Levin Subject: [PATCH 5.15 139/667] m68k: atari: Make Atari ROM port I/O write macros return void Date: Tue, 7 Jun 2022 18:56:44 +0200 Message-Id: <20220607164938.989109999@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164934.766888869@linuxfoundation.org> References: <20220607164934.766888869@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit 30b5e6ef4a32ea4985b99200e06d6660a69f9246 ] The macros implementing Atari ROM port I/O writes do not cast away their output, unlike similar implementations for other I/O buses. When they are combined using conditional expressions in the definitions of outb() and friends, this triggers sparse warnings like: drivers/net/appletalk/cops.c:382:17: error: incompatible types in conditional expression (different base types): drivers/net/appletalk/cops.c:382:17: unsigned char drivers/net/appletalk/cops.c:382:17: void Fix this by adding casts to "void". Reported-by: kernel test robot Reported-by: Guenter Roeck Signed-off-by: Geert Uytterhoeven Reviewed-by: Guenter Roeck Reviewed-by: Michael Schmitz Link: https://lore.kernel.org/r/c15bedc83d90a14fffcd5b1b6bfb32b8a80282c5.1653057096.git.geert@linux-m68k.org Signed-off-by: Sasha Levin --- arch/m68k/include/asm/raw_io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/m68k/include/asm/raw_io.h b/arch/m68k/include/asm/raw_io.h index 80eb2396d01e..3ba40bc1dfaa 100644 --- a/arch/m68k/include/asm/raw_io.h +++ b/arch/m68k/include/asm/raw_io.h @@ -80,14 +80,14 @@ ({ u16 __v = le16_to_cpu(*(__force volatile u16 *) (addr)); __v; }) #define rom_out_8(addr, b) \ - ({u8 __maybe_unused __w, __v = (b); u32 _addr = ((u32) (addr)); \ + (void)({u8 __maybe_unused __w, __v = (b); u32 _addr = ((u32) (addr)); \ __w = ((*(__force volatile u8 *) ((_addr | 0x10000) + (__v<<1)))); }) #define rom_out_be16(addr, w) \ - ({u16 __maybe_unused __w, __v = (w); u32 _addr = ((u32) (addr)); \ + (void)({u16 __maybe_unused __w, __v = (w); u32 _addr = ((u32) (addr)); \ __w = ((*(__force volatile u16 *) ((_addr & 0xFFFF0000UL) + ((__v & 0xFF)<<1)))); \ __w = ((*(__force volatile u16 *) ((_addr | 0x10000) + ((__v >> 8)<<1)))); }) #define rom_out_le16(addr, w) \ - ({u16 __maybe_unused __w, __v = (w); u32 _addr = ((u32) (addr)); \ + (void)({u16 __maybe_unused __w, __v = (w); u32 _addr = ((u32) (addr)); \ __w = ((*(__force volatile u16 *) ((_addr & 0xFFFF0000UL) + ((__v >> 8)<<1)))); \ __w = ((*(__force volatile u16 *) ((_addr | 0x10000) + ((__v & 0xFF)<<1)))); }) -- 2.35.1