Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1951811lqm; Fri, 3 May 2024 10:55:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk2fnhYuBUVfySYtJ7crP23gF/nHDgZGjrt4WVGsmq79YgLlvzNnew46HhYVfqyCbZZviWQlpLTjcbZI5T/7fZdBL0zserEuDZusmdUA== X-Google-Smtp-Source: AGHT+IFFZpIDdKvwKM6ei1GaG3DT/EZSFiDvGra3vXNHQnjLnELKGjfBbBPK5NdztOttRRt2Br1y X-Received: by 2002:a05:6a00:21c7:b0:6f3:8990:665c with SMTP id t7-20020a056a0021c700b006f38990665cmr3083529pfj.18.1714758947472; Fri, 03 May 2024 10:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714758947; cv=pass; d=google.com; s=arc-20160816; b=V0GDabR1bkTujsARvDcfa+FnYWTaqMT5YF87JWhTcgwGFAN2h1A+veYfip1579buuq /wfRA3I+isIx2mdx7yMH+G0H1ssf+0+mTjNBDJWg3mOWXyvrOYPbwko2metbF1ZtFxTw iYU/HbDMzibK6hSDZouSeUe2o8nKQmYmX2zTImVMU8IOhAAdThL7hbZNYJhtZ0yX6Tc1 xznJCfIk9D8hskBZeV4Gmo5+vpRSonPITZX2FLmDBk9qBaqEbLpymhGz8VjKWnuE6LWh KkogS+OQGO62kt1qa4L38ObxKamG22YCTPiygylLaVdUO/ViZGrfcHuLFV5PItEOJfcR +RRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=cNuFKKqLOLJhX8SMJaQF7/ByglEMXWCW5PIO2/lIa4I=; fh=kKD51KF4Zcl2E16Ljirk6tMEAdpFTBv/oAm2qWFsX1E=; b=FVZG9u+EccCRvpnnKMSpPZfXqcmbWkvKongK0Z6P6GrA+UPyDqaZk5O2+dYXqyQDlK NG4vzAYjmCQg1VKFVEdFZYfj1rhovJiDNAxJB05jC8E1Pk8I2UJEm63aKDTwCEo1KdlS Uz12/zeMQJNFI50y9mPVCsN73h48R7goSZ0QDvdEODLG4Z041toQvPv17P3QzT8ZvU6i SuSnf09YJggJPwqBTEqb35mDJTo80rg1X4l9negB0SLfGI7UD+h2Lpk2pslBy4C/rnVD FrXF8iXmPhc30vp53Xh4RXj1aNF/SHAZWhWCVBZY98eOP23h8KjsXg0VsMDvXKTzL4dH WzKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=G2jsJzdv; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-167992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i22-20020aa787d6000000b006f44b35d7c8si1746948pfo.1.2024.05.03.10.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 10:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=G2jsJzdv; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-167992-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167992-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5F5DBB227A1 for ; Fri, 3 May 2024 17:55:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 080CD158217; Fri, 3 May 2024 17:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="G2jsJzdv" Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9580913B593 for ; Fri, 3 May 2024 17:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758930; cv=none; b=S4NibBJ7LRjOALG6FTSZzF55d3rmoJ+dQcoIJz7oDS6jRsF0XkFQPgXwHV6RWGI4guGqXiA4ygFnkG+OLvWnnq44r3Kbee5fRw84Gi37aLPjan3f8n/2bl7uT0q+2gXrGtEzaEx5RPq5hbfwlgRui7yfYQYbmb3zvYCEQVYbl7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714758930; c=relaxed/simple; bh=XThys+ktto6hQQOqPTl+PFdGrawJ1c4UzykbwV+R3xQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bXMyPFYj1JaxLtf8+T+kFNIRu6/Pfk/uWLEbnHIbKcWTMpCTlsH2JMp7b1wuimC1bw5qRk9UjIasEBjHsJJdbYLj4fOIsQkkKnbVh4JHyxPoKcJrRC9shbC4wf4WgFU7hHRe+L6Cxikj031P4R0NlKbsuLPUVthhOTRn1jE/m2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=G2jsJzdv; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Fri, 3 May 2024 10:55:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714758925; 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: in-reply-to:in-reply-to:references:references; bh=cNuFKKqLOLJhX8SMJaQF7/ByglEMXWCW5PIO2/lIa4I=; b=G2jsJzdvuUZLp4eVhkc8hSzuT9z9bvTkl0J5Q0mseVFULP7/68+AzPCz89WfVZFXA9LVrc 6LhE6NmD0yFvLnnUDePInuiyk3TBhDTnw/qv0m2zg+DHau2DtgaDKLsmCGlAZwTCs52jZo 0ppd4S6dB02WPP20Vu4C7t0AMo3Ys5k= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: John Hubbard Cc: Shuah Khan , Tejun Heo , Zefan Li , Johannes Weiner , Michal Hocko , Shakeel Butt , Muchun Song , Waiman Long , Yosry Ahmed , Nhat Pham , Chengming Zhou , Valentin Obst , linux-kselftest@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, LKML , llvm@lists.linux.dev Subject: Re: [PATCH 3/4] selftests/cgroup: cpu_hogger init: use {} instead of {NULL} Message-ID: References: <20240503035105.93280-1-jhubbard@nvidia.com> <20240503035105.93280-4-jhubbard@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240503035105.93280-4-jhubbard@nvidia.com> X-Migadu-Flow: FLOW_OUT On Thu, May 02, 2024 at 08:51:04PM -0700, John Hubbard wrote: > First of all, in order to build with clang at all, one must first apply > Valentin Obst's build fix for LLVM [1]. Once that is done, then when > building with clang, via: > > make LLVM=1 -C tools/testing/selftests > > ...clang generates warning here, because struct cpu_hogger has multiple > fields, and the code is initializing an array of these structs, and it > is incorrect to specify a single NULL value as the initializer. > > Fix this by initializing with {}, so that the compiler knows to use > default initializer values for all fields in each array entry. > > [1] https://lore.kernel.org/all/20240329-selftests-libmk-llvm-rfc-v1-1-2f9ed7d1c49f@valentinobst.de/ > > Signed-off-by: John Hubbard Reviewed-by: Roman Gushchin