Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4242180rwi; Wed, 12 Oct 2022 12:43:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44zkb1d12KDrShYWnHHWQJDZweeqUh2x9G9gCAFTRhGgevq0BMLgFI6X8EPlic7aiFPaLb X-Received: by 2002:a17:90a:d518:b0:20d:516d:67ee with SMTP id t24-20020a17090ad51800b0020d516d67eemr6915602pju.9.1665603789614; Wed, 12 Oct 2022 12:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665603789; cv=none; d=google.com; s=arc-20160816; b=QOyFraCa4g9YNfFjFWaFRf5luspkq8IlPTw7GpweTGWbBV+grKJBoGUI1QOdJHKFrP sXe2aJwOkEbI7mBEDwlagT6rsfjVyrss2nsS5+erQw7u3eXHZ3thau3Myq0JIGnV6XbF wwiUED+gDWwQv8ln3MLG3Ir9PHFkfGq+jDcoVJwbqg6tmzjewwhATcZ2Jd5tSotfOutE YhnSYKfbfrUtghyIjGttbpNpSZPzYolCEfNnNPDEuJU8iqUq4pdiCS/GE625W5SmyU+l ffFcP9XPNQuCIUZG5W3Wcy98rHebACev9nlQyf7x+2rCh3BXToPGS0blz4XGTU8wp3bY z/NA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HfNZT46KpoZ6E+JcaCCJsllBrcf6mEq3qk/ybdRTrq0=; b=KfywCCe0iVrbx/mAxNTKnb6UwAOzOfhai6VdShrSchMhJEUtffd/DKn/xPJ78iEjh1 I7WF4oa5c8mSdEyMenqH5ogzJbZaDBFvUOzFJivN/kSWRms6O6152Ew9/b6KPqNgEHrk YckY50ztQHWRiyC7CKOhSnh2Vz3LDqPyMgdxx/UkLv7T926iSCcaKp3voOG1baMJRmKf FWfF8h/1e9vibwfEcoOAD4z9i3H1VRPlyPNHYNG+2L/MfRWWv6zdn+PJfqeXYYlUdNn3 2uhhgilYziTv3bOQ6BU0jNJnYO4IIm4X0OJ5GklFHQHL+hWZBPlGw2cABFf82HlABRa1 cmIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=X+DPYNJr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a170902d50f00b00178ab008357si22929368plg.167.2022.10.12.12.42.57; Wed, 12 Oct 2022 12:43:09 -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=@chromium.org header.s=google header.b=X+DPYNJr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbiJLTTB (ORCPT + 99 others); Wed, 12 Oct 2022 15:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbiJLTS6 (ORCPT ); Wed, 12 Oct 2022 15:18:58 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D632D9944 for ; Wed, 12 Oct 2022 12:18:57 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id 70so16094279pjo.4 for ; Wed, 12 Oct 2022 12:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HfNZT46KpoZ6E+JcaCCJsllBrcf6mEq3qk/ybdRTrq0=; b=X+DPYNJrssrHWrE1RZGFFcJAHcL8f3jkXOrZa2E/MM2M/to/lV2QrCFKS8bI7qt/0E 8/koq5Qr1X9hUTAPwaYWMWYd+CohHeCQZwo03o04Zwg3JXYnYwu93IAJaJCZbF767eTe 6z3UH6dskbodOaDb67ec4ZtUKpL9WlqzWt0Uo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HfNZT46KpoZ6E+JcaCCJsllBrcf6mEq3qk/ybdRTrq0=; b=iG577RxjpW9wfBjzH4zdm4PGB6BbFOztXnFHOC8q8OCdcztyJ4/85krqb7bc2Dj7Dk 0sY3lz0BaCHlJ29G05GszMAdzFTbKdgjmo84NlBqQQwdljFWNRvmOFpxm8DGGaBApCTI t0S7E2KlbgrXUVYc7+0hdDOXZRvsF8YrQ2tm2reXHqyNdHsZBytJY9HHhtGLE6TlMzIn 02v17nlUP8c57wvchaPtvLyE1nqwVDzV8WlMjdledCtHy3EhpFN7+BCp5rqojDCyljBs Hw4KTrNcMqsMQKxxE6oyfZZPT1q1GjYk7oYL0g8aUuyOsnaTb1zlylvwTJ1dOutqtK/w ZFqw== X-Gm-Message-State: ACrzQf1lL10pVEOO5309huue27pwTJzliJtkxUjsldEdpI5R3zzzWP7e RWnQNcnTXIaoh51aSuTO49Fh1j2rDea1Sw== X-Received: by 2002:a17:90b:4c48:b0:20d:5c55:b8a8 with SMTP id np8-20020a17090b4c4800b0020d5c55b8a8mr6894465pjb.207.1665602337108; Wed, 12 Oct 2022 12:18:57 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z19-20020aa79593000000b0056316f0b7f8sm250273pfj.33.2022.10.12.12.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 12:18:56 -0700 (PDT) From: Kees Cook To: Helge Deller Cc: Kees Cook , kernel test robot , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH] fbdev: MIPS supports iomem addresses Date: Wed, 12 Oct 2022 12:18:54 -0700 Message-Id: <20221012191838.never.778-kees@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1339; h=from:subject:message-id; bh=RSExtY7BNwRYriF1xMHXemT9zuCYbQ4xQoSpDfr8rVo=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBjRxMeloP/ixxePXeqRevP8QT9EZXyWJkUAg4g2qmM AE/qZjCJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCY0cTHgAKCRCJcvTf3G3AJmN4D/ 4hcVz71SZPswjgclHLavAl1hUb1O3LJ1wli7G8k2lX2OMCcN80qc088g6rbhMQOA1Ig6UWiLFJz6ZP 3mDl2lt1VDZ1nOdA6412wHxsH8eVGKhtT/KFln4bCbGPDfEIAh5Uh2ih9uDdJ+yUCHJZlMi0EueYsy ous3OfunCbRYnOJRm8VCCJYW8ow04uaO3Eiryj74ccpNGl8OZ0aZvnMSs0qCJpH7PLhmhKIDsnMDwJ Chvht0XOjXBshmliHA8U/1Zta3yXsufhHO1wtSKL7Orkkv9UZDsrnIoCRAKkZYctL8pov/Po7zES2Q rlBCf+Y094+ABm9epnmtuYCQMOOqFvNaGyzLzkqmqqVlS9sA2qQrWlZ95AlRLrPFfmlJ/rU0B6US4o 1d/nwuLYg7vLtnV5sZnuTBH2Ur+tH7b2HK5QHDsPrNlE4uHPB6XwtwcT+xst9sFKEDHFzNWvRdut/9 JEWP+4LDD5z38jIjzDkeq5Ujv7KmYbu5be4pUNsVW+jBQj9eSBxV5gktwCh9sMylU87Qgw6CrgUpZb bdgcoaPV8cTPL8br9Yt+eA+hm39dRSR+wcMRAJWI++zPLUXXZpwoGxlBNOhNqbudpn+QxRwgTChyFK G2AW+Sk5wgsR2sjAZYcVFlkbg1esbL1G8/zRrAd2wjAmeI1/6aRSWjAUPKmw== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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 argument 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] __iomem *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 --- 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_apertures(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 -- 2.34.1