From patchwork Sun Jun 18 20:49:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 109676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2637562vqr; Sun, 18 Jun 2023 14:01:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XW24M/uCR+WkfoTD/YUngNHDrrXmODY5/X80AvcKyBE1Qrzw4NnW8BchogcUCdsHGeGQn X-Received: by 2002:a17:902:da91:b0:1ae:6cf0:94eb with SMTP id j17-20020a170902da9100b001ae6cf094ebmr8172322plx.5.1687122085852; Sun, 18 Jun 2023 14:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687122085; cv=none; d=google.com; s=arc-20160816; b=UczwnGDuHw9rEWbIvNc/gEdSn3VabSy+30xRqIgcngWu80Y7xw1PamhlOpPW3Jc2gz DD1oreiD69wAoC+f+/lCq+aI3sZmtOdwzSf3Da9+Rkop3+ojUmtzlkr8n5CtZh28/zy+ Rb/1uis3QJ7wtaCcCq2MQdmmkMhC9tSBp77fXWKI3TFEfKBZ4PYIo217Dm1ltY51pj7/ aITOtg6QF6CmRBz6ZeOC362CK1z+WtWkiIAiU4u3DUQE4uo6uQwBkRszKWxbMO4gsU2z W8ik1ulVNFzA8v80qFJaJTaLIhsGCAPBkA0B4uEOaGG+Bqn3qYI+ER6dXV1jcAiwGbVu K1og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=+poXMllneohhrgOgquiA/XGrGyhuMfgxXypp486YF1g=; b=gBQoY9+9lbOc7PffCJeyFppu7TojPB0xFKj1W8lqDe2NEJqIkrkbIi+mg8v/c7SiU3 pG+z+8/L0zuVloteFPWaDrzH+UKeMJ4q/kAXvG3EeLscLF+NzN7mW6MuALB1/4JOywnb BL6dM0/97LuCzDP2Z1BiCDki3rtn7hul+sfL/APfTF49OesTeEYnabWHg6DuMniWA2dP RTN0xgNB0RvheY6qiVi0Ua4GglItCOJJoOTtPKiWwcvK+iwBCkr99ds3raqR8l1TweRN ydQo6XMdTuvRHxyPymXezdhkbIzLDwwAgnBohZ4Q4y9x1NSoZWs2Up5Q4EOcLHVNwBfH badg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Z6VgrdCa; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902e75000b001b1a2c14a48si4261746plf.141.2023.06.18.14.01.13; Sun, 18 Jun 2023 14:01:25 -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=@linutronix.de header.s=2020 header.b=Z6VgrdCa; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbjFRUub (ORCPT + 99 others); Sun, 18 Jun 2023 16:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjFRUuB (ORCPT ); Sun, 18 Jun 2023 16:50:01 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BB39E4E; Sun, 18 Jun 2023 13:50:00 -0700 (PDT) Date: Sun, 18 Jun 2023 20:49:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1687121399; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+poXMllneohhrgOgquiA/XGrGyhuMfgxXypp486YF1g=; b=Z6VgrdCadpMQG0dgsfTZKxxGpXS9X2tnAv8aQgAZOBYnqP745PxxOqFmWg9quUW2Yhz7p4 fCtUAUf1v0cdcOHiF+6FpquFE4SUt8wy7gP7VC+PJxLEWm/gbTS0BO8z1xlWSopq7QzeJ7 pgSETKCUJ5fL+eGqmVCnMjfhumjdGLic2D82dPqq6WEomtY4PqEUxNLQNSLUtPYF7rGfiC IKqtEOgL3Xq4vzzS56O/Z/LsGUBKFuhok/KeK+obT9e+fjEfCwdM2X/KSkYh279GHp3/ue 188bG4YnfLvLggLewbmaoHyesYP+W466YE9ihgWeI9nYhD/iwE7bCDf5qyFf9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1687121399; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+poXMllneohhrgOgquiA/XGrGyhuMfgxXypp486YF1g=; b=Jy6zv55Gj+OIXzPoFioY/I8jbBsCWDJqzLoW6lTOymj/dRW1mjV4QeaZGot2Pog87ry1eb EZYeKnOS1cAm2kDw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] posix-timers: Comment SIGEV_THREAD_ID properly Cc: Thomas Gleixner , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230425183313.672220780@linutronix.de> References: <20230425183313.672220780@linutronix.de> MIME-Version: 1.0 Message-ID: <168712139850.404.17042898181563886129.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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?1764175347728024119?= X-GMAIL-MSGID: =?utf-8?q?1769075728206055907?= The following commit has been merged into the timers/core branch of tip: Commit-ID: c575689d66378611bb04137b96e67ebb3ac8482b Gitweb: https://git.kernel.org/tip/c575689d66378611bb04137b96e67ebb3ac8482b Author: Thomas Gleixner AuthorDate: Tue, 25 Apr 2023 20:49:20 +02:00 Committer: Thomas Gleixner CommitterDate: Sun, 18 Jun 2023 22:41:51 +02:00 posix-timers: Comment SIGEV_THREAD_ID properly Replace the word salad. Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20230425183313.672220780@linutronix.de --- kernel/time/posix-timers.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index 20d3b99..c8b0f52 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -53,12 +53,9 @@ static const struct k_clock * const posix_clocks[]; static const struct k_clock *clockid_to_kclock(const clockid_t id); static const struct k_clock clock_realtime, clock_monotonic; -/* - * we assume that the new SIGEV_THREAD_ID shares no bits with the other - * SIGEV values. Here we put out an error if this assumption fails. - */ +/* SIGEV_THREAD_ID cannot share a bit with the other SIGEV values. */ #if SIGEV_THREAD_ID != (SIGEV_THREAD_ID & \ - ~(SIGEV_SIGNAL | SIGEV_NONE | SIGEV_THREAD)) + ~(SIGEV_SIGNAL | SIGEV_NONE | SIGEV_THREAD)) #error "SIGEV_THREAD_ID must not share bit with other SIGEV values!" #endif