From patchwork Mon Apr 17 17:32:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 84365 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2292775vqo; Mon, 17 Apr 2023 10:38:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aa6PAK+eKhFk5Xq8/Q1SwKUu2c007dOcX5LaF10a9eUHupGmMMjnVKCJPtuhR2YEKRYXY9 X-Received: by 2002:a05:6a00:a25:b0:62a:c1fa:b253 with SMTP id p37-20020a056a000a2500b0062ac1fab253mr22880821pfh.31.1681753110364; Mon, 17 Apr 2023 10:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681753110; cv=none; d=google.com; s=arc-20160816; b=x48+zY+k4lSyfknpyB3hd3farcaMZQyGBX6HUUqnpfWLz+ZKcvZd40w96w3l+Dh3n/ 4dGMFCfisHRJ4HRYx16nj2/TwuFvR6TPcAssyhLbLsDl7pyp95s59f2Gvy+o4abVDwgg X+7X/TbSC/6zkdFo7v85TRaCYBKVW6ETXOk+cDFemLBaEijxCrhDd6N49Z5qKYXeVhqM blsTkOApAubIiS6jen0JU5cqnKoTe0m/4YjCERvGCm53jOCIp+afI8p6CvKuVVE5puvh 9esgsrdPao37WkIfy6EmvpaLshQ1UAOEBWf/Jd3oeQSTjve3+ivA1pJNGf1BbWaDaISN kgKw== 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=FE8gdgWIdCZ8WsR/mNVwDlV70OmcWu6ZH1oKfFNb3f70sFCm5fzRQkHNjycp6Jt/bX OfqIWGkCcPJhW4JsKbhSo8e3tqnBVaclCMULScYzB4tAyTbvxp1gtWp0FSaWRUNJVumm VyD1W3e2FfaWsJCnjl6s2cn8St0AFdvbOM+h1YHolHrnZA3djqTDwC1DKX6J5zmiOqb6 ml5AJi955DK1DiOtumsYWAzbpVaygkDupWAfbbJWS9PPtx2RtPJc5hzpsWKzhBsg/ut0 zFpOutX1I8HFVngZ72M8jzfbjAc9mMUuLDIYzhblwby4fv6bmLhdm+FDR0ZCGKvD2W6H OQHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rlH9lbkO; 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 o25-20020aa79799000000b0063d2e0cf58esi1123807pfp.10.2023.04.17.10.38.17; Mon, 17 Apr 2023 10:38:30 -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=rlH9lbkO; 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 S230296AbjDQRct (ORCPT + 99 others); Mon, 17 Apr 2023 13:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbjDQRcr (ORCPT ); Mon, 17 Apr 2023 13:32:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A92D4E76 for ; Mon, 17 Apr 2023 10:32:46 -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 1F384621AE for ; Mon, 17 Apr 2023 17:32:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C786DC433EF; Mon, 17 Apr 2023 17:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681752765; bh=Es+n5/VxwrYKRoTO9yEi5YcqrEo9wXUokpGjthhzOWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rlH9lbkOVcwAIisH9F8THoJkl9K3xhlyWm4TKUEpm0Vkt0daWLvdvBbBuU4a4O5og BQ0fDOAAL3fC2ZidRrTB5pTjTklr7INrTAUDZ55/Z83W9/zYXenLaUCmGXxPyJtcLn zyImTrcCWxER+WZG4HbmSFAkieQM/VpLkf9dFQIoieIpbPrhrcVQUY7kiyWy41VCBR YpSFMK+ugQzbOxB/dADQa4/7DXVp1+ImgTOeAh3qW2CQYQYBsCZ51ckqR1JZjUUjpY KYsubIcX4mIJj6RbrYq1Og9GVI6q/L5Ys7dW7zpgw9OrqvE5fnT8YU1jX3zjIWFa1Z NmNggbU7Kq85w== 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 v3 1/2] mm/slab: add a missing semicolon on SLAB_TYPESAFE_BY_RCU example code Date: Mon, 17 Apr 2023 17:32:37 +0000 Message-Id: <20230417173238.22237-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230417173238.22237-1-sj@kernel.org> References: <20230417173238.22237-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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?1763445949285888228?= X-GMAIL-MSGID: =?utf-8?q?1763445949285888228?= 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) {