Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1053580iob; Fri, 13 May 2022 21:15:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6SupDKAGlrYCSnKMEZToCiSC6c6195yLHXCKUT/bV3TujWXz4wOn3gCucVuVaokcqDk/a X-Received: by 2002:adf:eb0a:0:b0:20c:5bad:11db with SMTP id s10-20020adfeb0a000000b0020c5bad11dbmr6322537wrn.435.1652501753408; Fri, 13 May 2022 21:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652501753; cv=none; d=google.com; s=arc-20160816; b=cBHmkWVYQyGePsWyZ0t/rOSRqXM3RnzZicZEUGR7dCQ5QC7cbD24OcPQ1SCNPVigdY UY7VVJcECBebdpfJFVIw6RLGuGRHBx1GMUNgiT9Y8lB6LDnwwd7o2grUdkFDzV4MwIPK 08E1jW5O9bAymLsXLnhQA6kRuG1UKl6+T78jRANmNZwq3Js9X97Jlt3zRZ6e2I47jGt0 xuaInXGtarSv5u2TYkzDuOHdoK5zCujFw4wCHuHweASyoFq4lcyNGpf3rbAzx85WM1TL KgW/+Klw5/l8MGfP174JIX3yIilFcLEJ2uB9hv6sKnUexZfRa2y6CTae0cA7Pi4bh2Mv ODNw== 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; bh=ipLA6o27mMNdolsjzCVS3xN+UeYHZCx4M/jYbye1DhA=; b=YPzq92m7HBCRjBt7JISHFhwD/Szax952yJNKnsaBEZL7PubcgXFYMVj6hmjXEjqfUd 6FfEqGZrFFkCXWNOwVW5YB0V+bKC2/Hn81UpSGDTj6+gWk/Ny/kR+CjrLMWF28RKIttG yu/slEFTSVkNLcl7gl1nDoYG+3M9glAlALBXslbtoMyk4Eec4Ad1xDHNOoeCGADRrPPx 89ZQsYX9nFkGfUh22OcRE2+yuBGnv/R/KYg1L0mQQD8nkgIGpe7wZmF7f3biN+MNhB/G 2NdI/SqAYeKOvKjrl3OpNu73+KhO1tgSy/Lub+aGV4YmNzmsEDuLDmAnoXZ+nG1YaBBR gDMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D+OqiSGX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n13-20020a5d588d000000b0020c4e4aa917si3716352wrf.576.2022.05.13.21.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:15:53 -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=@redhat.com header.s=mimecast20190719 header.b=D+OqiSGX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C7704E9B3C; Fri, 13 May 2022 17:46:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354265AbiELNlS (ORCPT + 99 others); Thu, 12 May 2022 09:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354419AbiELNk7 (ORCPT ); Thu, 12 May 2022 09:40:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6D2E2EA16 for ; Thu, 12 May 2022 06:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652362857; h=from:from:reply-to:subject:subject: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=ipLA6o27mMNdolsjzCVS3xN+UeYHZCx4M/jYbye1DhA=; b=D+OqiSGXEG3Aptta5eUAr2wSBTKfrAag7vASPNUi1T9eTS20mBsOT+2enWbXIP327iuf77 t1Ct94T4749EB/SnFy9CPWmxOX6b8PFEYylNgSr47bcy1W/zPVeWWCz/DNEBxatr950OU/ C9tFI8lZVIoHQDgUZMkxbSpToPlIvRA= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-43-nBXK3BnHNaedwtTSbzBITA-1; Thu, 12 May 2022 09:40:56 -0400 X-MC-Unique: nBXK3BnHNaedwtTSbzBITA-1 Received: by mail-ej1-f72.google.com with SMTP id ga27-20020a1709070c1b00b006f43c161da4so2895073ejc.7 for ; Thu, 12 May 2022 06:40:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ipLA6o27mMNdolsjzCVS3xN+UeYHZCx4M/jYbye1DhA=; b=1Jo9OcdSOOskp8SZYaWmmet9uMTHsqJktm8weOyItK2y/hI5/afN55YqmZxEhzEzMT NwdlNewBEJguWVkpg7qz9I/Q+Xpmi6lTLhq9HcLOYqOXXf0OJSqUjnXNPLhE9VSnrYnl bbWPX9+u5cY9oPOIJUxzB79lv+E8nIJ5IGwiCTFG/eEnwWI9MKSzwW6ujjbpga9Erylh cd4kpsGX/DKEGFwTeB9aQDJ/efWKNt+ZMtynrtZyszy3xxjPyJoDdtEGLQXQHnyb/9jq EUL240BrEYzdrQ/2riS/PJhr8BI2otylakd61cmSVpPF5m+Ca8zVShtkhmMIl8gtJG2k hj8A== X-Gm-Message-State: AOAM533h8jFzZLiKaKiAaHmWG3XB8kB7aveU+5cs7QOak+I1QiqYVcgn 5CDm9jwpsG020eBPKZ/ytCawydaWzYE7ifI5Ga0PiCNFVOPM4RHbTadIJhxcqJEBqCX8Z1SLSN5 Qy+8eWJhfhR3LA8l+JMzT5kIm X-Received: by 2002:a17:907:338b:b0:6f4:6e1:ed66 with SMTP id zj11-20020a170907338b00b006f406e1ed66mr29728888ejb.341.1652362855525; Thu, 12 May 2022 06:40:55 -0700 (PDT) X-Received: by 2002:a17:907:338b:b0:6f4:6e1:ed66 with SMTP id zj11-20020a170907338b00b006f406e1ed66mr29728873ejb.341.1652362855323; Thu, 12 May 2022 06:40:55 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id cb13-20020a0564020b6d00b0042617ba639asm2601874edb.36.2022.05.12.06.40.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 06:40:54 -0700 (PDT) Message-ID: <70616a41-fe5f-aff8-2aca-4cb827e8553f@redhat.com> Date: Thu, 12 May 2022 15:40:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [pdx86-platform-drivers-x86:review-hans 46/59] kernel/stop_machine.c:638:35: error: call to undeclared function 'cpu_smt_mask'; ISO C99 and later do not support implicit function declarations Content-Language: en-US To: Thomas Gleixner , kernel test robot , Peter Zijlstra Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Andy Shevchenko , linux-kernel@vger.kernel.org, Tony Luck References: <202205120904.Gr9HEY5E-lkp@intel.com> <87zgjnw1bg.ffs@tglx> <87r14zvuxp.ffs@tglx> From: Hans de Goede In-Reply-To: <87r14zvuxp.ffs@tglx> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, On 5/12/22 13:42, Thomas Gleixner wrote: > On Thu, May 12 2022 at 11:53, Hans de Goede wrote: >> On 5/12/22 11:24, Thomas Gleixner wrote: >>> On Thu, May 12 2022 at 09:29, kernel test robot wrote: >>>>>> kernel/stop_machine.c:638:35: error: call to undeclared function 'cpu_smt_mask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] >>>> const struct cpumask *smt_mask = cpu_smt_mask(cpu); >>> >>> This warning with W=1 is not the worst of the problems. >>> >>> The build will simply fail for CONFIG_SMP=y && CONFIG_SCHED_SMT=n >>> because cpu_smt_mask() cannot be resolved. >>> >>> The other issue is CONFIG_SMP=n. This will fail to build the IFS driver >>> because stop_core_cpuslocked() is not available for SMP=n. >> >> The IFS Kconfig already depends on SMP : >> >> config INTEL_IFS >> tristate "Intel In Field Scan" >> depends on X86 && 64BIT && SMP >> select INTEL_IFS_DEVICE >> help >> Enable ... >> >> >> So I don't think we need the non-SMP implementation inside >> include/linux/stop_machine.h, we only need the #ifdef you >> suggest in kernel/stop_machine.c ? > > For the case at hand that's sufficient. > >> I think it is best to just squash this into the original >> patch, do you agree ? > > Yes. Ok, I've squashed the #ifdef into kernel/stop_machine.c and done a forced push. Lets hope that the kernel test robot (lkp) does not find anything else. Regards, Hans