Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4597231pxj; Wed, 12 May 2021 08:57:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUJSyyezKld3LpyiteIGNeP04F8vPD4wPBLVC2Pfo5/2aupu0wKiHtN6WiMq8SjggeMo/w X-Received: by 2002:a05:6402:19a7:: with SMTP id o7mr5488967edz.22.1620835055906; Wed, 12 May 2021 08:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620835055; cv=none; d=google.com; s=arc-20160816; b=QTU9Z8dhTxvnyeI6qjIiMJYr3Akh01Nn+fYdJufNLqOIa4EG2CwyAnDzJlgImBA94U rlt5aHB0LX2lhdIoWUKcOCsY4dihfv3NfenXH8FqkcZeFRXNsrovRVVqrlyNyEkCENqh j1vq3D/J8URKLwJJ7STTyb78oFW7CydkTFEKybx8gcrO7VDbOAnVpJ6JxWzXXmOh3Hg7 bnY33ZMRNpkLvL7Cmbzg4ldxwGrIoqf5Sr5/QFcY8PhjfhAY2nJjgWS4DgXw/utBD+gX ELW12qGt9r3YPjmD/DT1/Ac+C2kyQ4PfaXjXHLzhc9ChKk5MgTOGXXbLhTGCJe6uFqkt kxWw== 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=To3iH/rSp2idgGrgrY+svHjL1PYWQQ6wU0GYLlmbKEw=; b=jU7AwnRusGeEFp09Z/viYLgEpyStzhMPs0rRJqeKcOnbnVkacTAYdtLB7jhbxlqjkp P9qB7beme5oy2gzMjywLlwE5YtxHI2HSk1eJd5/n49RjnKXiWk/eXoCHIp3VdYr52Kx+ a92RyRI34atiHS0KwSoHBJ5/uGgS32ugbCww56YijdjnLS2QEk+9K5EQi6QQkXnuYS1F 8W/IO02HMom/juSHDYnlmOHlPCgTUr5PKu4BfKm87WjdhGxA0Kc3tS8S94xEaS5qd5F1 8utU6K/RC+XFHxOd7IMEPrabEMex4LTvXiRL0fKUk1aETtH7A+UD4+164wh1/gzFq5dO 2qRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C7Jv9q0j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq6si348462ejb.103.2021.05.12.08.57.10; Wed, 12 May 2021 08:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C7Jv9q0j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235068AbhELPyM (ORCPT + 99 others); Wed, 12 May 2021 11:54:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:41008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234938AbhELPZ4 (ORCPT ); Wed, 12 May 2021 11:25:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9198561968; Wed, 12 May 2021 15:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832269; bh=62e+VPSc6q2nY4krZKy2kVcHaUgzvH2sO35gJgrK2IA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C7Jv9q0jBPT1A7UYS3dmASgWEI77VQ6v3BD354OFUfL6b2Ha1KvdX1AW/ZRXaIAlf Q0qJtkh9zd5kN5gZT1Beib6qzmVTatybnVPPGJ1oHeupUZP3wpCFays02H5IFH3T+7 bAn3rhqdpPEwwZlmsqEQU/GpNqx8789eZejVldw8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Spencer E. Olson" , Ian Abbott , Sasha Levin Subject: [PATCH 5.10 209/530] staging: comedi: tests: ni_routes_test: Fix compilation error Date: Wed, 12 May 2021 16:45:19 +0200 Message-Id: <20210512144826.710791921@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ian Abbott [ Upstream commit 6db58ed2b2d9bb1792eace4f9aa70e8bdd730ffc ] The `ni_routes_test` module is not currently selectable using the Kconfig files, but can be built by specifying `CONFIG_COMEDI_TESTS=m` on the "make" command line. It currently fails to compile due to an extra parameter added to the `ni_assign_device_routes` function by commit e3b7ce73c578 ("staging: comedi: ni_routes: Allow alternate board name for routes"). Fix it by supplying the value `NULL` for the added `alt_board_name` parameter (which specifies that there is no alternate board name). Fixes: e3b7ce73c578 ("staging: comedi: ni_routes: Allow alternate board name for routes") Cc: Spencer E. Olson Signed-off-by: Ian Abbott Link: https://lore.kernel.org/r/20210407140142.447250-2-abbotti@mev.co.uk Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/comedi/drivers/tests/ni_routes_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/tests/ni_routes_test.c b/drivers/staging/comedi/drivers/tests/ni_routes_test.c index eaefaf596a37..02606e39625a 100644 --- a/drivers/staging/comedi/drivers/tests/ni_routes_test.c +++ b/drivers/staging/comedi/drivers/tests/ni_routes_test.c @@ -217,7 +217,8 @@ void test_ni_assign_device_routes(void) const u8 *table, *oldtable; init_pci_6070e(); - ni_assign_device_routes(ni_eseries, pci_6070e, &private.routing_tables); + ni_assign_device_routes(ni_eseries, pci_6070e, NULL, + &private.routing_tables); devroutes = private.routing_tables.valid_routes; table = private.routing_tables.route_values; @@ -253,7 +254,8 @@ void test_ni_assign_device_routes(void) olddevroutes = devroutes; oldtable = table; init_pci_6220(); - ni_assign_device_routes(ni_mseries, pci_6220, &private.routing_tables); + ni_assign_device_routes(ni_mseries, pci_6220, NULL, + &private.routing_tables); devroutes = private.routing_tables.valid_routes; table = private.routing_tables.route_values; -- 2.30.2