Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp182221pxb; Wed, 25 Aug 2021 00:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwatD7th5OojEy/vVtpWA8HpJMvEv+uCcb9FakqYhxssrj4fGiAIPlVqE9BFeklVwN0NaTm X-Received: by 2002:a92:d650:: with SMTP id x16mr15349635ilp.253.1629875459490; Wed, 25 Aug 2021 00:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629875459; cv=none; d=google.com; s=arc-20160816; b=P9mTmfo7RWhPvhXlixUs7M89AOAPThXAwKmJAfOSobEarEFTgo9W2SlfFynM+g7EaX 81R4cCmcppb1n3BgXxicfiK10zDIp+yAKFUIjops3WRly6W6zhqzXLBGHl9sqVz4mmrc hqHsb1g6dbpVRuNcWQc3vT0QxvW/f5/h0HMYeXST4Y9/wHJcALoWQBdheTdHkH74sj9I ixqTZB9vgSQBxsQNwGQKLP9iqk2Y22qUbHh73dOOjtRitJq010C+f6Vw13xCWRhD2gmn GdwuU4atKdHvB/JLyRl2eyuejzrog+siKO5WkTqLTNiY8cefGgtYpeZOxF20x1A4xsgH hbaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=a4pPAnPqEa43Lidklbkuq5J6HSlPXZbVwxVC0FuIyh0=; b=ETWKEGB6HuL5MuFpYsdafYeGj909Ox5gs0UwgDgBOXfoHFhrTugvGXsfmQEZrIlm1Z za82WJS9XwbwF4XAKgjdR1BMmkcee5vgsr7j2tIaPJ8/MVN/h0xMl+U5+IfmBOKmQwQE 6MbvWku69fWcBxeAt+ZEhgd//awayqAl1HgqoFxTVaUwEOYaEIfy8VhfAUnqGdem1HL0 EvOcY1e1noWJPq0d1GkHpvKoCj7b9ygzDEJDEU8uZ4/2pwFRQBlLUEaHECSZBRgyPO/j SoSKr5WiNior4ej9DaTxn98TXx10QmI5hXFvoAlczgRVbT1x+xYESbyrl/dtPhwUiOb7 tYxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si18944085ioc.55.2021.08.25.00.10.47; Wed, 25 Aug 2021 00:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239146AbhHYHJJ (ORCPT + 99 others); Wed, 25 Aug 2021 03:09:09 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14415 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238318AbhHYHJE (ORCPT ); Wed, 25 Aug 2021 03:09:04 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GvcRF245pzbdSx; Wed, 25 Aug 2021 15:04:25 +0800 (CST) Received: from dggpeml500023.china.huawei.com (7.185.36.114) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 25 Aug 2021 15:08:15 +0800 Received: from localhost.localdomain (10.69.192.56) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 25 Aug 2021 15:08:15 +0800 From: Shaokun Zhang To: CC: Shaokun Zhang , Peter Zijlstra , Ingo Molnar Subject: [PATCH] locking/lockdep: Cleanup the repeated declaration Date: Wed, 25 Aug 2021 15:07:04 +0800 Message-ID: <1629875224-32751-1-git-send-email-zhangshaokun@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'struct task_struct' has been decleared twice, so keep the top one and cleanup the repeated one. Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Shaokun Zhang --- include/linux/debug_locks.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index 3f49e65169c6..dbb409d77d4f 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h @@ -47,8 +47,6 @@ extern int debug_locks_off(void); # define locking_selftest() do { } while (0) #endif -struct task_struct; - #ifdef CONFIG_LOCKDEP extern void debug_show_all_locks(void); extern void debug_show_held_locks(struct task_struct *task); -- 2.7.4