Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp72568rdd; Wed, 22 Nov 2023 09:40:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmz3LEXg8xm2rFQBL5n/k7weIXzsPy4HC2ETLyfGq8ID1cWLBYTA+m17xEacqEnnPTjy6L X-Received: by 2002:a05:6a21:1c83:b0:187:d808:f082 with SMTP id sf3-20020a056a211c8300b00187d808f082mr2676574pzb.48.1700674829541; Wed, 22 Nov 2023 09:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700674829; cv=none; d=google.com; s=arc-20160816; b=q87UDAC9Z2SdYJVQJAw3dTnUZ+bql4aPv1T8iVfA77zvP9Hef4acbpdBJc8e4cUFjQ etxqcARnk6NSq4Nvi7RjpSnlKUTJliAtY/ySkHLNB7vsRFUEXXCiex8X+443v4FYP9ZT qYxN+AYx2/dJJGtLDDQ9hpiNgLB6B7SbbZBnCqzkYslOI8RknQM9UvOLJho2b+99Himc AjAeER+EUwo/jGOT9ocShq0zNLiG6gJxOXzvvT51Z4VxmgpnqMSNcGj1os5HdZ1tDMTM 6CeceSybXXGoqImmwMcUVBRbehblSbMcgyrxX1a+CR0eSAahz6jshSNEhGrUjsNaeeMt CslA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=6Yo38PdU08y+g6l4Z6G3ly0SBCUJPgfV4dDMvaOFbPc=; fh=uipWTSuZkhqj6uyaJDa8H56gQxq2bZ5ZP3FHsLtvDDw=; b=d/5wmZLEBG9YqsNcefydDv2tAKVaRwzKFpFGTyFsEnZn5KxKTzOwZzcxCbmnUpdhah UWjS6ibS1b45JOQSTxsTTvsF4VoVeYBEpqkWRIC/k2cEd5KDk8vW4vP8LSps/Bbiten0 7cy5PqZTszgiP9Jno7pmW9lTl8iAXa/UUfvvHXKCG5th8WQb0VvVGmzGfjzaux6H3Apk MFUPSofDLwK9Nf4ayd/z4PCsd9LChaTZfWjGDFlAFu2UwQ2HxHEwPBWFKFTFqi01D02i GG5112NrUBF3sibPI73Uzxn1MSVu9V0EQbFWVqo9fJnQbkDT5u17ANEtrpHYclWIbjjg MLAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r66-20020a632b45000000b0056513361b4fsi12904371pgr.741.2023.11.22.09.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:40:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6FB4A806A12C; Wed, 22 Nov 2023 09:35:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbjKVRfv convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Nov 2023 12:35:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231594AbjKVRfu (ORCPT ); Wed, 22 Nov 2023 12:35:50 -0500 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C9A383; Wed, 22 Nov 2023 09:35:46 -0800 (PST) Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5bdb0be3591so5373753a12.2; Wed, 22 Nov 2023 09:35:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700674546; x=1701279346; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q64HA3g4BGidyi1Zr+WVLkIHIT41U29VcqcT8ARi/uk=; b=DrdgQ7IKvz+bPnZEvLDHhdnG0itjzpurjDxVJtpwaumeS3vVAiieCTw07q9mlMFtXy 91IYJkGXyojZv5ghASMTIak81fAnn/vAQ9mLu8IODyV4SBw5bQaOAEthVEGIZ0BLJxUL oJ83t8Oimkp/2zEW4tNQHQcuedGU+jTioCR7qJIajAMThF89zDhtJEC1hlW4gTVE+9pr N18N1taxKHfvo9unPh20yiM2HrwMhbQgOrAuLcnwgL1+7QH5k/skBy+fqU9rCpqDx7hr 9CQw4GCPq5m6b/lvavUJcKl8A3CEE8MBQ/9lNkeB4OISZ6qUqdtIFNlroH+8Mt89Fk6i UXMg== X-Gm-Message-State: AOJu0Yz8MetPc7WU7ZNE9OpA1dAIBaTAPeC4JE8D5A9K8odTP2YmIbwj 4soECjwFjEWWj2I05fVyuvTco+K+0wlF/n+TxAzif5q1 X-Received: by 2002:a17:90b:4d8b:b0:27e:277:3015 with SMTP id oj11-20020a17090b4d8b00b0027e02773015mr3423032pjb.16.1700674545824; Wed, 22 Nov 2023 09:35:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Namhyung Kim Date: Wed, 22 Nov 2023 09:35:34 -0800 Message-ID: Subject: Re: [PATCH 1/1] tools: Disable __packed attribute compiler warning due to -Werror=attributes To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Adrian Hunter , Jiri Olsa , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:35:58 -0800 (PST) On Wed, Nov 22, 2023 at 8:41 AM Arnaldo Carvalho de Melo wrote: > > Namhyung, I had to cherry pick this from perf-tools-next as I noticed it > was also failing when trying to build perf-tools/tmp.perf-tools + your > header sync series + Ian's ARM files missing in MANIFEST for the > detached tarball build. > > With these patches I managed to complete 'make -C tools/perf build-test' > + 'perf test' + my suite of perf build containers. Hmm.. ok. I will cherry-pick it to perf-tools. Thanks, Namhyung > ---- > > Noticed on several perf tools cross build test containers: > > [perfbuilder@five ~]$ grep FAIL ~/dm.log/summary > 19 10.18 debian:experimental-x-mips : FAIL gcc version 12.3.0 (Debian 12.3.0-6) > 20 11.21 debian:experimental-x-mips64 : FAIL gcc version 12.3.0 (Debian 12.3.0-6) > 21 11.30 debian:experimental-x-mipsel : FAIL gcc version 12.3.0 (Debian 12.3.0-6) > 37 12.07 ubuntu:18.04-x-arm : FAIL gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) > 42 11.91 ubuntu:18.04-x-riscv64 : FAIL gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) > 44 13.17 ubuntu:18.04-x-sh4 : FAIL gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) > 45 12.09 ubuntu:18.04-x-sparc64 : FAIL gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) > [perfbuilder@five ~]$ > > In file included from util/intel-pt-decoder/intel-pt-pkt-decoder.c:10: > /tmp/perf-6.6.0-rc1/tools/include/asm-generic/unaligned.h: In function 'get_unaligned_le16': > /tmp/perf-6.6.0-rc1/tools/include/asm-generic/unaligned.h:13:29: error: packed attribute causes inefficient alignment for 'x' [-Werror=attributes] > 13 | const struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \ > | ^ > /tmp/perf-6.6.0-rc1/tools/include/asm-generic/unaligned.h:27:28: note: in expansion of macro '__get_unaligned_t' > 27 | return le16_to_cpu(__get_unaligned_t(__le16, p)); > | ^~~~~~~~~~~~~~~~~ > > This comes from the kernel, where the -Wattributes and -Wpacked isn't > used, -Wpacked is already disabled, do it for the attributes as well. > > Fixes: a91c987254651443 ("perf tools: Add get_unaligned_leNN()") > Suggested-by: Adrian Hunter > Cc: Ian Rogers > Cc: Jiri Olsa > Cc: Namhyung Kim > Link: https://lore.kernel.org/lkml/7c5b626c-1de9-4c12-a781-e44985b4a797@intel.com > Signed-off-by: Arnaldo Carvalho de Melo > --- > tools/include/asm-generic/unaligned.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/include/asm-generic/unaligned.h b/tools/include/asm-generic/unaligned.h > index 156743d399aed223..2fd551915c2025ee 100644 > --- a/tools/include/asm-generic/unaligned.h > +++ b/tools/include/asm-generic/unaligned.h > @@ -8,6 +8,7 @@ > */ > #pragma GCC diagnostic push > #pragma GCC diagnostic ignored "-Wpacked" > +#pragma GCC diagnostic ignored "-Wattributes" > > #define __get_unaligned_t(type, ptr) ({ \ > const struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \ > -- > 2.41.0 >