Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1134271rwr; Thu, 20 Apr 2023 10:21:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bTeYA1kD7pVPf082ZrMd10JwuDOub8muoUtiu5JDvBKpTBzEwUS0qL5JwUQ3azMrEMYyJ0 X-Received: by 2002:a17:902:f78f:b0:1a6:6f42:f5c0 with SMTP id q15-20020a170902f78f00b001a66f42f5c0mr2475147pln.61.1682011283707; Thu, 20 Apr 2023 10:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682011283; cv=none; d=google.com; s=arc-20160816; b=qaYPhx/X3K/25fnTcf28ZsICr8FLXh8YHq4/a2eR3RmPAyomtYBAisZE1+b66iztHU JtuQDIxSpYmDPOzdFSyqnm6bmkyTcEoHFTk4fNgObMx1YRWoS1cmsHjx+IYXyNDWb33l 6n0zSANbIJiQkKB6ITRP/coDtorqC5jmZmvsr7TUQmOskckizdmckypNPAkZhGNhXKec BkfqP7FrB1zFsToUqiuzILjwVRRqXahuF8sGusvmasTQR7On8mhvccUMExj9EED5CPIa /8OrsI5JWwhQmTWpPHvJZpb6L3iqNd6cocI5ck8L8LQ4MfUXa/1j0R7k1YZrzBrM0QRy nAng== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ryIjKfY7izGqwI6qvTYunX+PS8dn2OG2S0+YEZpLOxk=; b=PHRr8yTI89+X/tcWBdRijZfEjUhjUY4joeQ5YlydWgcctXAwokApwCcYcpkxD5F8BD 2dqAYGiTldICr9Wl5igReKejzgh7qmr35HneK8l/1YBaZdGXsnO47iqJ5WpcYH2d6/kS 1M07EjW7g0oePmD4rbx3RZ6O6EufysBnCQ1oHt2if6IfcBS9TMpXCjRcNQTkTYcPHoKx ZXE3ZFv5t/Wd8/Sap9ZGnyC23pGFphpheC2XBLs4kNutOXcYPtOrElyd2ahPiBbePyo9 URHdl8pIXn9HVz0fdptOmcDiww3HDoIMG/u/EPcE8hCX8EJ9Qpzv0pgJ9qQZ9J5asgHJ C2ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I+QMus2r; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a170902eb8a00b001a63e1de408si2346675plg.353.2023.04.20.10.21.12; Thu, 20 Apr 2023 10:21:23 -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=@kernel.org header.s=k20201202 header.b=I+QMus2r; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231204AbjDTRFJ (ORCPT + 99 others); Thu, 20 Apr 2023 13:05:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbjDTRFE (ORCPT ); Thu, 20 Apr 2023 13:05:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73CF9D2; Thu, 20 Apr 2023 10:05:02 -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 dfw.source.kernel.org (Postfix) with ESMTPS id EE45F60EDF; Thu, 20 Apr 2023 17:05:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6DACC433D2; Thu, 20 Apr 2023 17:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682010301; bh=l1TvL8OQdBavurwxDnbzlunPMrvFhKPpWvlZWHCIJ1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I+QMus2rDlnVPcrRRoWKNDM+23YVIIkNirhXKyPWUiSxOiyWJjMr08ficsZIv1zYE yf7aeyhUZ4g+W8Fcnjy10lKAp88V8ZefY9TJnqRzm9VEAYesehjYylC7bLq+fHzRct x4DlX0ehxz50yhw0AZVg5s6wSCF2drrVPqX9WP5BEZvbjuVOpXXJcXrk3DZmS/NmrC 1jufINtZhfAAudfIP2VlqulP0U6Mw8nnMcTxv+AbP+hKiOcu5kLObQro7mddVCVGG4 1b21tflgrhXmwaA4h3Lusm3HmuylI1IzVOmJXkBrAyNcuzSItdU8aWcdz+BNsDcUWa UgbnI4W2CPQrQ== From: Will Deacon To: Dan Carpenter , James Morse Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Kristina Martsenko , Ard Biesheuvel , Liu Song , Mark Rutland , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, D Scott Phillips , Mark Brown , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: delete dead code in this_cpu_set_vectors() Date: Thu, 20 Apr 2023 18:04:52 +0100 Message-Id: <168198389444.147011.7790274772825720678.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <73859c9e-dea0-4764-bf01-7ae694fa2e37@kili.mountain> References: <73859c9e-dea0-4764-bf01-7ae694fa2e37@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Wed, 19 Apr 2023 10:58:43 +0300, Dan Carpenter wrote: > The "slot" variable is an enum, and in this context it is an unsigned > int. So the type means it can never be negative and also we never pass > invalid data to this function. If something did pass invalid data then > this check would be insufficient protection. > > Applied to arm64 (for-next/misc), thanks! [1/1] arm64: delete dead code in this_cpu_set_vectors() https://git.kernel.org/arm64/c/460e70e2dc9a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev