Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp431244rwi; Wed, 12 Oct 2022 23:25:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DRIxSMM/FQ499lD3sFcSaAJ4spm/nALWIpcMCpdNzSLU900tsW7OGTtLjxPvAzMNvN+xw X-Received: by 2002:a05:6402:28ca:b0:43b:5235:f325 with SMTP id ef10-20020a05640228ca00b0043b5235f325mr30460308edb.320.1665642327646; Wed, 12 Oct 2022 23:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665642327; cv=none; d=google.com; s=arc-20160816; b=yEpSnYfCVn+Y49yQ1/9XMWjfantGeiEmgUeyvIw3v0mNg2lae0TJ1gaH3LiQekMNwk /B6Km4St6UnfcUEzs7+80K+eXsOaUm+Qjb5BQw+oeRCeZdstqaf6rhwMt5dltIebx5g5 wnTj8scAP9iuuOWVQsXO2tPnZDqHJ4uQHjTfE+O7B8f3Tpi70e23AxoYfQPYYEgRf7ch PDKszaSjR4VhJWt/MNPtSL9A/sEaVnxO3rLlJTcmXTfEiSUnlScdm6kDXNZzvwAEdhrh 589In6t80zxDDUPhXCZSQ3UWs2A99k8fVHTqnfIW5llnp/aG/+u0XvooJ2wDJqdd9x1i h49g== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sU6P/UQDRq4N9mY/TJ7EtkN7dPcSMJ2WnGggKudvgXk=; b=hLYIdYppFAK82YebvIZtOoQC0ZcKdCwN8tovhCiNdFe09lXt4fX+xUCX7CVdp3YaP9 Ta82WN/5wICvFTs99UD00el0Bz/xggCtugYSmr3d5O4QZzWarK44DvdIl8UNZnsd/Vui zYWYTEQLKdU+KSXV5OIP7OtYQQ1KGnFblwwtPpAWAwFs1dRolP6bpaBr4LqbxQdwGW25 4d8QneMPX7vsV+7wpZTD6W1W93Gp4k32goKzV7jwkJq3XpxxQWby7F3Uw94h28P8hHWa QZ+l9YBRVnmmqn0+6Fc5J2zH3uSsCCCdpqzFYjyA8ARe1DSsmdXb7yWZIyX/59sLE45L mCvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=GHguRvzB; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a50fd0d000000b00459f6d1be02si16060395eds.387.2022.10.12.23.25.01; Wed, 12 Oct 2022 23:25:27 -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=@gmx.net header.s=badeba3b8450 header.b=GHguRvzB; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbiJMGTe (ORCPT + 99 others); Thu, 13 Oct 2022 02:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiJMGTb (ORCPT ); Thu, 13 Oct 2022 02:19:31 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C46A711C6D9; Wed, 12 Oct 2022 23:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665641960; bh=a0YnP1i9bs24lEAd8uB+UTB2NYRN+cwhuNptzzc/nQ8=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=GHguRvzBB+ziM0CmXN1+HKdB1gzPyALRagkF0Yrq2VwoGUy2eANlms05SB9Kdvqny uu8xB1iCPbekOCP9atz9QKnAh57gQIx+W4lCQbUUQLenpyxElBG2/Yxt//yIDkp1N1 c7CEd3isiWe9X/F7MzycnbzlPGvU4fU1kKl6lrHs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.165.150]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MFbRm-1owaGs1Cnu-00H40M; Thu, 13 Oct 2022 08:19:20 +0200 Message-ID: <68f42463-e4b8-d4ce-51c7-3e0e5dc468ec@gmx.de> Date: Thu, 13 Oct 2022 08:19:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] fbdev: MIPS supports iomem addresses Content-Language: en-US To: Kees Cook Cc: kernel test robot , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20221012191838.never.778-kees@kernel.org> From: Helge Deller In-Reply-To: <20221012191838.never.778-kees@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:vDcabaU0FvyZkkoeOJq7OcA4uY6T7+64cJDAjSyNahFXoqQNd6i 6eW+msz0PAr0dD8WrqU3hBi/1b/Qs8w6d4Kp3I19UMvLyWR3VYYBh9OfykqWDloacLcIXCC xBJmqUCiT2ou5I2moDYDXsfe5KYV6mzkypSLS59rDcHPEE91NGC4FEdkGv3MCKLA3cz5QoL NkcAMJuYNnSjOXN3K97KA== X-UI-Out-Filterresults: notjunk:1;V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m/xayJf7jeAYDgJOMyUb/YtBwEbzJh2KzxNEVI8IwDjpngySNkBFSEBr9vJoZpTm2bOns 3UTjBVHaFziGzTfBg168q80xls89+l6u56Ge+8EvIfZETs7p+gcEJ8X5lVNygWDlQSy3yqzf2 ya3tEwOTBZYtnJ4TmlLzWr9TiDPoo7cT6rXqejm66iZ2DCY59nW7LWsgUuuaqem8vcXDJ5yVf Qvj9m6q8dXvuPq9C6DzVzE/MwCVxUrn8lar9afpK4+aSHUnvqSPH1VovkVUDFhKjErdT+M9sG mcwQDei6PGqFJzK8RO/8VGwekmJ1/dZ9KAHLaDBQJah2+5mPQo5E8+ImxENTsGkl4GROQc5IU sRvyGYVBJCSBwTkwkZqiZhsB0grGGR43tqA2r34e/yRox428mYiRQfD4yq6ZFNm5X8zvzb3er eUFnLGUUB33RMDx70UmkIiMy6yaw5cpOJjilo5Ho7rVlCSetayIPZQqN5jAXtYAfTT5rj82NY nIp5zzmoexjozcpBHyp+TwDOUnfKcgDE1EdQgACJr4XL4 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 10/12/22 21:18, Kees Cook wrote: > Add MIPS to fb_* helpers list for iomem addresses. This silences Sparse > warnings about lacking __iomem address space casts: > > drivers/video/fbdev/pvr2fb.c:800:9: sparse: sparse: incorrect type in ar= gument 1 (different address spaces) > drivers/video/fbdev/pvr2fb.c:800:9: sparse: expected void const * > drivers/video/fbdev/pvr2fb.c:800:9: sparse: got char [noderef] __iom= em *screen_base > > Reported-by: kernel test robot > Link: https://lore.kernel.org/lkml/202210100209.tR2Iqbqk-lkp@intel.com/ > Cc: Helge Deller > Cc: linux-fbdev@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Kees Cook applied to fbdev git tree. Thanks! Helge > --- > include/linux/fb.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/fb.h b/include/linux/fb.h > index 07fcd0e56682..3822734a38c7 100644 > --- a/include/linux/fb.h > +++ b/include/linux/fb.h > @@ -555,7 +555,7 @@ static inline struct apertures_struct *alloc_apertur= es(unsigned int max_num) { > > #elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) |= | \ > defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || \ > - defined(__arm__) || defined(__aarch64__) > + defined(__arm__) || defined(__aarch64__) || defined(__mips__) > > #define fb_readb __raw_readb > #define fb_readw __raw_readw