From patchwork Thu Jan 12 12:39:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13097910 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D205C54EBD for ; Thu, 12 Jan 2023 12:39:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BAF23900003; Thu, 12 Jan 2023 07:39:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A9BD4900002; Thu, 12 Jan 2023 07:39:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8EB19900003; Thu, 12 Jan 2023 07:39:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 829AB900002 for ; Thu, 12 Jan 2023 07:39:56 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 3B6391604BD for ; Thu, 12 Jan 2023 12:39:56 +0000 (UTC) X-FDA: 80346103992.08.39C077D Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by imf22.hostedemail.com (Postfix) with ESMTP id 81AB4C0011 for ; Thu, 12 Jan 2023 12:39:54 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QKJzp51R; spf=pass (imf22.hostedemail.com: domain of lstoakes@gmail.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=lstoakes@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673527194; a=rsa-sha256; cv=none; b=QX3s08VkhFhwhtfMwAVhDQkz19cVL9f4YsRo6eJGIbf84IzB0CLPGgiU27rdQWnROQttwN tV8lupELfrz9dAimaqMWsxp6gX3qPhh/JrVJ9KPNtyn6E/gMf2FKQ+O9oclSZ5OO/dJMzP tl+qgL0ousgN5xtbNT7TUzY7x3rtokU= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QKJzp51R; spf=pass (imf22.hostedemail.com: domain of lstoakes@gmail.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=lstoakes@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673527194; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=q+sEQZiZPtD8IDLax3ZkLozlH0r133zDHTBg3+ltWkU=; b=TTd0jwAQwrX9uoJuOFMfOlj7+naFZJtwcJFwVPvcsmQZlidv13s2ywvsh/z1aYmqqHoatU DU9AbjME/x69YzgzIpSbo49SS3LB8zFZTraoYApfUFksvq6lfm9FUuky0VtsJnipqVxuP0 H4C1DbiqBRfoPQMw3oZMdeW+5W0W568= Received: by mail-wm1-f43.google.com with SMTP id j34-20020a05600c1c2200b003da1b054057so762385wms.5 for ; Thu, 12 Jan 2023 04:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=q+sEQZiZPtD8IDLax3ZkLozlH0r133zDHTBg3+ltWkU=; b=QKJzp51RE7FmnOadSsbRoJ7T4xdwUBOw03HY8z70vgTVPVLNHCoIFSesIgA8ZXoQXu DXau/md+pdbQC3lwijeFmKrVxER5fNP4tvR1WUFPdbX8YbJMw3zbIQWlSwHm205onFK2 zecFj/HEjVJSPymdYiBV6pR4bvOKEL8uXxUY427GP6Vxx2nlNeqGVIyOqDOqKyXCE/ZD 04hms/oMfd8ByUB1v1CDKGnHd0Egud9vxVqOZCyoXb9p75c8CPuUZFq4jwgmQArhklZW fVtSwyFuchUS8v7AmifnvsR7xt7cVtIlxKo8E2gnWg3Y15Nmd4wFgvMXgP1iyuujVUJM uZaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q+sEQZiZPtD8IDLax3ZkLozlH0r133zDHTBg3+ltWkU=; b=omJHUegkOXKSFBiJQU7U6LPFulKLRcaPI30LKF15Zu/z0Zw+ZNWhz4N2PJzEgHKlZh wjNcaXNzrgO7usr+Z/Q6TvMSMsqwz6dSQtj5mPKN0EKiFkYE/2OOvX8YleDC9hmurq+c M6dhH9wOs7bHqT9P1QEUQ/6bgS3TCCM54POhzzwc7BwrF/QlzB/mIL4w8ijQnRqXtv41 nSbXl9lHuA5lLX6BtUv3B1BvaI0vwPRuOehxhxHiBL90QdgoRAK3KJJoKjzLvmpCgM8T zgsIfVzKM+aEKYedOdtFmGjl7hbdk/Y276BPJJITeoWKLfp2RyxtwtJfN4Xjfd6viGm0 sgLQ== X-Gm-Message-State: AFqh2koicLBcYM+ea6UJXVipB3kj4fVkW8sn6kF4YljLmC4IT9mXX9+1 MAD8mDrnPPBWEhX3BtNWjJjgVv5qxsM= X-Google-Smtp-Source: AMrXdXuga+4agHWmvil69VTYVfojsiKttDuyI2ieDX77LMFBsEML16n8N+X8tNz7Ssxdk0yhVPgyyA== X-Received: by 2002:a05:600c:4f07:b0:3da:1bb0:4d78 with SMTP id l7-20020a05600c4f0700b003da1bb04d78mr991649wmq.14.1673527193584; Thu, 12 Jan 2023 04:39:53 -0800 (PST) Received: from lucifer.home (host86-164-169-89.range86-164.btcentralplus.com. [86.164.169.89]) by smtp.googlemail.com with ESMTPSA id q1-20020a1ce901000000b003b3307fb98fsm20890797wmc.24.2023.01.12.04.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 04:39:52 -0800 (PST) From: Lorenzo Stoakes To: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org Cc: Matthew Wilcox , Hugh Dickins , Vlastimil Babka , Liam Howlett , William Kucharski , Christian Brauner , Jonathan Corbet , Mike Rapoport , Joel Fernandes , Geert Uytterhoeven , Lorenzo Stoakes Subject: [PATCH v4 3/5] m68k/mm/motorola: specify pmd_page() type Date: Thu, 12 Jan 2023 12:39:30 +0000 Message-Id: X-Mailer: git-send-email 2.39.0 In-Reply-To: References: MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 81AB4C0011 X-Rspamd-Server: rspam01 X-Stat-Signature: 81yqxesbqaz9m85o7cspouj7uepzduka X-HE-Tag: 1673527194-545670 X-HE-Meta: U2FsdGVkX1/pIJxcIn97yG86cxQb1uo29Pfw3OzyZ9a3pKJQRZiGn3ZLWxCe38oD4Z07htcYZzwbdZ7i9ls/VdHonX1xGMoU124ZrNYEfxbgqFZEFj+UV2At6j6l1Py054r/scL4kCqdby9ahMi/6+kbovXGY4t9j/Rx6baXttclU/7SHnoTL5YKKYzoFLUHhbxh0XIabNjuEhfE/6P6yhBex/8EZR+pu05PLqn5FUe5oUkhlaR6AV6MQfzOlyoTY4lpQD4YJV0875Ek6CHNIjMsw31mX3y4QrXUk1i33PWk9j4igqj7zDnPO5X6g9wjDBdYNRmRv7HJYF0UTsC61df7JQWxddPxiuK5CuVVC8c5QKYF6IMsGtE8nd5y+Cej7iRarRa/pM3BKo5rPh/4ABZ9BiyPMd0gLr2ZzUE1/VDC1BWTukW27/omvdJ+7NMvtNVsNchQOke4TDnMbhzmCSuf3FQntd4H63X34Qulpd7OLFKcedzVSFC0OrIBYJ/hHGHUuDwe1byn+kJWH2Y+4sTURTJLmkn5+nS7WVKmsNlUnzlymAomgrX4bbucoa5+HWaUv9JFJj3BAfGctOUygbYcpu5oc2pfp/V17CUjBAptgeilusNmZ/EewasxoGCBe1UEsRoZ50+MfImfq4NdWA+oxOlD/ImzWr/8/YWga29Oa3DmbKBABSL4o89gV5zvIJyTvFMhdKq6+3qRLDT5gtQ7OWA/q1h66P1pfU0JUICDc1fcA9h7X0nFILEbGo++ocFQXP9C0gKzdZXp0pSUZvRyhbgBcK0Pn3kl0jzmtrvmkm9hFYWDuil1N3REa429GJIkXo8VvSNCFjh+WXvbLhiBpEHwc4jOy17Vq3CNsd8ApeR6DNGBplXtLzdx3vmB/2A56QKx3XNt1w/2HehZrJYnltN3ICT7a5KvYTB3Wsp9g3C3WCFrQDXccyQWFrOliiGIp/vxxl1hgBYTmh5 jnb+u3u+ 4/4UlCEOlg4iOEzv4rl8bPn698lyYvSLAtPooKsMVEF7xhLGM+v9+TwK4DV28jIrM0VBsQcH+ImD9Z0O41zcapYCThBEggpUXaHPP+zqB2ED7gF5V0PNbPEfEKGULQh/t6hbF97u7AyOHlvMvvrB3PaCl3GOjPmI7CaIiQpoD5jHEQ7cSTaLr9WHIdw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Failing to specify a specific type here breaks anything that relies on the type being explicitly known, such as page_folio(). Make explicit the type of null pointer returned here. Signed-off-by: Lorenzo Stoakes Acked-by: Geert Uytterhoeven Acked-by: Vlastimil Babka --- arch/m68k/include/asm/motorola_pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/m68k/include/asm/motorola_pgtable.h b/arch/m68k/include/asm/motorola_pgtable.h index 7ac3d64c6b33..562b54e09850 100644 --- a/arch/m68k/include/asm/motorola_pgtable.h +++ b/arch/m68k/include/asm/motorola_pgtable.h @@ -124,7 +124,7 @@ static inline void pud_set(pud_t *pudp, pmd_t *pmdp) * expects pmd_page() to exists, only to then DCE it all. Provide a dummy to * make the compiler happy. */ -#define pmd_page(pmd) NULL +#define pmd_page(pmd) ((struct page *)NULL) #define pud_none(pud) (!pud_val(pud))