Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp497091lqb; Thu, 14 Mar 2024 18:54:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaFiHj/w3Q6iqVwxb3cOwxA4na2AZ99/fScN18lA2vkUEEBHlEO6h31azwdsGnXVHSjF7nrgIesYLUxRj48gyf+SC7TKflArr/HfwNVQ== X-Google-Smtp-Source: AGHT+IE1LrJZv4Py2bDpZwhiXEsBqOa0VNxQaU5VZZPgmIwmMU+Uh+hsBwN8UVwnjcJH/QueZ+Vn X-Received: by 2002:a9d:740b:0:b0:6e5:1cb5:4eeb with SMTP id n11-20020a9d740b000000b006e51cb54eebmr2546216otk.8.1710467657519; Thu, 14 Mar 2024 18:54:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710467657; cv=pass; d=google.com; s=arc-20160816; b=B2bJvQWWnPWst2QyNHp6BTRIXUtVAASGIhNiYPOe96bH4B+FTnbByeFf3B2mrPZP6X O/+3lEy+OjATp9psMwbjzm9u/e1wfL5Ja8fYch6rs0NUeBCrMwiQwF4ub8IaMOiQr8HC 37t+4g1PLQ4br0hcmQnRT+EGz+E21V1HQQfXH3EjsdUeiM1xKVbX2pNtXAchr4EevnFd L1SfaC41gdEwzVzm+3HIaGAtZlJZmWNsEZppLCBfazlPQ/nZO/jhsrhaHO2x3lYT+4nd P/WQNF2hzXaISmiz0VqL2wwWu57ljPwpziRqlauB8w+tyMkQwJhA3q1t1AF1fjvFAfuZ MetQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=px9N44gO4i927LMckVeMvo+Wb1vg+vgE8QfX2H4P0og=; fh=bF0Vz+ObgSb73s1sdVuPzrZLifb1cWEnKoaFyKaFWf4=; b=HyNdDHx2f7b+Zj73ID1yHCSgkibzIyEdqPjKFxVNXVwE/WM3pjnruU8VrFwOgfdWHP Sv7akOCbG27w3/TCB38VSzj21WbjFD/v1eIokR0xUg/Pc/WFjM7EUbXBZZneZiwQWvhU 7BkV+EDcobEDJ8bRWHV22YZ3gq9+mslde/Wu0MdhGYlY+zse1FYNq+nXtNWB5DebwT0M vt+fFj9FZjWYXTKtEEpH3yz+ZUyYi0f5VdxVrxbB76RvIyxnNqsNHhOdLqAlRqoGAbXR ufEBw09aUNayDyAE7yTMC2xhQUVCMYQlh64w18xRERVWAME90E6CQjeZzfmhg1GgezRR lo8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b="U6Bi/ROI"; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-103975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e187-20020a6369c4000000b005d4a1e64c7asi1680371pgc.332.2024.03.14.18.54.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 18:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b="U6Bi/ROI"; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-103975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2ABF4283595 for ; Fri, 15 Mar 2024 01:54:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EBF163B1; Fri, 15 Mar 2024 01:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="U6Bi/ROI" Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEAB74C91; Fri, 15 Mar 2024 01:54:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710467651; cv=none; b=ALkU/MjLbtRA68IEcnRjlacIFqojE3EcuItLH818gT5f4p9JH7rRy6Asv+d5tCRx1536/90AzKxfxV+8pTAY6qBjgCNPHTrVR0FlwCyp5wcsZrvTTqsIRsKrFnLkP9xeObjGuIw9jnUKOxgsKVkUQt23kBgKV+olIY1f3bw7uZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710467651; c=relaxed/simple; bh=ruOgGDUL1x1bYYko096jvBmMwxvl0FULlZFFHrqtuuY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uEk0FDESBI+36avHHUAhNb0xtOHpsCArSGy0PPxFgMwAYe4byhzo5zm87EWHWCaHxc+IXgiKKVNT6k5X/fS3f9HyFcD1XWblC5qhGl6VbHvLZIHOEy691zClB33mLfCmDCZA0qZhCxbnpm2Y+sV4gsQtLkYgLDbxkfuTZ9/10H0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=U6Bi/ROI; arc=none smtp.client-ip=115.124.30.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1710467641; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=px9N44gO4i927LMckVeMvo+Wb1vg+vgE8QfX2H4P0og=; b=U6Bi/ROICx1kenEr4vIPjsBsSGnb+7jd6z6ayNZxCtX0+xPB7CuQ85zkD9bhfcVQZkR38gZULJtKRbu9iJFQjZ3RGjvC/KGas2urcd5TMtFb5fWiNtB7TjUfD9a6ZugOwpvUCNbP3f2dYaomMvVzzyUfNmnmPPMM6JotP/S46y8= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0W2UCwML_1710467629; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W2UCwML_1710467629) by smtp.aliyun-inc.com; Fri, 15 Mar 2024 09:54:00 +0800 From: Jiapeng Chong To: keescook@chromium.org Cc: elver@google.com, andreyknvl@gmail.com, ryabinin.a.a@gmail.com, akpm@linux-foundation.org, kasan-dev@googlegroups.com, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] ubsan: Remove unused function Date: Fri, 15 Mar 2024 09:53:47 +0800 Message-Id: <20240315015347.2259-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The function are defined in the test_ubsan.c file, but not called elsewhere, so delete the unused function. lib/test_ubsan.c:137:28: warning: unused variable 'skip_ubsan_array'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8541 Signed-off-by: Jiapeng Chong --- lib/test_ubsan.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/test_ubsan.c b/lib/test_ubsan.c index 276c12140ee2..be335a93224f 100644 --- a/lib/test_ubsan.c +++ b/lib/test_ubsan.c @@ -133,11 +133,6 @@ static const test_ubsan_fp test_ubsan_array[] = { test_ubsan_misaligned_access, }; -/* Excluded because they Oops the module. */ -static const test_ubsan_fp skip_ubsan_array[] = { - test_ubsan_divrem_overflow, -}; - static int __init test_ubsan_init(void) { unsigned int i; -- 2.20.1.7.g153144c