Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp77137rwb; Thu, 12 Jan 2023 03:47:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXt/aVoxAnRmpvo6ugdXLRvNvt595aKL/BSDddG0xT6byXNT4hY1ZIjkEN/n/Ts5v+HRLhSF X-Received: by 2002:a17:907:6281:b0:855:d58e:59 with SMTP id nd1-20020a170907628100b00855d58e0059mr14955863ejc.75.1673524045579; Thu, 12 Jan 2023 03:47:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673524045; cv=none; d=google.com; s=arc-20160816; b=O777erpOLBlxnj3VLoO0KoMtXTbDh2xYAghuen9rF4hRkyh5hafjcCxDcjzMvnZp1T w1dpkJuUYEyGm5GykNIj+ua5gXDu/4BMr6w3uscpkqttW5e4j2sdUsLcG2thPqDi7Z9E YuqqkdpefkLeAgwI1o2RfOfN8O7tWQwEWWwhWlqFbqh4yE4Gc3EEnQ5k8bmS/S29zsdE I6YHqdLruTIbyurclflC0/21nfCUg/vWjyRZCeL38RF2GqNXf374W/GQJIoXd3oZQP0X vQSBajXA2zFEOtlNmJRjzGTg8v89RpiMHRf0w+MBM/FW7aNjfER6glMfJE3diELH/ULQ 0S+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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=eiHbfAzoDiwycK23l3fHbtyWHUw9DB1Df3pT+ntfda8=; b=zrf1Wx+0gkKx7TNhVGvfo58aGR5P3BDBeYJha80mX1hvBEZNaKOZDRr8qglhpDyZkf FBNP43GlWsRn+1A980F1XG/sTJTfRAKN+iwptztflamvz1HChpaPx9SEiSB+VQFGxwfM QgcQu8mT/5tdGVFeiBgkDxiGAohKO0o5bk/ZPyUGoIZrOv2/RU8zacvNgy0kZGfxsaBE blDnszhIaongqx48/yWY3uSGhVM8MF4lFA2Cl1297bS2pnYfhl2hEi021Ixw2CR6kknw mdCq2b+72u5/IBmFr3PigKdNME5/PAEd6RfwzC7Pr2m0mEdngWkkz+7A9s1peJ+wCtTu qRTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=e73uzU+b; dkim=neutral (no key) header.i=@suse.cz; 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 hd41-20020a17090796a900b007c18a102d8csi19216327ejc.673.2023.01.12.03.47.13; Thu, 12 Jan 2023 03:47:25 -0800 (PST) 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=@suse.cz header.s=susede2_rsa header.b=e73uzU+b; dkim=neutral (no key) header.i=@suse.cz; 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 S230336AbjALKoc (ORCPT + 49 others); Thu, 12 Jan 2023 05:44:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234339AbjALKnS (ORCPT ); Thu, 12 Jan 2023 05:43:18 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D91517C7 for ; Thu, 12 Jan 2023 02:38:46 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2A8FF3FC25; Thu, 12 Jan 2023 10:38:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1673519925; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eiHbfAzoDiwycK23l3fHbtyWHUw9DB1Df3pT+ntfda8=; b=e73uzU+bnMqq9LFOQgGpNrgqdhEKQrmaXaUODm8nFeQrUi0xBZA1oXURiJCEjStvc0RwUi unweLn6ObU1xePCVHxI3uQelM3jo/9YaESDW02qxuIqCM3S10Crf2mhhsJKjqkMElSHnZB C//uMqmhK8vMYsMH6QHEVRKRAzW9e/M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1673519925; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eiHbfAzoDiwycK23l3fHbtyWHUw9DB1Df3pT+ntfda8=; b=mNHJ2hvqK/CEoOHSOX99Pd7CFVkbLz8ZzUVkHf+yeh7tYJcYVNzsR1uWf93RcnIsgOj3qL 3pOyxNUWO12mxvBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id EB4AE13776; Thu, 12 Jan 2023 10:38:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id vNelODTjv2MMKgAAMHmgww (envelope-from ); Thu, 12 Jan 2023 10:38:44 +0000 Message-ID: <9005c77f-c929-21f7-a735-3ab4e6d89832@suse.cz> Date: Thu, 12 Jan 2023 11:38:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3 3/5] m68k/mm/motorola: specify pmd_page() type Content-Language: en-US To: Lorenzo Stoakes , linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org Cc: Matthew Wilcox , Hugh Dickins , Liam Howlett , William Kucharski , Christian Brauner , Jonathan Corbet , Mike Rapoport , Joel Fernandes , Geert Uytterhoeven References: <4b59f47ff4cd89ff76a5b6edbef6e8e0b37046f1.1672043615.git.lstoakes@gmail.com> From: Vlastimil Babka In-Reply-To: <4b59f47ff4cd89ff76a5b6edbef6e8e0b37046f1.1672043615.git.lstoakes@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL 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 12/26/22 09:44, Lorenzo Stoakes wrote: > 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: 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))