Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2438793ioo; Sat, 28 May 2022 13:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKb7E4sanERCJlscgEvImdn3QexI0zS68kRvq8zkRWWLb+wohCLpIvhD/GE/ZzWgurfeTm X-Received: by 2002:a05:6a00:23c8:b0:518:a9d6:3ed6 with SMTP id g8-20020a056a0023c800b00518a9d63ed6mr30269826pfc.20.1653770622912; Sat, 28 May 2022 13:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770622; cv=none; d=google.com; s=arc-20160816; b=MWxia4cUI+iAEuT63kb4SuOD1bPZ5TYimd229G10NAjXdnwdwA5zTnKLeY5emK35MW C2V3ZIDAgN1wA4ZekwyEtPXxLXXzRz7DXMvjQ8NukRcmKunDn/XVG53W82ggQeEDnm0W weMQMJMl8OUJqf/i80tkJVzTx6du/h/7anLWuAPckj7pm8vcLqbI/spjfu1b1zOFkd9a AbP/ezcf5b8HDpt/PtmPLY+bis2wQARd52hNNoXpQ4Q/oGwu41h1z99kl3vT+AdE7+xU sbLu3KcU0N/4aq96vD/2XUQTuRUCq2Z65vBopNFc0whn2PEj64cP8m3XL2wkA8Hlq5Wn KuFQ== 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:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=8kHf9FvKoHisBOT3iB2GGapbJm7MtDFPMUhFTVufFU4=; b=P6NXKsSFMOqyx/DQQ7gH79t/T7XN+IpeHEHLeq4rYzW9I5D75yLJVTeqB8b4nMajIZ a76wnDm2jRILiyw+o1PjGJ7NWasDdW4EG7qKkJUT9brpMdhl6ty4ohG/cf2rs0aChJYQ gL2t34/57aONIgO4GviUsmMFiqEUD2iJ14ft8qyYQ+9mcgHehnrYOqBbVkVLaBkfiq1M A/2rM1Unh4y2Y7/cABY05VWsNwOpOTvnt0Q4iBnugnFiWQIHYO4bBs5728fYm7Iby+T4 Wzx4a4FG20btPlHZ+RK6vMvWYKwKMgATGqVE8xIM7f/k9eQbEhiIlY7kaZawDjQZmlqg /ydQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="h6xTWr/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j8-20020a170903024800b0016360b6cec1si11879103plh.230.2022.05.28.13.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="h6xTWr/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 276AE1A80D; Sat, 28 May 2022 12:43:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350791AbiE0Mkf (ORCPT + 99 others); Fri, 27 May 2022 08:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348161AbiE0Mjx (ORCPT ); Fri, 27 May 2022 08:39:53 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C344039168 for ; Fri, 27 May 2022 05:26:37 -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 4L8kYz6fyQz4xZB; Fri, 27 May 2022 22:26:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1653654392; bh=8kHf9FvKoHisBOT3iB2GGapbJm7MtDFPMUhFTVufFU4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=h6xTWr/xIbNE5MMIhiyYm/Ksq4u7oSNskaIOA2dh4qtrXrJF6EBw1CiDynfHqRenx tXNri7tGcG+wzkUrdSRUTnZwJI9ydqvyoFvOMhdY8AutAUHUFaXKTkpvmafINEZflS JAwQFJ5y9KvXdq5CGPqvr1fFNI8XaKb0M+CfMHKiKQ6gsOnN/ifF0Jk/eLm7nfowl5 8X0KCK7QeYSbq6JaoNNqdRIQnZHwKG/vhu2nU+sV54yPy521lkeaocrDaMLC54cPpJ kgCTuXNh9747S8/IL3L+jwK2KYSVTcqaA1TGdkhCmuevzBzEXISQN07ANLOM3xARsd vgcARLrxqufGg== From: Michael Ellerman To: Guenter Roeck , Peter Collingbourne Cc: Linux Kernel Mailing List Subject: Re: [PATCH v5 1/2] printk: stop including cache.h from printk.h In-Reply-To: <20220523142452.GA3164183@roeck-us.net> References: <20220427195820.1716975-1-pcc@google.com> <20220523142452.GA3164183@roeck-us.net> Date: Fri, 27 May 2022 22:26:28 +1000 Message-ID: <87y1ynkvpn.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Guenter Roeck writes: > On Wed, Apr 27, 2022 at 12:58:19PM -0700, Peter Collingbourne wrote: >> An inclusion of cache.h in printk.h was added in 2014 in >> commit c28aa1f0a847 ("printk/cache: mark printk_once test variable >> __read_mostly") in order to bring in the definition of __read_mostly. The >> usage of __read_mostly was later removed in commit 3ec25826ae33 ("printk: >> Tie printk_once / printk_deferred_once into .data.once for reset") >> which made the inclusion of cache.h unnecessary, so remove it. >> >> We have a small amount of code that depended on the inclusion of cache.h >> from printk.h; fix that code to include the appropriate header. >> >> This fixes a circular inclusion on arm64 (linux/printk.h -> linux/cache.h >> -> asm/cache.h -> linux/kasan-enabled.h -> linux/static_key.h -> >> linux/jump_label.h -> linux/bug.h -> asm/bug.h -> linux/printk.h) that >> would otherwise be introduced by the next patch. >> >> Build tested using {allyesconfig,defconfig} x {arm64,x86_64}. > > But not powerpc:corenet64_smp_defconfig, where it results in lots of > build errors such as > > powerpc64-linux-ld: fs/freevxfs/vxfs_fshead.o:(.bss+0x0): > multiple definition of `____cacheline_aligned'; > fs/freevxfs/vxfs_bmap.o:(.bss+0x0): first defined here I sent a patch to fix it, and will merge the fix via my tree: http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20220527112035.2842155-1-mpe@ellerman.id.au/ cheers