Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4919239pxb; Tue, 28 Sep 2021 06:58:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi1h4SMwuF+neYAgkrKlQj1HBvTtRA2RuFRN03EOS9o4MUsAK+/qiKdsjxQ0xKXDUPADsp X-Received: by 2002:a17:906:4819:: with SMTP id w25mr7060023ejq.421.1632837515813; Tue, 28 Sep 2021 06:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632837515; cv=none; d=google.com; s=arc-20160816; b=jk3saon3UZhs/DQG3t47nkLBuIF9wsmuJDyi2xGcyUmLoBB+VCDDcfiJZLN/G6ADSh hzBOUNegea5FuuINiNUNDig1N6yOaa8oNzeQclmq9slISaePmFmy6sg+GM8od+hMJtD0 ersz5YcszY4Q31BCzoWos3YpE5n+Nej726BczOghL3C5s+a9F6sFXS1vcgHNihb7hPxb oIa3OdLFCOHuqLT+HNbEtn9lUDVQhfLNXqB2gkcjZzsJ7x6TikLW0GU4VEcNxCn89XnE uBvHUs0liDyYNtzzJiNyraOumbygNOyb7P7gtjUtcfmWQAKS6ax7WEqpDcITh29mbd5s kClg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Rz66kfn+izt3kItA4qo76u0bz107nBtiOtEv9Efcpt8=; b=GoP7Z6/RSQTBcYHPvW618wmjUhXdW2hAKwHq9LGdhfb/kQcwDS+VnfFZBVTD6VhVyL D6m+QxstZkCOy9fFQr+nNcPewDm/B3O/wFEg4q5NeoWMCZ7LftvABHavlL9yT+Z8Ayso VthPpRDR20CTuFW2c5WUahV8fx2DEPE9p+P1PbYH2lGzGE3PfrvgY1yQYtPZhrXN6LEJ 1CBQAL6dX2UGilW5lF1Yd8GY0Pd3Jh/wEOy2tDPxIRGhdBo5kqSSUBEwZsbOR+M1pQCu ToghzlVMSeepg6IIUbnBcC+6TxkHcWhByxXDn8gXZrWq8O5/75/wRWp2Zu5wy0HF4iAs 8oRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ka7si160425ejc.664.2021.09.28.06.58.01; Tue, 28 Sep 2021 06:58:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241104AbhI1N6y (ORCPT + 99 others); Tue, 28 Sep 2021 09:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241014AbhI1N6y (ORCPT ); Tue, 28 Sep 2021 09:58:54 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2CFDC06161C for ; Tue, 28 Sep 2021 06:57:14 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVDbZ-0006bj-Na; Tue, 28 Sep 2021 15:57:09 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mVDbU-00039U-I2; Tue, 28 Sep 2021 15:57:04 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mVDbU-0004fU-Gf; Tue, 28 Sep 2021 15:57:04 +0200 Date: Tue, 28 Sep 2021 15:57:04 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Giovanni Cabiddu Cc: Fiona Trahe , Herbert Xu , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Marco Chiappero , linux-pci@vger.kernel.org, qat-linux@intel.com, Bjorn Helgaas , linux-crypto@vger.kernel.org, kernel@pengutronix.de, Jack Xu , Wojciech Ziemba , Tomaszx Kowalik , Andy Shevchenko , "David S. Miller" Subject: Re: [PATCH v4 6/8] crypto: qat - simplify adf_enable_aer() Message-ID: <20210928135704.oqyffwwt4lvmmlx3@pengutronix.de> References: <20210927204326.612555-1-uwe@kleine-koenig.org> <20210927204326.612555-7-uwe@kleine-koenig.org> <20210928112637.kolit6fusme7g2qf@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="apvqrcqw3egzs47r" Content-Disposition: inline In-Reply-To: <20210928112637.kolit6fusme7g2qf@pengutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --apvqrcqw3egzs47r Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Tue, Sep 28, 2021 at 01:26:37PM +0200, Uwe Kleine-K=C3=B6nig wrote: > On Tue, Sep 28, 2021 at 12:11:38PM +0100, Giovanni Cabiddu wrote: > > On Mon, Sep 27, 2021 at 10:43:24PM +0200, Uwe Kleine-K=C3=B6nig wrote: > > > From: Uwe Kleine-K=C3=B6nig > > >=20 > > > A struct pci_driver is supposed to be constant and assigning .err_han= dler > > > once per bound device isn't really sensible. Also as the function ret= urns > > > zero unconditionally let it return no value instead and simplify the > > > callers accordingly. > > >=20 > > > As a side effect this removes one user of struct pci_dev::driver. This > > > member is planned to be removed. > > >=20 > > > Signed-off-by: Uwe Kleine-K=C3=B6nig > > > --- > >=20 > > this patch does not build. > >=20 > > drivers/crypto/qat/qat_c3xxx/adf_drv.c:36:24: error: =E2=80=98adf_err_h= andler=E2=80=99 undeclared here (not in a function) > > 36 | .err_handler =3D adf_err_handler, > > | ^~~~~~~~~~~~~~~ > > drivers/crypto/qat/qat_4xxx/adf_drv.c:303:24: error: =E2=80=98adf_err_h= andler=E2=80=99 undeclared here (not in a function) > > 303 | .err_handler =3D adf_err_handler, > > | ^~~~~~~~~~~~~~~ > > drivers/crypto/qat/qat_c62x/adf_drv.c:36:24: error: =E2=80=98adf_err_ha= ndler=E2=80=99 undeclared here (not in a function) > > 36 | .err_handler =3D adf_err_handler, > > | ^~~~~~~~~~~~~~~ > > drivers/crypto/qat/qat_dh895xcc/adf_drv.c:36:24: error: =E2=80=98adf_er= r_handler=E2=80=99 undeclared here (not in a function) > > 36 | .err_handler =3D adf_err_handler, > > | ^~~~~~~~~~~~~~~ > > make[2]: *** [scripts/Makefile.build:277: drivers/crypto/qat/qat_c3xxx/= adf_drv.o] Error 1 >=20 > Hmm, I thought that was one of the things I actually tested after > rebasing. Will recheck. I fixed it now, comparing with your patch the only thing I did differently is ordering in the header file. I pushed the fixed series to https://git.pengutronix.de/git/ukl/linux pci-dedup Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=C3=B6nig = | Industrial Linux Solutions | https://www.pengutronix.de/ | --apvqrcqw3egzs47r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmFTHy0ACgkQwfwUeK3K 7AkFrggAllDiubJuF+ASqh0qKozM8Cz38KFhLmvfAIndUs/P6V5ob4TlWSuAsmzj Bml1dlpDGTCEh0ocGFdDaT8RrptIrzwj7LJ9S3VRkuvL9OYlX8JG8HcKegYt8g44 aYu0Zzb5pklbLRs3juFBZ5gnGOJ6IaaRdRbzF9yM31wQVqYaXLhRae65lFDXmasu JF8eJ9rMEIOL6io/WUM8OeocyE4clkw9XgSnrKBHeOAQZNsJoyQONkBkAN72pWeZ ZP+pJICLTaBcoPUvOALZ9cWnazKxPHxAYPaF5JZWZs8T+JzfjInDD4DwYFFGjyA+ x2F7QAmL/BBslfeeDOu6BguemuYzQw== =qq0w -----END PGP SIGNATURE----- --apvqrcqw3egzs47r--