Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp849951pxb; Wed, 6 Apr 2022 01:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlF82/sYpI44SOpxJsHyYWIp/ncA7EL8W+oLXnsBfn3zk5+4rs9JNTsSfAx1GNGto9PjHe X-Received: by 2002:aa7:82d9:0:b0:4fa:2c7f:41e with SMTP id f25-20020aa782d9000000b004fa2c7f041emr7901956pfn.1.1649235235272; Wed, 06 Apr 2022 01:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649235235; cv=none; d=google.com; s=arc-20160816; b=chNmOQAQHJtqqtoMfvzKKFpQ879bJPDsaN3uZAdm7zkjpz1zmELYiqKPq4XCxU9sHG 6k6o5SGo+Ldu/NEMB3D1DVcyPk4gONNrkdhn5SN4kI6PTlBeL686nVGQ9uzBfQlKciyK hPhiKvNFsY3lpe6wWJQMtR2CqrKWdWtX7swrKN2itgiPv08k7rZDy16XNN2D5eUIr2ZJ Njs9nQJ05xxs2PH+ez2rAMVYs8duTDSVUx9sugfdLYk1OqOKDsRRDSKZQwclAMK/VJMt BRDqAAkc5KLpzUuwkkTmcBf5ujK+mVoQfDzEod2qMY6JsILl1UJaWJIja7IBq22+yVo8 1tIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5ZiwcxXr/WBsAlKgzFFBbwVjYjq9vc3W3yMkaXRQLzw=; b=ZU1z3SKlDsICeUOoaseh7y06CTbrxuhpt5q4H4rMkYHRnhRQ4EdDxW9RkRWwOIHEW6 5ZRQ/M225zIneWXKGJec8iJjzIKOt+F1OY2oyR5grpcV98bSJxmciG0mH193slQg6gBL innCBsYhBXZz7PxFKEfEe6Kq+AH33rXvXuncrAF2zCAfs+017gKyKQ+8YKdeWVbffwMg OEO0R56GD+71g4+MeZcPXWFvTsJvNNF0ab8n9HwmOPTS6FIB/VNSk6z5IDB3I2iW4IHn QZNEBrzUNiyk/L3hFCnWEKnHx2KtbvIxZURMMDaIBm06TGJUeOMPfL1c10yE0Wtmy/zg Uxfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x4OeW+ZW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p10-20020a170902e74a00b001546b3da72esi16135414plf.71.2022.04.06.01.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 01:53:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x4OeW+ZW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F370C4B1D13; Wed, 6 Apr 2022 01:39:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377741AbiDELa2 (ORCPT + 99 others); Tue, 5 Apr 2022 07:30:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243820AbiDEIvH (ORCPT ); Tue, 5 Apr 2022 04:51:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BC06C6ECD; Tue, 5 Apr 2022 01:39:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ED7F0B81C69; Tue, 5 Apr 2022 08:38:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50258C385A2; Tue, 5 Apr 2022 08:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147900; bh=uFktpmXq//VwMEg/Xye+cAieCQG7ieCXEqG53n4shp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x4OeW+ZWYL1RdHHueL9SJsyndCaew5dEDZQ+TMToEgHv3NOOzfsElKEaUdV5MJUgW JEms1dEMiWx6z8yIv7EowzbAdkWttyXy2yjJWWtVjHcrc6dOuX9PSRSKfRzPkD45LI EaLg8FlVucRVrYx2YZ1JOOM+H50PfJKkiUWc3MX8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Dirk=20M=C3=BCller?= , Paul Menzel , Song Liu Subject: [PATCH 5.16 0163/1017] lib/raid6/test: fix multiple definition linking error Date: Tue, 5 Apr 2022 09:17:56 +0200 Message-Id: <20220405070359.059456052@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 From: Dirk Müller commit a5359ddd052860bacf957e65fe819c63e974b3a6 upstream. GCC 10+ defaults to -fno-common, which enforces proper declaration of external references using "extern". without this change a link would fail with: lib/raid6/test/algos.c:28: multiple definition of `raid6_call'; lib/raid6/test/test.c:22: first defined here the pq.h header that is included already includes an extern declaration so we can just remove the redundant one here. Cc: Signed-off-by: Dirk Müller Reviewed-by: Paul Menzel Signed-off-by: Song Liu Signed-off-by: Greg Kroah-Hartman --- lib/raid6/test/test.c | 1 - 1 file changed, 1 deletion(-) --- a/lib/raid6/test/test.c +++ b/lib/raid6/test/test.c @@ -19,7 +19,6 @@ #define NDISKS 16 /* Including P and Q */ const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); -struct raid6_calls raid6_call; char *dataptrs[NDISKS]; char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE)));