Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1997210pxm; Thu, 24 Feb 2022 13:56:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKv0lBJtCX/52u8xwneyzv6qPY4k3BIkjJECMldhV6tUnqekbu2fp9TerzPEV+z8bGUA8r X-Received: by 2002:a62:dd03:0:b0:4f1:1bfa:134c with SMTP id w3-20020a62dd03000000b004f11bfa134cmr4862007pff.14.1645739796414; Thu, 24 Feb 2022 13:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645739796; cv=none; d=google.com; s=arc-20160816; b=Lh+ATgyKW1TmsRkn59tR/rSq308/7/06Q0PJ4hepX2kp70ELzmWtkeoEDUEiRu5J06 5JNCNl+kYjoNF++OgNNIrKhldDCSVnwrGHmLHTsXWwBaKWpErAL5f04l7GaCieUtDBfz sRBVhJa5CRM9GnKdobrbAkXYTgoE5fjIjVFfvE49cMqT3HH9e/n0Xydvkqz9FeLxzv+r qSAX27fs/PTU9/JNkHpoWCmtGRFetMLZ6Se3N4CnRxsVZoTDV2ilG8xnapA5JNRhdlo2 5P6219RsHZ/L8JrWtWloIkT9m65VY2Pz2qsliVKiodu/xUjgIWKvFziBAzUC+S1oOIh5 YqGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/bcwpuori5XpwoQ+JJmKBl6WDYxERk3ioqfN5qpjQiA=; b=Y2F/qTSwDsVkOZDrwou/kdCZkWNw9X9q+8X4ro+A6K1BlN6AGYysse5ARMSOKX6YuG 0nUd/7l1qJrpFtefxEvL/VhegUBN7VLY9sdLeRyT0TmDk2wJ1p3ZVwFMMlQvCL5Jq71V Ovb4BHtqTXEXhwI152w11CIYB7rzZq5I0PYwYAXIzDb3XjlgWrD89VTJPAFuWoqOQn8k xIw0gR46n8AZ0xjdw/GC/B7esP3so2YV93AXJi3IhrsXmW3t6c0x5XFW9tZnqM2VLg5d sHR9qeg9niFpEeQdUK0VGKAir3KCZeqrPW2z7VzPMF2l48rBjaH6oqVhZF5fkzL4dn/F 4Lsw== ARC-Authentication-Results: i=1; mx.google.com; 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 h9-20020a170902b94900b0014fd48e073fsi226258pls.597.2022.02.24.13.56.19; Thu, 24 Feb 2022 13:56:36 -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; 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 S232127AbiBXRlw (ORCPT + 99 others); Thu, 24 Feb 2022 12:41:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiBXRlv (ORCPT ); Thu, 24 Feb 2022 12:41:51 -0500 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 464B61C2DAA; Thu, 24 Feb 2022 09:41:21 -0800 (PST) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 21OHbDJC020019; Thu, 24 Feb 2022 11:37:13 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 21OHbDNV020018; Thu, 24 Feb 2022 11:37:13 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 24 Feb 2022 11:37:13 -0600 From: Segher Boessenkool To: Michael Ellerman Cc: Anders Roxell , Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 2/3] powerpc: fix build errors Message-ID: <20220224173713.GO614@gate.crashing.org> References: <20220223135820.2252470-1-anders.roxell@linaro.org> <20220223135820.2252470-2-anders.roxell@linaro.org> <871qzsphfv.fsf@mpe.ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qzsphfv.fsf@mpe.ellerman.id.au> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Feb 24, 2022 at 11:39:16PM +1100, Michael Ellerman wrote: > > /* Calculate the parity of the value */ > > - asm ("popcntd %0,%1" : "=r" (parity) : "r" (val)); > > + asm (".machine \"push\"\n" > > + ".machine \"power7\"\n" > > + "popcntd %0,%1\n" > > + ".machine \"pop\"\n" > > + : "=r" (parity) : "r" (val)); > > This was actually present in an older CPU, but it doesn't really matter, > this is fine. popcntd was new on p7 (popcntb is the older one :-) ) And it does not matter indeed. Segher