From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by sourceware.org (Postfix) with ESMTPS id 5760E3852751 for ; Tue, 30 Aug 2022 13:35:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5760E3852751 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-11eb44f520dso12444882fac.10 for ; Tue, 30 Aug 2022 06:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=kaTE4Xd6l72nAoPy6XCJTVwCA5iu0h8iIfONj3RIZ7k=; b=CZYYnLNGvw85DcE/Sp0OaDrvFO6n7DfXudeyfnNK5ztSfgiBMB83lssr4e7oduyY7p EYgB//u6F89Kd+hDdFxMOrMheKWhy/iHz0BCuJoeXeUgn7k6SC6ycSugh7mmXHEY5iXW r6rW1tugB85MJGH9um63xmQemxJ3NPFQamDcRr2On/bw63ySJGj9BaGyiluHQoocLPDV JM6NFB9ukGBWKmNFcmfR69/oAZJ6oSCeRHd2YFv1lUsH0WOC4trzHGrqrPdU5D2pWP3B 9hgd8IwvqLZW+NlpZ0BR4C32fqYnLCRMbyF6a0EQUJ4gQ/wJOQBa91J4jEACXOpWBiZ7 Ov7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=kaTE4Xd6l72nAoPy6XCJTVwCA5iu0h8iIfONj3RIZ7k=; b=N2nzrBr2cnUUevBeYFsIwYGTI6iP8WR0lqgGVu6cOVb+LHH4Mg15kPHZNsnzVa135t enk6UG2ip4C5yGOcCLTrT574SCuy1shc2C3VWDxAaxLi5MIFCXJbjbyk5Jemz1JSgQoo xw9uov54rn4IKjAQzpR31XTMatFuKlUZxpw2Nla3iJ/7g6rppGPivLzjKXPKmOtCcou+ uATGUOCBpAWZaWoSgHEctdqRUykjZaFLZ89rrgyKu5GpMPnYRuLLzzommRZnRf6LM/kp r9482OwGY3xyx4XHWkqRPA/UwVe8H6vx5RVuhxxoSx2g+/dI6xTl+glVfaxIgZFNEyk1 odZQ== X-Gm-Message-State: ACgBeo0T+DfJFELh3SQaoHwxPiN18edg6KYhCYCwfpqCJX8xiP/Ek6O3 gyJoaYrc3b7YJCV/E/SWPunkMSm8dPwG4A== X-Google-Smtp-Source: AA6agR6HiQK7qyBWaPmAVqXBeOhtl1lObiCF5PtNoHJ1c573dHyG8ge3Wtts+h+e6HTDlHBZYK/LqA== X-Received: by 2002:a05:6870:6087:b0:10b:aef4:db0a with SMTP id t7-20020a056870608700b0010baef4db0amr9907276oae.17.1661866508663; Tue, 30 Aug 2022 06:35:08 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:745e:31d8:f463:7d91:9d28]) by smtp.gmail.com with ESMTPSA id t28-20020a056870f21c00b000f5e89a9c60sm7831870oao.3.2022.08.30.06.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 06:35:08 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, glaubitz@physik.fu-berlin.de Subject: [PATCH] m68: Enforce 4-byte alignment on internal locks (BZ #29537) Date: Tue, 30 Aug 2022 10:35:04 -0300 Message-Id: <20220830133504.2669323-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,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 server2.sourceware.org List-Id: The HPPA also requires a 16-byte alignment for locks, although it is just a historical artifact to keep compatibility with old implementation. --- sysdeps/nptl/libc-lockP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/nptl/libc-lockP.h b/sysdeps/nptl/libc-lockP.h index d3a6837fd2..9efe962588 100644 --- a/sysdeps/nptl/libc-lockP.h +++ b/sysdeps/nptl/libc-lockP.h @@ -34,7 +34,7 @@ #include /* Mutex type. */ -typedef int __libc_lock_t; +typedef int __libc_lock_t __LOCK_ALIGNMENT; typedef struct { pthread_mutex_t mutex; } __rtld_lock_recursive_t; typedef pthread_rwlock_t __libc_rwlock_t; -- 2.34.1