Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp774088rwd; Mon, 12 Jun 2023 23:30:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5y5VkKqZoc3Rc+DplLb6Qcub3e4qqjyTdtJTPBr1PbvaYce1lo/FDhrK5Mk1q8MV4mgJzU X-Received: by 2002:a05:6402:28c:b0:514:a5f0:93c4 with SMTP id l12-20020a056402028c00b00514a5f093c4mr5749241edv.14.1686637805127; Mon, 12 Jun 2023 23:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686637805; cv=none; d=google.com; s=arc-20160816; b=KGN3ukP5lhzTn8643A3vOhnK9qttg0PR76aKNboLbDRIdpTkoD4BvdyrNUG1gbLxWI 4ciMNAsguvpfO8t6g3faxdrfXo3BatUSskswP4eWtk9wej5FTZ+kHsPEFcn2mzkfpgfa Qz+EwrShITUuP+bX9qZ2c0Ew1YrAQfQDeaVfnV7cOSR/5AIaL2T1+8DFJ/3GQvcd7rc9 lehbfKdVTWzve6eH98LwMJcd+FZFPJFmUfOBK7whZei0Khhyk6YUJtfYdNc5N95FxYmF PSlp9Aj8cDwW6hs4cMwDUPA1gGU3+ft8gge39jvfzdUQFpSQM95L3VFx+SB7vl/ZWyBw SGuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=09oLrHGEmpgpyTpLPSc4jHEwyd/VNs8IHZbmFF1qxD0=; b=f8WGqHelyIPGbzbNldPNiTAOP3Dtv8zGVz2MKNicREIMFctkQvWTa7JfaqlQGPZEiF gLMvJpA3pwjKtpUovylhTyBQkbqpnhgHwagIMp/ttZRvVftQl/X8y39AvQntGE893drC VV/tvKsHcKwt4azSsyT9SOiwFQ2Bg7ifFLY7erXzZoKDL/qMux6h48vffrqT4LFbImjp gGaFa6beCb61cgl5uH4N/AuuF5MwcZMoxrA4vsEtzDRkNmPR3kymSXIFasIp5+zn/uQr FMLdF8/PP8K01mDGPeQwMeF5lO6IcsLCg3KfYPtH3x6dI2jbO+nnlWr7v65hcmkB7KtY i81A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=p257LeXX; 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=canb.auug.org.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020aa7d605000000b0051821440ec7si5249131edr.316.2023.06.12.23.29.40; Mon, 12 Jun 2023 23:30:05 -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=@canb.auug.org.au header.s=201702 header.b=p257LeXX; 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=canb.auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239925AbjFMGVe (ORCPT + 99 others); Tue, 13 Jun 2023 02:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240278AbjFMGVY (ORCPT ); Tue, 13 Jun 2023 02:21:24 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 985D3E47; Mon, 12 Jun 2023 23:21:22 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4QgJNJ3Ywbz4x3y; Tue, 13 Jun 2023 16:21:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1686637281; bh=09oLrHGEmpgpyTpLPSc4jHEwyd/VNs8IHZbmFF1qxD0=; h=Date:From:To:Cc:Subject:From; b=p257LeXXti8Ytj43puEZXiR0jOqqbg0HzOPzCYhgkkV3Umbssxt9OYv6TIyHfy8sP rlbDjbti7oFaeDP7lv5IZugyvCsDKiwrYRo6CWzoFiM/cJkmyfhUL0efoXJHC53Q+5 WtRuofXTdsvB/FRX8aWjwmKEUx8empsTq6wNg7DoQJ2iqeMoI2vcdiUS5gvDGJnxM7 DdKqGhm//56jaI/4d++oZ0aHn8qJAgO0YWF7IAyM4Ff835NO2FxseN6yiE7Vp5p0HZ AhobZSuNsaYkLYCcPG9cqWFtmzTe658dKg9ncvgD992nkIkg16w2V5BF49DXsqkLGv FyE6vTLL9DLxA== Date: Tue, 13 Jun 2023 16:21:19 +1000 From: Stephen Rothwell To: Andrew Morton Cc: Catalin Marinas , Linux Kernel Mailing List , Linux Next Mailing List , Michael Ellerman , PowerPC Subject: linux-next: build failure after merge of the mm tree Message-ID: <20230613162119.4a7a7d3c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/IxEZ4RJthVOEGv9b4i2lpKw"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 --Sig_/IxEZ4RJthVOEGv9b4i2lpKw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the mm tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: In file included from arch/powerpc/include/asm/page.h:247, from arch/powerpc/include/asm/thread_info.h:13, from include/linux/thread_info.h:60, from include/asm-generic/preempt.h:5, from ./arch/powerpc/include/generated/asm/preempt.h:1, from include/linux/preempt.h:78, from include/linux/spinlock.h:56, from include/linux/ipc.h:5, from include/uapi/linux/sem.h:5, from include/linux/sem.h:5, from include/linux/compat.h:14, from arch/powerpc/kernel/asm-offsets.c:12: arch/powerpc/include/asm/page_32.h:16: warning: "ARCH_DMA_MINALIGN" redefin= ed 16 | #define ARCH_DMA_MINALIGN L1_CACHE_BYTES |=20 In file included from include/linux/time.h:5, from include/linux/compat.h:10: include/linux/cache.h:104: note: this is the location of the previous defin= ition 104 | #define ARCH_DMA_MINALIGN __alignof__(unsigned long long) |=20 (lots of theses) Caused by commit cc7335787e73 ("mm/slab: decouple ARCH_KMALLOC_MINALIGN from ARCH_DMA_MINA= LIGN") I have applied the following hack for today - we need something better. From: Stephen Rothwell Date: Tue, 13 Jun 2023 16:07:16 +1000 Subject: [PATCH] fix up for "mm/slab: decouple ARCH_KMALLOC_MINALIGN from A= RCH_DMA_MINALIGN" Signed-off-by: Stephen Rothwell --- arch/powerpc/include/asm/cache.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/ca= che.h index ae0a68a838e8..e9be1396dfd1 100644 --- a/arch/powerpc/include/asm/cache.h +++ b/arch/powerpc/include/asm/cache.h @@ -142,5 +142,14 @@ static inline void iccci(void *addr) } =20 #endif /* !__ASSEMBLY__ */ + +#ifndef __powerpc64__ +#ifdef CONFIG_NOT_COHERENT_CACHE +#ifndef ARCH_DMA_MINALIGN +#define ARCH_DMA_MINALIGN L1_CACHE_BYTES +#endif +#endif +#endif + #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_CACHE_H */ --=20 2.39.2 --=20 Cheers, Stephen Rothwell --Sig_/IxEZ4RJthVOEGv9b4i2lpKw Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmSICt8ACgkQAVBC80lX 0Gyh2gf/VSu16R9zpGg+AreGcHAXLfhTsn75srJGOYEEWqZPPHTW9DZUzOz1IavK bf4fb8hYVMrLMHrDMJyLENSBxgTdflaDLrifPRkZymuWhkIwRChFPz7na1i8LY93 xo1yrKyYQqH1OEz5lJ3Kd3aXqIRH5dnnpT7Y1LxpmSPVPE+rQvg7PStaokJhgpeX o6Lv3dnNFwCPtse2bB1EugDaZL+tm9Jj7c8srAT/qtJHjtT6U9NvOnAhWDdB9S+B Xn7SxZBTA2W0ehVqHFdQtYiXoQONYiG8ILx3MIvGzwKN1YoO2XgsmC70uuVCUzUO s6MVpN2Bz305ZseGeBP1mzdz2YPl6w== =p8mM -----END PGP SIGNATURE----- --Sig_/IxEZ4RJthVOEGv9b4i2lpKw--