Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1209151rwi; Fri, 14 Oct 2022 14:49:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46lvK/KvIfhmaLq+opCo0xHQN/fSNPNnodNHZH5FBqECeOkaAGDX0HvOdHss/oe/KLWDm8 X-Received: by 2002:a05:6402:2802:b0:43a:9098:55a0 with SMTP id h2-20020a056402280200b0043a909855a0mr5863449ede.179.1665784169615; Fri, 14 Oct 2022 14:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665784169; cv=none; d=google.com; s=arc-20160816; b=HLcu+YLtJUhrzOZ+e/DuH14uoBxHF8fZ9f23AUH/+LLbHjAg1qK3aI8JaVc98rNgSO NEevm671a8r2TtdAROYk5GD17J4Ry/wG7CVJXQxj0I8pDiYjBeaQ0aMgu9GEmRM5xjYI TJl9RKhDWJl65Sdr0uDo2FwjF2u8c1uBbDAHCP/LI0R8xnspAmlqy/JvTpgKpVsEAhW+ HoDLgEkk6ankF4yBS0eJQWP7O3xZIbxO203PrOYYg5KKVZ+3iGLbzpq+8eIx8776EsHf EJGSQZq9krigwnr40rXCZimnoMhNBmQQmEyMoVwebSWwW5qyZXjX5v9KiaE1wb+WcU+O woRQ== 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; bh=E03+78ee/OgvwNFXxRR5AFGA5rd1CIzLukkYilHlHrk=; b=YU4AfPkBgrPm4LOZdKcQwa57cWgDCnuO3zi3g0ld8mM7JIbIfgNF8BPahLgEvYY9Qo ce32A5FSCfskSy3sTP0tar1zZoGbZ6XgHRW1fYpdcf2y4ocXs67Nt0CQNW07162gj558 3y3MBynDs/v+gmchEqcH+WAU7KPAvOj0sF1Xby63/Kca/y9s+itjqqwHgYPRtq0YNeou uDjOvuIHkOOVwcLx/e83PZUFaKehOMEq3bFzam8nWau7iOd39nP8zY1uAX6ZBb/EXyBI 8ynszdiyvcBv3qgwd70wvsYiOL2zapND7dfC57T/5+lQ6Ex7N3/azzo3aiXaCLHVoJ3p VtwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a0564021e8b00b0045ca1098d05si4047241edf.349.2022.10.14.14.49.03; Fri, 14 Oct 2022 14:49:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229897AbiJNVXH (ORCPT + 99 others); Fri, 14 Oct 2022 17:23:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiJNVXA (ORCPT ); Fri, 14 Oct 2022 17:23:00 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD711DC09C for ; Fri, 14 Oct 2022 14:22:55 -0700 (PDT) Received: from localhost.localdomain (178.176.75.138) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Sat, 15 Oct 2022 00:22:47 +0300 From: Sergey Shtylyov To: Oleg Nesterov , Vineet Gupta , , CC: Andrew Morton Subject: [PATCH 01/13] arc: ptrace: user_regset_copyin_ignore() always returns 0 Date: Sat, 15 Oct 2022 00:22:23 +0300 Message-ID: <20221014212235.10770-2-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20221014212235.10770-1-s.shtylyov@omp.ru> References: <20221014212235.10770-1-s.shtylyov@omp.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [178.176.75.138] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 10/14/2022 21:00:39 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 173137 [Oct 14 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 500 500 6cc86d8f5638d79810308830d98d6b6279998c49 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: omp.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: {rdns complete} X-KSE-AntiSpam-Info: {fromrtbl complete} X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.75.138 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=none header.from=omp.ru;spf=none smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/14/2022 21:03:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/14/2022 3:23:00 PM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 user_regset_copyin_ignore() always returns 0, so checking its result seems pointless -- don't do this anymore... Signed-off-by: Sergey Shtylyov --- arch/arc/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/kernel/ptrace.c b/arch/arc/kernel/ptrace.c index da7542cea0d8..2abdcd9b09e8 100644 --- a/arch/arc/kernel/ptrace.c +++ b/arch/arc/kernel/ptrace.c @@ -185,7 +185,7 @@ static int genregs_set(struct task_struct *target, #define REG_IGNORE_ONE(LOC) \ if (!ret) \ - ret = user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ + user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, \ offsetof(struct user_regs_struct, LOC), \ offsetof(struct user_regs_struct, LOC) + 4); -- 2.26.3