Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2830406pxb; Mon, 18 Apr 2022 09:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8s/AceEbCbc/U7G5i9E77rBWP64SIzsBDsBBdDYHH5py6pCeUlkGMD5dasr0shaLbqWJA X-Received: by 2002:a05:6402:350d:b0:419:547f:134a with SMTP id b13-20020a056402350d00b00419547f134amr13063544edd.405.1650298028716; Mon, 18 Apr 2022 09:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650298028; cv=none; d=google.com; s=arc-20160816; b=dRp7mnW2krbUle4VMX3XdIMTDGelTcg/WF2phpLZEFv+e3C9PTgUVtwLpMZ6IsaH/G 0hBlPz7B6oRrKYuw/IX+GqpWLMQCvOMpedqhmMxf/GHaKesyT5LezKt0odbub+Zih2Ou A1yrUBQwPdM93OxWcRwueyscoT3ufBuaee5F1MxQsY3X8ckI/1kHiUD18Iu9dzRO0D5E qIY7MQGq2E0E05HguQmKoOf+Lh4K/mXkObgHrQ6KOkhoCKtX7Tafcf2JdUdzkmOMpKcj SB8o1j1lN6JKRSTyu/NsjNKoU84/fJtIazBb5RdApnjddW6HVzNyh94AIl1gpb8XUs5K a25g== 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=4690lYzLwcRjx6RCrhlmBBk+MtOGZVObLpgr90CVzX8=; b=Vp9J8BDgwfobEsJGTH6PqjxmqRoFGffPTmSRabj4TdsEMgQSUDUXHb+Y4kbgD+Clte 1/BtY1vH3v4l0FwDh8WmIQUpD5Xczk7Li0CA0u3tDm3G03VzE5j1cgIOCAsMHzk1w/Cj 9KTv7pQrwuYaLNf3LwOYsw4Bgki4Mqxkdg3tmugSkTOiOYutVhZvERfv1ccQwkSyaAnz XsvQZK0PI/SQGHM2kYymyEy8h/6ryhrqpyLFxThaAkU9XFl57v+2LdutLUDZTO0RgJe3 SKjlNew0whZiC9YqfGhB2SaYgBO/zl0rjBY0rkteCceVFOZbz/Nj1DCfL16GcUhKhiwo Gy4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IPVOlaCK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b006e897e9c2f1si6837982ejc.983.2022.04.18.09.06.43; Mon, 18 Apr 2022 09:07:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IPVOlaCK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243786AbiDRNiZ (ORCPT + 99 others); Mon, 18 Apr 2022 09:38:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243485AbiDRNKL (ORCPT ); Mon, 18 Apr 2022 09:10:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07D8937BE3; Mon, 18 Apr 2022 05:49:36 -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 33B1EB80E59; Mon, 18 Apr 2022 12:49:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 669A8C385A9; Mon, 18 Apr 2022 12:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286156; bh=LMlQNGlYN3hy8CPToMdfFBPok9Av3xw6NjdEtCImleg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IPVOlaCKADZVVNekCzlfb0TNxDAgrzY9bW6aip/6mqypSBxeak0IShYUeZ+7Bsww1 bnRSDpBMYPsiss5MwlLY2xjPXIb8bPYddsJdH5TWUXbgG5DAruBGCN1t7M2N1myf5t EsKg28B+UE/d/pDYbiLB4N8VYKN5dL9iDSzm73Co= 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 4.14 047/284] lib/raid6/test: fix multiple definition linking error Date: Mon, 18 Apr 2022 14:10:28 +0200 Message-Id: <20220418121212.034023729@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 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 @@ -22,7 +22,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)));