Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1447986ioo; Sun, 22 May 2022 15:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMu3xzFNX01iX7yBw0u40RIzT27GAkkQyYMm/PNQS6oDM5I0oiOwMCN7rd9UWSBjmmvMSr X-Received: by 2002:a17:907:628c:b0:6ee:70cf:d59 with SMTP id nd12-20020a170907628c00b006ee70cf0d59mr17204559ejc.402.1653257015897; Sun, 22 May 2022 15:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653257015; cv=none; d=google.com; s=arc-20160816; b=Pj2KSxcj3FLGzG52OEyZ/4kqd5Hyn2WCSQas8II+Rn5vYOmxpRRvsjcORHsjL/kxAU BBD8oQVQ9gdTaHXKsB03K4rYSj5rBr6ayCQidxnxkoHFfrgNPJkUROBr+dRWxOfG7fjK w9ffcLCqRl1/XdKtufsoAfSFRXlgarPPqZvdQyG/PDmmbSFaogUVPtvM56KPTDeEEHPd wi1gBtcwRilVF5YAYw/O7JyN9A5g9zLd1s+RMgLca1A+K4LlLXoUcAWM6dlC9lTR3ImP vXAGPdoRxbFwknW/DI8frvkaC6PTgwXfEWFKeGXMvwljdar7tCLRZmUg64Sw3OpLpbli ka+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=F9NhlZ1BJrBJt+HtsXVIjBK2G+mZ/27MPaPylnb4RNE=; b=FMPat8p1zNhcdzzpb9B9+8vun3JPsvE/JEeTdcTLyp9gM4jcp02z27QFq6he/gr2vP HBuHUUQ/eUtAH+b9T3HDn84PKoyt2RsgCdmSJTMtfpRxW9FU3XU4vrg2CSF6XEe5W+DQ nG5IXAzYWB/HVE/8Ho8wFneHjw5V4Sb8iCADCcC6kSPqqjptCTidZ8OtSkrw1VmzlU+J KcX0idvV+7oz+XJhGCqdr0zZlWzaqs0DM5GyDOV7uH7xDgjjKo/2Z1IJWkIhEb8jTxod NYqSpA1MbL4/0hMSy7JlL1JjNJxkkTRZIWp65TvO5UChH4UifwouOgdtFmPmVMnBDtbP JBfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Jt6eAQ/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a056402280500b0041d70951197si17035132ede.530.2022.05.22.15.02.55; Sun, 22 May 2022 15:03:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Jt6eAQ/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350502AbiETOwn (ORCPT + 99 others); Fri, 20 May 2022 10:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244321AbiETOwl (ORCPT ); Fri, 20 May 2022 10:52:41 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1079C7222C for ; Fri, 20 May 2022 07:52:40 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-f17f1acffeso10567821fac.4 for ; Fri, 20 May 2022 07:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:content-language:to :cc:references:from:subject:in-reply-to:content-transfer-encoding; bh=F9NhlZ1BJrBJt+HtsXVIjBK2G+mZ/27MPaPylnb4RNE=; b=Jt6eAQ/B+zcTSyiZXDjHSNcrBTdKeQdAqLLh0JQZzLX3EgYQZg+X7VFmHLZOYPNq1T Rpf8lY7QAZZK9DcjFQvEqc2njXqcBRvQIdZyp+CCdQ2csSRvEAsNNsFjWbAnysBFcsit 25kicyco7anuiRhakdy0AYeUoRgUO4Nm1QeYZzI/q79iRDdKuFS8hmNMF96BRckv0DRs J+DYumIHAcnTwfVFwUHLBs2P16wV/0UwheKPLkQhe03eSMDGhD/fHIhcBVTV/tyynZPi EGhwfZrKKWmcLspVmIjS/J4df89yHXsGMMGZayw9/gMxTLfgwE8MHufHDInCwgo3gnyJ VfBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=F9NhlZ1BJrBJt+HtsXVIjBK2G+mZ/27MPaPylnb4RNE=; b=mRGHLMRh/qWUHykt6uZpdG/k6/sbd8aFsZWHnJtwkm+T8PmeJthVqees+e9YCUDRiG WxIrbwOLIY3ZrBlKFrA6DGvxCRBFqt1ui84xRsYra2xnd87fqJ+wPDzNDljDipL80z4m RqAHyBjL8q2UY1Hon/KEVtH/gwjHf2PDZ0yyWUhbige3vjhaqZ2zj8JkoYjhZGybzEdT +sTu4BDwMEJ5dgWUlPLmY+4QVRo+sX++uaLk+YTPYdo+7SKatV1DmzIuku6VS+ovp8g/ dIlxttea1/t8i7NJ0Op2q0eFQLI6qnPFDKF+XFSBxQnCpCBk4riKHbFFTVACunQQK3OH RzJw== X-Gm-Message-State: AOAM532B4OdlNZ0GaRV4dUmG9HqbcL+8n/LW/Wx7dV1JGlSg+YT/y4vH uqMOgOTOUUkNaxy+RqlJxgo= X-Received: by 2002:a05:6870:248a:b0:e5:9e62:58e0 with SMTP id s10-20020a056870248a00b000e59e6258e0mr6174361oaq.21.1653058359435; Fri, 20 May 2022 07:52:39 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id p7-20020a05683019c700b00606ad72bdcbsm974276otp.38.2022.05.20.07.52.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 07:52:37 -0700 (PDT) Sender: Guenter Roeck Message-ID: <286a1eef-e857-a31f-839b-00a4c835dfa9@roeck-us.net> Date: Fri, 20 May 2022 07:52:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org, kernel test robot References: From: Guenter Roeck Subject: Re: [PATCH] m68k: atari: Make Atari ROM port I/O write macros return void In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 5/20/22 07:32, Geert Uytterhoeven wrote: > 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 > --- > Survived m68k/allmodconfig. > To be queued in the m68k tree for v5.19. > > Removing the casts instead causes issues with functions propagating void > return values (return expression in void function), which BTW sparse > complains about, too. We live and learn. I didn't even know that this was valid syntax. I thought it might be easier to just fix that code, but coccinelle reports that there are hundreds of places in the kernel where this is done. Outch. Guenter