Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2143024iof; Tue, 7 Jun 2022 21:11:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL3TtIjEdWEJyTMSLUBFOnyJ927383TpG3kt1l/gS9T6xqDN7yJNkjCd7FLUbrQY7okOg5 X-Received: by 2002:a05:6a02:19c:b0:3aa:1bf8:7388 with SMTP id bj28-20020a056a02019c00b003aa1bf87388mr28281755pgb.455.1654661475244; Tue, 07 Jun 2022 21:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654661475; cv=none; d=google.com; s=arc-20160816; b=O5wxObMwa0EIhWqgHn2Fo5VRe6ENsKDwo/RdYETF4Cn1dnIJ/Wlu5uqzjSIXKYimye leDD7fmm42WyInOV/E7AgFyfTn5KyTwZThmxHgjb3C/FCz7bN9o577Vty2uXJuYv5398 33NXI/D+6N7hr60YeoWO/iNNZLtsZA6RnBLUlRBO2qpayrI48bzM9GKIvqjtPOXIfoLU fz99H4mvXjK/aM/EORh2MDsksf0gYX1+nmeYjIOKO5KvzTSkEZYIs8RnQ0lArp6FU8Z1 mv6BwsBTvqlBeHhSuWzW0GV1+Xj9MnFUBHnzwFpFUTL2sHCUZZpbPDJ/vUOVhYenH/la fp4Q== 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=FL4Ps+8TxblUgVKk/TZmZdGJtU1kM4e2ttfit21wZtSoWLxQfIeNNY6xfqWI1XYJSj SMpJtgCJIj/TJX0bsC//5s6vTBckYunL7B89Va3sw73H3nmL0AANY3FG/6ckGlqj6OlU v14sL9rOX9FGY1Qa1LiBepdK8xPvUC459mRKqLkDlLLVeNkXBXQ3yOtZhnkkSC1NUZJi qXv9RAp+xDB2cMKf5i6UaKc6Ug4dWZK3zpwtTRlDPWrm+TcnzmR5tIqbmJSmu5SrjScG jk/ajmCasFUpoKtV7ZeWRy6QPEOckRFlQ8v/j2nxEULfb3Chk8v6xd9CfcXn7hQtASNx VYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2qqYt5rI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 35-20020a631763000000b003f84816d04fsi27032383pgx.8.2022.06.07.21.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2qqYt5rI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0263020016F; Tue, 7 Jun 2022 20:43:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242340AbiFGR2d (ORCPT + 99 others); Tue, 7 Jun 2022 13:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346263AbiFGRYN (ORCPT ); Tue, 7 Jun 2022 13:24:13 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FEA760E9; Tue, 7 Jun 2022 10:22:11 -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 sin.source.kernel.org (Postfix) with ESMTPS id D59DECE2015; Tue, 7 Jun 2022 17:22:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEADCC34115; Tue, 7 Jun 2022 17:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622528; bh=y268Ia38mDcy8oVClEGS/uTeQtbK8P1DKzIAcwjQsRk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2qqYt5rIxB8zewUv6ceMpto59NW7v6+VbrO8IVW/bpOwHlMDNlZBc2Ncdojl7BHt1 LpZWLbKGT3CvaHDlYKmqAKT+vRP7DAsktFP+L8J4xKlUS6Nh+GwKdPZ/rYAWxVg7Le C6v4iWKsyZ6POMBP0J6/Fb6jQ4gRe88Rqq52nUu8= 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.10 091/452] m68k: atari: Make Atari ROM port I/O write macros return void Date: Tue, 7 Jun 2022 18:59:08 +0200 Message-Id: <20220607164911.270481433@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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