Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp907758rdb; Fri, 1 Dec 2023 01:35:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IG3wQVQm4ZIfJBURCmCdY5gunNln/fR6SlQZPzGAzAsSzNwyprHEhrzzXmVt9pWZujEcDmU X-Received: by 2002:a05:6a00:6c9e:b0:6cd:eb7c:c985 with SMTP id jc30-20020a056a006c9e00b006cdeb7cc985mr4679576pfb.27.1701423301486; Fri, 01 Dec 2023 01:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701423301; cv=none; d=google.com; s=arc-20160816; b=LfPvlGCuQIDpZOf8HE/F/t17dFlHG630iyVihmXlNoEyQa9MPH2E6t31Xj27C1k0ue T0hVEjHo7mK0TDNEPjWiHrb/mTofk9xcwHDkWfsVln2+OL7+dleKibepHY0R9T9+tvf4 VZbCGjBoNhDFKyv2HQNLq+JqvmWiMHB3rN+/tfI5cIlBsCx2odlrM3Lb0cmCJ/tM/rEY x8pxoFLD12dNgz+Advpag2OUTSGTMGZEpfqrdZ/JveoYpnaQBNIaRRp9hUXKnIvQe/Kq geTOiMSAqcmPVtpjeF+iWdzODp19sG3QhkhpoGZpWXQwzVay1bN8VgtX7SPH4icIkVwF 76pw== 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=Z88rNUOWQl5Oms/zaJGexQGwIHPv4omKddNJKy+M2zY=; fh=h6aFmPrr3iBbqHWFUNBaDXDrREuvAVpTJeHTooNtUfE=; b=rDIHIq2hItWGRKxpKTe7DkyXOAxdUcZ5RpmlQdbeO/7hCQF3IRlkkUnZcpjEwqZT1/ PecHUy4po4rqKEEIq6/OvS+eNMN9GtZLWnqMbTFeRDhygBaq0qbLlQ9jI0SdWgelXrGX cr/pTuviP8HKL6EcJwSdHZr2lS2wV2kNZDAijL6LE4HgjafS6xNBMr3S1MweSn75u2Td NbOntf2Z7aUZ/5p0myY1qxQ2vHNUcuS8IYqIZ/dScuYZjd1qMet/AjywDNeVjNjXDQVw RO1Vbv6NPD/xE6RMIGW1Y/6CeI3t6uBapwNN4UgZ47hMQ2QMPy59b+a4rvgluJ2J9pgp /SFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ka6-20020a056a00938600b006cbb132d46dsi3064976pfb.244.2023.12.01.01.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:35:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3390980FA87F; Fri, 1 Dec 2023 01:34:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378105AbjLAJeq (ORCPT + 99 others); Fri, 1 Dec 2023 04:34:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378109AbjLAJeZ (ORCPT ); Fri, 1 Dec 2023 04:34:25 -0500 Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED18F1FCA; Fri, 1 Dec 2023 01:34:17 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1r8zuK-005gqn-NS; Fri, 01 Dec 2023 17:34:01 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 01 Dec 2023 17:34:09 +0800 Date: Fri, 1 Dec 2023 17:34:09 +0800 From: Herbert Xu To: LeoLiu-oc Cc: olivia@selenic.com, martin@kaiser.cx, jiajie.ho@starfivetech.com, jenny.zhang@starfivetech.com, mmyangfl@gmail.com, robh@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, x86@vger.kernel.org, CobeChen@zhaoxin.com, TonyWWang@zhaoxin.com, YunShen@zhaoxin.com, LeoLiu@zhaoxin.com Subject: Re: [PATCH v2] hwrng: add Zhaoxin rng driver base on rep_xstore instruction Message-ID: References: <20231107070900.496827-1-LeoLiu-oc@zhaoxin.com> <20231121032939.610048-1-LeoLiu-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121032939.610048-1-LeoLiu-oc@zhaoxin.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:34:59 -0800 (PST) On Tue, Nov 21, 2023 at 11:29:39AM +0800, LeoLiu-oc wrote: > > +static const struct x86_cpu_id via_rng_cpu_ids[] = { > + X86_MATCH_VENDOR_FAM_FEATURE(CENTAUR, 6, X86_FEATURE_XSTORE, NULL), > + {} > +}; > +MODULE_DEVICE_TABLE(x86cpu, via_rng_cpu_ids); Rather than moving the whole thing, just add this near the start of the file: static const struct x86_cpu_id via_rng_cpu_ids[]; Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt