From patchwork Wed May 2 08:37:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 907372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40bWsK23Dgz9s1d for ; Wed, 2 May 2018 18:39:01 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FQOqgBI+"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40bWsK0P74zF2SQ for ; Wed, 2 May 2018 18:39:01 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FQOqgBI+"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::241; helo=mail-pf0-x241.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FQOqgBI+"; dkim-atps=neutral Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40bWrX3GdYzF2SP for ; Wed, 2 May 2018 18:38:20 +1000 (AEST) Received: by mail-pf0-x241.google.com with SMTP id f20so2390287pfn.0 for ; Wed, 02 May 2018 01:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=Ti9YqR41fUEZSdFmciAAst56K+rHLO281VRNbENmEVk=; b=FQOqgBI+4teNVWoA5MPiy2boXFUdewj8Gl369zM8i8dvyPhZJ11ACP+BnHz2TfNMMl HfQkjJmj0JHf1aTbCK+XR1MmM4a9pxj0qxyHNmuv9EG7SnYOfEK9IrfiJJh4AOOzTRDx yoipKO4IiuZ+clrQPWD4w+f3nzXKrfKwim7aQNwo4OnM2M2PEJyXrstbVvSTMcWZSiEX Xs8GvhFFjOs1U7IR+8+v/QEbJXfLY+fHXFC9c8SQYSD4oS17s7P4wIk9ZZZvRbyuKd2A ewjYBIi1ycGQRvoe+lkdfT4hJ5p/7K20XhvFjWtdnicVXeoLs1b8udOg0fScsKgnOJEi DJLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=Ti9YqR41fUEZSdFmciAAst56K+rHLO281VRNbENmEVk=; b=CHWukCA6LmQtdztQn7+o07Q0/o/JMtY2m5jVNNGPshCmflp+h5ladqgvnfQAPxPVh0 L36J06wyAwnXznrpBWjOROEMKf7UOMRhfXYD5ErBR9QaobtHOCAbAOqa3aqxZrWpoULz 1yNaBOhsCTsfHK1KRIPrCa7OMP3aJtDwm2OsBqqtKaCKhlgk9OL45dAlC7ueJTNgxfNk j0HLYKZN+3Qhvigsf5+MdjXu9eOEv5pfR4oF/AL9pNCbkngFX+9HZP1R+u8eEvCRwQSL 0r6Eb0D9kudugiTDuGlfDyzNFIn1ydnJgjNE9tPZihwQ2oFFPxlclDIQRdOxmz1EJlVw 8t+Q== X-Gm-Message-State: ALQs6tBTyMMddN3EXP+g2J9Dx4zogR9nfLIXWDv3gzVskNMEH5MgSclf cda0XtgXWeUR6XvFeAQbz/hy1twr X-Google-Smtp-Source: AB8JxZqTn5gt4WLGsEIjDpL6C/mHvMQsqjbNi/FVBLb9efm3llVa4TezW/8OpB2oGUsn/jwTMxQLSg== X-Received: by 2002:a63:ab05:: with SMTP id p5-v6mr14907030pgf.387.1525250298134; Wed, 02 May 2018 01:38:18 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id s65sm27210815pfj.124.2018.05.02.01.38.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 01:38:17 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 02 May 2018 18:08:12 +0930 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Wed, 2 May 2018 18:07:42 +0930 Message-Id: <20180502083753.25090-3-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180502083753.25090-1-joel@jms.id.au> References: <20180502083753.25090-1-joel@jms.id.au> Subject: [Skiboot] [PATCH 02/13] cpu.h: Use this_cpu through accessor X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" This is the only call site where we use __this_cpu directly. Instead use this_cpu() to access it in preperation for using clang to build skiboot. Signed-off-by: Joel Stanley --- include/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cpu.h b/include/cpu.h index 2ca59b9648fa..091b1c940d41 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -305,7 +305,7 @@ void cpu_set_ipi_enable(bool sreset_enabled); static inline void cpu_give_self_os(void) { - __this_cpu->state = cpu_state_os; + this_cpu()->state = cpu_state_os; } extern unsigned long __attrconst cpu_stack_bottom(unsigned int pir);