From patchwork Sat Apr 15 03:31:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 83640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp812034vqo; Fri, 14 Apr 2023 20:48:54 -0700 (PDT) X-Google-Smtp-Source: AKy350alK6ASijwaglaTiYDWjq0XlakspBytW0wosRqggviz8jgPF8hlrtix8cnr8OzdcT3xwAto X-Received: by 2002:a17:903:74d:b0:1a5:d0:740c with SMTP id kl13-20020a170903074d00b001a500d0740cmr4483627plb.46.1681530534328; Fri, 14 Apr 2023 20:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681530534; cv=none; d=google.com; s=arc-20160816; b=UAA2OYsWaC3dFrAbczxJbAu5zsUWOchUcVY2b499upAmvHj9xZ6ZUcC5ela82nrKhL tgAv5p/9aMGZa632Gx7rgy0UB4EkzDaqm4IT4vGrJvsr1MrcL6Aynl8Szb01ISDh4JQ6 OCPdDC9ikQgqI9Qk8KVASDO0dv9xNIr/Od1zduiuVuX11lq09S00JorQGshWSXapX1mA tPzcwkBDc7+tSg5Gxj120Ra84krWFvvOBCEgOUWBb9vIVFqdzVCjoBjneRW4slIWXYr8 KfvlzaW6p6RDPxUHk4vfg4Sa+l5le308su2b0lD/EPZzpj1QmsfJerYXXkk1brjn9IZ+ 283A== 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=QpF84t3VyokMrQTBwoHP545uCs3/l5dbKE7JqIYciEJg4G+NEGrszjcy8S+FH5efFU ISY/gHcx8YvYOCIBpHfi/ntc9lIEV14SEVYehXlyWDet+/8ksC5mqyvklNLi7CnnLtiQ gVL88vKT+d5m2Q+fO1FPJr/dZirH0uqtAqXTeq+blMZbW+TpNBinvBnPPoF+dA3LsfYK bHaS7OJ7gRdDJLSIf6trihLzAtgWzKDKUaJGnKtI5OJPStaa9gI1JVUD5wJzgBc3Qykh GJpcwLxk6Ny5IuVcBtfrdOG5B3gjT5Gl7bF/VUzpOnCEkI6cKaikMvUDcAKmMawitIpB EHNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gfAHqZdY; 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 b11-20020a170903228b00b001a1e4051da5si6730510plh.498.2023.04.14.20.48.36; Fri, 14 Apr 2023 20:48:54 -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=gfAHqZdY; 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 S229907AbjDODcT (ORCPT + 99 others); Fri, 14 Apr 2023 23:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjDODcL (ORCPT ); Fri, 14 Apr 2023 23:32:11 -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 76E871A4 for ; Fri, 14 Apr 2023 20:32:10 -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 11FD6649C2 for ; Sat, 15 Apr 2023 03:32:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 050D3C433EF; Sat, 15 Apr 2023 03:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681529529; bh=Es+n5/VxwrYKRoTO9yEi5YcqrEo9wXUokpGjthhzOWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gfAHqZdYLDEtDBNe3izGYDVYbHgZDIpJe6szA/ogq2htIeX+b9ERpbUxB6TMIxL0u iNi4MOa0jem3Y/yIE+XIYwVVdw3GgvxjfIzAatbQuOugxH5EFQYOCVkyk9CuzV00NH q8+rxycDEB52drl3fQrIz+Dl7BdGKApw4hiFHSq08c3kTrtWFHdYj69pYVf4+pK0zm wCiN+0Rb72bkl7b4/8LNFQ+uxhDt/VL7CKoM+EEW4lMD4z2B2cNsT6iJ1Ju66wNGs0 BPv3cP+eBH/KhtEaBqKFQ4lvK+lAd7Y4+tUdh+Ok4iC54B3un00hJsch43WLnveedB CDQYMt4sdn/8w== From: SeongJae Park To: akpm@linux-foundation.org Cc: vbabka@suse.cz, willy@infradead.org, paulmck@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH v2 1/2] mm/slab: add a missing semicolon on SLAB_TYPESAFE_BY_RCU example code Date: Sat, 15 Apr 2023 03:31:58 +0000 Message-Id: <20230415033159.4249-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230415033159.4249-1-sj@kernel.org> References: <20230415033159.4249-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?1763212561136290335?= X-GMAIL-MSGID: =?utf-8?q?1763212561136290335?= An example code snippet for SLAB_TYPESAFE_BY_RCU is missing a semicolon. Add it. Signed-off-by: SeongJae Park Reviewed-by: Paul E. McKenney --- 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) {