From patchwork Mon Apr 17 19:04:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 84415 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2349085vqo; Mon, 17 Apr 2023 12:17:15 -0700 (PDT) X-Google-Smtp-Source: AKy350YCCqUucI1cL3Wg/sN2cM8p/jUb3EfhFcXAC7CkTlA8y3XXVS9lx3YyWPVlxvPHTo7U28uL X-Received: by 2002:a05:6a00:acb:b0:63b:854e:8459 with SMTP id c11-20020a056a000acb00b0063b854e8459mr9583649pfl.31.1681759035217; Mon, 17 Apr 2023 12:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681759035; cv=none; d=google.com; s=arc-20160816; b=JOoYI8qnE62ELywgbbJrhs/LhZPgcso0n1AyrRAMX7bIQYyuzszTIbWO9MFZZrEZQH 5cvOx3uni4ZaD5zLOZfhN+N49mKRVwIAjhesZMCAqJnMCSoLOrfVMqC7gQT9APkFuW3d zT8ZTnMTyeqms9nxFpBa76Wcm7DqBIsGDW7B/mMSB4jR95IzHQSC3PxY5Uw8CNt80eDJ AkPu0l7teoUXgpL1w/QdG8zM1vLm3omrIoSK3wznAF4EQfGLVuBnOgyd4LQLc9pkSQCn WfJnDFtT/kwdcPgxepVNK8GMdx/rVHNyr0EkWx7D8/dhz5PZZo0oki0Pvwt8cEMyLQMb 0qUw== 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=MhTz6d6oVgpFx/Sb9wUAPGcWrqLArJdIllPwx5eQr0g=; b=nee6hQ7oJA0FV/hgS0YppZ1ZPwPefhPYmZFfNx/zJndSaRaLES1fKKwE126Bc3Hy7T 5Ek29WE7nTe/SI2HPj3TOq9gMbweWBZRPMXm/j3aj1dyGgmal1stMxWnM/YIvJgz5ma8 e2Hw4hOsF/7gjynxzqlq6OZeXBwOV/W02AQhZUzuLgF4tBmuRoBEZ8D7i80Fw6L7rXFq kcRlQSdVqGAcJyB4toSZKGigSZqrIoNc0Pc8xY5gx+AqFODFLYPMx5CABjoPvSCg5Lf9 3Niycam75D/L1ue+ZFAcBvmmGTRga3zjm1p3UNcWHjXaujBwqkjFFbAPg9btZGVJUq3z gTlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RgJKJZP1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a63ee46000000b0050f55427e3dsi12647344pgk.701.2023.04.17.12.16.59; Mon, 17 Apr 2023 12:17:15 -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=RgJKJZP1; 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 S230307AbjDQTE7 (ORCPT + 99 others); Mon, 17 Apr 2023 15:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjDQTE5 (ORCPT ); Mon, 17 Apr 2023 15:04:57 -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 B9EF335BF for ; Mon, 17 Apr 2023 12:04:56 -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 557A462035 for ; Mon, 17 Apr 2023 19:04:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26228C4339E; Mon, 17 Apr 2023 19:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681758295; bh=Es+n5/VxwrYKRoTO9yEi5YcqrEo9wXUokpGjthhzOWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RgJKJZP1Azyy4TtIdtY0e/Vw4MOdCwh3eRMrek9xlz58FkybYo90JfWDYWNFJRSPb SvesEN8BOVV13SyBwJeCHr9I3f0QTJRJ/TO0n7ftJKweAqvON4UY9Oah6ITeQLbdEI /MoOTIOoyfX//GONmpP6fAv3wXfANUVJMyxiY1UXRzpS8E4zBFvdWmOcmcd38/4737 aq1RUS5eDBLgw6qTLA4zxqYK15kxqBKssKv7QidaALrYpqnv70mCyD0irRUofeQa0z QNRiXIBy1kh+Bk36UqyzHT+U65H7+AWL3CcUd3Ac05fzEcVeImSdl0zrhRksOXJYPr Cq4PNInLJMXBw== From: SeongJae Park To: akpm@linux-foundation.org Cc: SeongJae Park , vbabka@suse.cz, willy@infradead.org, paulmck@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] mm/slab: add a missing semicolon on SLAB_TYPESAFE_BY_RCU example code Date: Mon, 17 Apr 2023 19:04:49 +0000 Message-Id: <20230417190450.1682-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230417190450.1682-1-sj@kernel.org> References: <20230417190450.1682-1-sj@kernel.org> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763452162222217433?= X-GMAIL-MSGID: =?utf-8?q?1763452162222217433?= An example code snippet for SLAB_TYPESAFE_BY_RCU is missing a semicolon. Add it. Signed-off-by: SeongJae Park --- include/linux/slab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index f8b1d63c63a3..b18e56c6f06c 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -53,7 +53,7 @@ * stays valid, the trick to using this is relying on an independent * object validation pass. Something like: * - * rcu_read_lock() + * rcu_read_lock(); * again: * obj = lockless_lookup(key); * if (obj) {