message
stringlengths
6
474
diff
stringlengths
8
5.22k
Remove pyccl tests for non limber (already done by default)
@@ -567,34 +567,6 @@ def check_cls(cosmo): assert_( all_finite(ccl.angular_cl(cosmo, nc1, lens1, ell_arr)) ) assert_( all_finite(ccl.angular_cl(cosmo, nc1, lens2, ell_arr)) ) -def check_cls_nonlimber(cosmo): - """ - Check that cls functions can be run with non_limber functionalities. - """ - # Number density input - z ...
board/vell/thermal.c: Format with clang-format BRANCH=none TEST=none
@@ -96,10 +96,8 @@ static int fan_table_to_rpm(int fan, int *temp) } else if (temp[TEMP_SENSOR_1_SOC] > prev_tmp[TEMP_SENSOR_1_SOC] || temp[TEMP_SENSOR_2_CHARGER] > prev_tmp[TEMP_SENSOR_2_CHARGER] || - temp[TEMP_SENSOR_3_WWAN] > - prev_tmp[TEMP_SENSOR_3_WWAN] || - temp[TEMP_SENSOR_4_DDR] > - prev_tmp[TEMP_SENSOR_4_DDR]...
brya: add board configurations for TBT Enable usb4 mode, usb TBT_COMPAT mode and usb-c retimer FW update configs. This allows reading correct TBT state via 'ectool usbpdmuxinfo' command. BRANCH=main TEST=manual
#define USBC_PORT_C0_BB_RETIMER_I2C_ADDR 0x56 #define USBC_PORT_C2_BB_RETIMER_I2C_ADDR 0x57 +/* Enabling Thunderbolt-compatible mode */ +#define CONFIG_USB_PD_TBT_COMPAT_MODE + +/* Enabling USB4 mode */ +#define CONFIG_USB_PD_USB4 + +/* Retimer */ +#define CONFIG_USBC_RETIMER_FW_UPDATE + /* Thermal features */ #define ...
Update test/README Changed a bad reference: test/Makefile -> test/build.info Add ../apps/include as include path to include opt.h used by test/testutil.h.
@@ -6,7 +6,8 @@ test/recipes/, named {nn}-test_{name}.t, where {nn} is a two digit number and {name} is a unique name of your choice. Please note that if a test involves a new testing executable, you will need to -do some additions in test/Makefile. More on this later. +do some additions in test/build.info. Please refe...
hssi: override `assign` fn to cfg i2c * hssi: override `assign` fn to cfg i2c Implment e100::assign method so that it instantiates an i2c instance in 2-byte byte-address mode as the i2c controller used for AK uses 2 bytes for the byte address field. * Update copyright year
+// Copyright(c) 2017-2018, Intel Corporation +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// * Redistributions of source code must retain the above copyright notice, +// this list of conditions and the fo...
travis: Build mboot for PYBV10 with LFS2 enabled in stm32 job.
@@ -121,6 +121,7 @@ jobs: # - make ${MAKEOPTS} -C ports/stm32 BOARD=B_L072Z_LRWAN1 - make ${MAKEOPTS} -C ports/stm32 BOARD=STM32L476DISC - make ${MAKEOPTS} -C ports/stm32 BOARD=NUCLEO_WB55 + - make ${MAKEOPTS} -C ports/stm32/mboot BOARD=PYBV10 CFLAGS_EXTRA='-DMBOOT_FSLOAD=1 -DMBOOT_VFS_LFS2=1' - make ${MAKEOPTS} -C por...
BugID:18204058:sort aaboard_demoand aamcu_demo standard demo; dir kernel
@@ -17,6 +17,10 @@ typedef struct { extern int aos_components_init(kinit_t *kinit); +#ifndef AOS_BINS +extern int application_start(int argc, char **argv); +#endif + #ifdef AOS_BINS #include <k_api.h>
gpgme: reduce key size in unit test
@@ -53,9 +53,9 @@ static void test_install_key (void) const char * keyParams = "<GnupgKeyParms format=\"internal\">\n" "Key-Type: RSA\n" - "Key-Length: 1024\n" + "Key-Length: 512\n" "Subkey-Type: RSA\n" - "Subkey-Length: 1024\n" + "Subkey-Length: 512\n" "Name-Real: Elektra Test Key\n" "Name-Comment: DO NOT USE THIS KEY...
iirdes/autotest: testing band-stop transformation on elliptic design
@@ -343,3 +343,44 @@ void autotest_iirdes_ellip_bandpass() { iirfilt_crcf_destroy(q); } +// check elliptical filter design with band-stop transformation +void autotest_iirdes_ellip_bandstop() { + unsigned int n = 9; // filter order + float fc = 0.3; // filter cut-off + float f0 = 0.35; // filter center frequency + floa...
proxy: compile fix for non-uring mode.
@@ -3002,7 +3002,9 @@ static int mcplib_backend_connect_timeout(lua_State *L) { STAT_L(ctx); ctx->timeouts.connect.tv_sec = seconds; +#ifdef HAVE_LIBURING ctx->timeouts.connect_ur.tv_sec = seconds; +#endif STAT_UL(ctx); return 0; @@ -3014,7 +3016,9 @@ static int mcplib_backend_retry_timeout(lua_State *L) { STAT_L(ctx);...
rstat: print number of preemptions
@@ -17,14 +17,14 @@ func prettyPrint(m, lastm map[string]uint64, interval int) { fmt.Printf("net: RX %.1f pkts, %.1f bytes | TX %.1f pkts, %.1f bytes | %.1f drops\n", dm["rx_packets"], dm["rx_bytes"], dm["tx_packets"], dm["tx_bytes"], dm["drops"]) - fmt.Printf("sched: %.1f rescheds (%.1f%% sched time, %.1f%% local), %....
pass the right hash
@@ -250,7 +250,7 @@ jobs: .circleci/create-hash.sh - restore_cache: keys: - - esp-tools-installed-v1-{{ checksum "../riscv-tools.hash" }} + - esp-tools-installed-v1-{{ checksum "../esp-tools.hash" }} - restore_cache: keys: - verilator-installed-v3-{{ checksum "sims/verisim/verilator.mk" }}
Add doxygen definations for SceSblAIMgr
* \defgroup SceSblACMgr Sbl AC Manager * Check if a process is a Game or Shell process * + * \defgroup SceSblAIMgr Sbl AI Manager + * Get information on the hardware model + * * \defgroup SceSblAuthMgr Sbl Auth Manager * Low level functions for SELF decryption and crypto engine *
Updates promise readme for tryFail/tryResolve
@@ -79,12 +79,9 @@ target_link_libraries(PromiseExamples PRIVATE Celix::Promises) 4. The PromiseFactory also has a deferredTask method. This is a convenient method create a Deferred, execute a task async to resolve the Deferred and return a Promise of the created Deferred in one call. 5. The celix::IExecutor abstractio...
Remove redundant standby check
@@ -664,9 +664,6 @@ void ocf_mngt_cache_flush(ocf_cache_t cache, OCF_CHECK_NULL(cache); - if (ocf_cache_is_standby(cache)) - OCF_CMPL_RET(cache, priv, -OCF_ERR_CACHE_STANDBY); - if (ocf_cache_is_standby(cache)) { ocf_cache_log(cache, log_err, "Cannot flush cache - cache is standby\n"); OCF_CMPL_RET(cache, priv, -OCF_ER...
[build] Add "-s" to ldflags
@@ -12,16 +12,16 @@ set(PROTO_DIR ${CMAKE_CURRENT_LIST_DIR}/aergo-protobuf/proto) add_custom_target(build ALL DEPENDS vendor libtool aergocli aergosvr aergoluac brick) -add_custom_target(aergocli GOBIN=${BIN_DIR} go install -ldflags \"-X github.com/aergoio/aergo/cmd/aergocli/cmd.githash=`git rev-parse HEAD`\" ./cmd/aer...
use CGLM_ALIGN_MAT on mat4 typedef
@@ -38,12 +38,7 @@ typedef int ivec3[3]; typedef CGLM_ALIGN_IF(16) float vec4[4]; typedef vec4 versor; typedef vec3 mat3[3]; - -#ifdef __AVX__ -typedef CGLM_ALIGN_IF(32) vec4 mat4[4]; -#else -typedef CGLM_ALIGN_IF(16) vec4 mat4[4]; -#endif +typedef CGLM_ALIGN_MAT vec4 mat4[4]; #define GLM_E 2.71828182845904523536028747...
proxy: mcp.request(cmd, [val | resp]) mcp.request can now take a response object and internally copy the value. bit faster than doing it through C. iterating from here should allow taking a reference to the resp object and directly pointing to its value, but we need to make resp objects immutable first.
@@ -525,7 +525,19 @@ int mcplib_request(lua_State *L) { size_t vlen = 0; mcp_parser_t pr = {0}; const char *cmd = luaL_checklstring(L, 1, &len); - const char *val = luaL_optlstring(L, 2, NULL, &vlen); + const char *val = NULL; + int type = lua_type(L, 2); + if (type == LUA_TSTRING) { + val = luaL_optlstring(L, 2, NULL,...
conn: use %bail instead of %fail
** ** [32 %fyrd [%base %hi %tape [%ship ~zod]]] ** -** responses to %fyrd are either %fail if something went wrong +** responses to %fyrd are either %bail if something went wrong ** in the driver, or %avow to indicate success or failure from ** %khan. the body of avow is (each page goof). ** @@ -572,7 +572,7 @@ _conn_m...
Fix discovery of shell scripts Previously shfmt's discovery feature was used. Now the discovery leverages the fact that each shell script has an appropriate shebang in the first line. Fixes
@@ -25,33 +25,16 @@ if [ -z "${SHFMT}" ] || [ "$SHFMT_MAJOR_VERSION" = "(devel)" ] || [ "$SHFMT_MAJO fi fi +shell_files=$( + git ls-tree --full-tree -r -z --name-only HEAD \ + | xargs -0 awk 'BEGIN {pattern = "^#!(/bin/sh|/usr/bin/env [a-z]*sh)$"} FNR==1 && $0 ~ pattern {print FILENAME}' +) + ignore_file=$(dirname "$0"...
fixed UDP check in transport integ test
@@ -66,7 +66,7 @@ echo "Testing Cribl/TLS Transport" if [ "$(wait_for_port 10090)" ]; then rm -rf /tmp/out/appscope:in_appscope_tls SCOPE_CRIBL_TLS_CA_CERT_PATH=/tmp/appscope.crt \ - scope run -c tls://localhost:10090 -- curl -Lso /dev/null https://cribl.io + scope run -c tls://127.0.0.1:10090 -- curl -Lso /dev/null ht...
Add LPSTK compile test to our CI suite
@@ -58,6 +58,7 @@ platform-specific/cc26x0-cc13x0/cc26x0-web-demo/cc26x0-cc13x0:BOARD=sensortag/cc platform-specific/cc26x0-cc13x0/cc26x0-web-demo/cc26x0-cc13x0:BOARD=sensortag/cc1350 \ platform-specific/cc26x0-cc13x0/base-demo/cc26x0-cc13x0:BOARD=sensortag/cc2650 \ platform-specific/cc26x0-cc13x0/base-demo/simplelink:...
Go http server code for tls does not need a Go 8 specific offset for dereferencing the file descriptor.
@@ -1022,7 +1022,6 @@ c_http_server_read(char *stackaddr) cr_conn_rwc = *(uint64_t *)(cr_conn_rwc_if + g_go.iface_data); netFD = *(uint64_t *)(cr_conn_rwc + g_go.iface_data); if (netFD) { - if (g_go.netfd_to_sysfd == UNDEF_OFFSET) { pfd = *(uint64_t *)(netFD + g_go.netfd_to_pd); if (pfd) { //funcprint("Scope: %s:%d cr ...
bihash template: avoid memory leak upon rehash Call the BV (value_free) when we have performed the rehash and thus no longer need the memory that old value for the bucket refers to.
@@ -627,6 +627,9 @@ expand_ok: tmp_b.lock = 0; CLIB_MEMORY_BARRIER (); b->as_u64 = tmp_b.as_u64; + /* free the old bucket */ + v = BV (clib_bihash_get_value) (h, h->saved_bucket.offset); + BV (value_free) (h, v, h->saved_bucket.log2_pages); BV (clib_bihash_alloc_unlock) (h); return (0); }
ssl_server2: Add support for key_opaque_algs2 command line paramtere
@@ -668,8 +668,10 @@ struct options int use_srtp; /* Support SRTP */ int force_srtp_profile; /* SRTP protection profile to use or all */ int support_mki; /* The dtls mki mki support */ - const char *key_opaque_alg1; /* Allowed opaque key alg 1 */ - const char *key_opaque_alg2; /* Allowed Opaque key alg 2 */ + const cha...
pvpanic: Fix INF verification errors The INF verification test in Win10 HLK 1703 started treating some of the verification warnings as errors: Section [destinationdirs] is defined multiple times Section [sourcedisksfiles] is defined multiple times. This commit fixes it by merging the sections into one.
@@ -24,12 +24,14 @@ PnpLockdown = 1 [DestinationDirs] DefaultDestDir = 12 +PVPanic_Device_CoInstaller_CopyFiles = 11 [SourceDisksNames] 1 = %DiskName%,,,"" [SourceDisksFiles] pvpanic.sys = 1,, +WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames ; --------------- ; Install ...
[hsa] debug output to kernel argument adding
@@ -931,6 +931,8 @@ setup_kernel_args (pocl_hsa_device_data_t *d, cl_kernel kernel = cmd->command.run.kernel; pocl_kernel_metadata_t *meta = kernel->meta; + POCL_MSG_PRINT_INFO ("setup_kernel_args for %s\n", + cmd->command.run.kernel->name); #define CHECK_AND_ALIGN_SPACE(DSIZE) \ do { \ if (write_pos + (DSIZE) > last_p...
[voting-reward] apply the official reward amount (5M / Year)
@@ -29,7 +29,11 @@ var ( zeroValue = &big.Int{} vprKeyPrefix = []byte("VotingPowerBucket/") - defaultReward, _ = new(big.Int).SetString("1000000000000000000", 10) // 1 AERGO + fiveAergo, _ = new(big.Int).SetString("5000000000000000000", 10) + ten = new(big.Int).SetUint64(10) + million = new(big.Int).Exp(ten, new(big.In...
qpack: do not derefence a pointer before range check This fixes a ClusterFuzz issue 35675.
@@ -626,8 +626,8 @@ static h2o_iovec_t decode_header_value_literal(h2o_mem_pool_t *pool, unsigned *s const uint8_t *src_end, const char **err_desc) { h2o_iovec_t buf; - int is_huff = (**src & 0x80) != 0; int64_t len; + const uint8_t *src_head = *src; if (decode_int(&len, src, src_end, 7) != 0 || len > MAX_HEADER_VALUE_...
Emitter: Fix parameters being passed in reverse order.
@@ -3404,7 +3404,7 @@ static int eval_call_arg(lily_emit_state *emit, lily_ast *arg, /* Don't assume it succeeded, because it worsens the error message in the case that it didn't. */ if (solved_result == solved_want || - lily_ts_type_greater_eq(emit->ts, solved_result, solved_want)) + lily_ts_type_greater_eq(emit->ts, ...
Migrate test_hall_number_from_symmetry.py to pytest and ignore::DeprecationWarning
+"""Test of get_hall_number_from_symmetry.""" +from __future__ import annotations + import os -import unittest +from pathlib import Path +from typing import Callable -from test_spglib import dirnames -from vasp import read_vasp +import pytest from spglib import get_hall_number_from_symmetry, get_symmetry_dataset data_d...
bootutil: Prevent the redefinition of ASSERT Some OSes may also define the ASSERT macro.
@@ -117,8 +117,10 @@ extern "C" { #include "mcuboot_config/mcuboot_assert.h" #else #include <assert.h> +#ifndef ASSERT #define ASSERT assert #endif +#endif struct boot_swap_state { uint8_t magic; /* One of the BOOT_MAGIC_[...] values. */
super-rsu: fix `is_secure` property The `is_secure` property (of a `pac` object) was using the wrong glob pattern (looking for `ifpga_sec_mgr` below the fme sysfs path). This change fixes it so it looks under the `spi_bus` object.
@@ -220,7 +220,6 @@ class process_task(object): return self._process - @contextmanager def ignore_signals(*signals): handlers = {} @@ -868,7 +867,7 @@ class pac(object): @property def is_secure(self): return 1 == len(glob.glob( - os.path.join(self.fpga.fme.sysfs_path, + os.path.join(self.fpga.fme.spi_bus.sysfs_path, 'i...
Fix cases where the parser reads a byte too far
@@ -146,7 +146,7 @@ parse_update_subtlv(struct interface *ifp, int metric, int ae, continue; } - if(i + 1 > alen) + if(i + 2 > alen) goto fail; len = a[i + 1]; if(i + len + 2 > alen) @@ -203,7 +203,7 @@ parse_hello_subtlv(const unsigned char *a, int alen, continue; } - if(i + 1 > alen) { + if(i + 2 > alen) { fprintf(st...
[core] reset SIGUSR1 to SIG_DFL before execve() reset SIGUSR1 to SIG_DFL in fdevent_fork_execve() before execve() (in case SIGUSR1 had been set to SIG_IGN for server.max-worker > 0)
@@ -447,6 +447,7 @@ pid_t fdevent_fork_execve(const char *name, char *argv[], char *envp[], int fdin signal(SIGTSTP, SIG_DFL); #endif signal(SIGPIPE, SIG_DFL); + signal(SIGUSR1, SIG_DFL); execve(name, argv, envp ? envp : environ);
add css mask workaround for firefox ESR
content: ""; height: 1em; width: 2em; + transition: all 0.2s; +} +@supports (mask: url('/folded.svg') no-repeat) { + .ExplorerView ul > li.category .opener { mask: url('/folded.svg') no-repeat; background-color: #000000; - transition: all 0.2s; + } + .ExplorerView ul li.selected > span.item > .opener { + background-col...
adding new creds
@@ -135,7 +135,7 @@ stages: displayName: New_S3_Upload condition: succeeded() inputs: - awsCredentials: 'azure-pipeline-aws' + awsCredentials: 'azure-pipeline-aws-core' regionName: 'us-west-2' bucketName: 'io.cribl.cdn' sourceFolder: '$(Build.BinariesDirectory)/lib/' @@ -144,5 +144,5 @@ stages: targetFolder: 'dl/scope/...
Fix i2c_handle conditional logic
@@ -62,7 +62,7 @@ i2c_arch_write_read(I2C_Handle i2c_handle, uint_least8_t slave_addr, .slaveAddress = slave_addr, }; - if(i2c_handle) { + if(!i2c_handle) { return false; }
control-interface: [bindtodevice] As suggested by Andreas Schulze on nsd-users
@@ -224,24 +224,19 @@ resolve_ifa_name(struct ifaddrs *ifas, const char *search_ifa, char ***ip_addres (*ip_addresses_size)++; } } -#endif /* HAVE_GETIFADDRS */ static void -resolve_interface_names(struct nsd_options* options) +resolve_interface_names_for_ref(struct ip_address_option** ip_addresses_ref, + struct ifaddr...
stm32/boards/STM32F769DISC: Configure for use with mboot by default. This is a good board to demonstrate the use of Mboot because it only has a USB HS port exposed so the native ST DFU mode cannot be used. With Mboot this port can be used.
+# By default this board is configured to use mboot which must be deployed first +USE_MBOOT ?= 1 + MCU_SERIES = f7 CMSIS_MCU = STM32F769xx MICROPY_FLOAT_IMPL = double AF_FILE = boards/stm32f767_af.csv + +ifeq ($(USE_MBOOT),1) +# When using Mboot all the text goes together after the filesystem +LD_FILES = boards/stm32f7...
host: Print CCCD in local database
#include "nimble/ble.h" #include "ble_hs_priv.h" +static const ble_uuid_t *uuid_ccc = + BLE_UUID16_DECLARE(BLE_GATT_DSC_CLT_CFG_UUID16); static const char * const ble_gatt_chr_f_names[] = { "BROADCAST", @@ -115,6 +117,24 @@ ble_gatt_show_local_chr(const struct ble_gatt_svc_def *svc, ble_gatts_flags_to_str(chr->flags, f...
Eliminate `isAtEOF` by changing `yylex` control flow `yylex` calls `yywrap` at the beginning of the next call, after it has set `lexerState->lastToken` to `T_EOB`.
@@ -354,7 +354,6 @@ struct LexerState { uint32_t colNo; int lastToken; int nextToken; - bool isAtEOF; struct IfStack *ifStack; @@ -379,7 +378,6 @@ static void initState(struct LexerState *state) state->atLineStart = true; /* yylex() will init colNo due to this */ state->lastToken = T_EOF; state->nextToken = 0; - state-...
apps/btshell: Fix checking for direct indication evtype
@@ -911,8 +911,7 @@ btshell_decode_event_type(struct ble_gap_ext_disc_desc *desc) if (desc->props & BLE_HCI_ADV_LEGACY_MASK) { console_printf("Legacy PDU type %d", desc->legacy_event_type); - if (desc->legacy_event_type == BLE_HCI_ADV_TYPE_ADV_DIRECT_IND_HD || - desc->legacy_event_type == BLE_HCI_ADV_TYPE_ADV_DIRECT_IN...
Update ProcessAffinityMask docs
@@ -129,7 +129,7 @@ typedef enum _PROCESSINFOCLASS ProcessPriorityClass, // qs: PROCESS_PRIORITY_CLASS ProcessWx86Information, // qs: ULONG (requires SeTcbPrivilege) (VdmAllowed) ProcessHandleCount, // q: ULONG, PROCESS_HANDLE_INFORMATION // 20 - ProcessAffinityMask, // qs: KAFFINITY, qs: GROUP_AFFINITY + ProcessAffini...
[ci] also use doc environment for serializers generation on ubuntu18.04
@@ -244,7 +244,7 @@ install_siconos:ubuntu18.04-fclib: # on ubuntu 18.04. install_siconos:ubuntu18.04-serialization: variables: - IMAGE_NAME: $CI_REGISTRY_IMAGE/ubuntu18.04 + IMAGE_NAME: $CI_REGISTRY_IMAGE/ubuntu18.04-doc cdash_submit: 0 # No submit to cdash : too unstable. user_file: $CI_PROJECT_DIR/$siconos_confs/sic...
updated PM default profile
"precedence": 0, "score": 0 }, + "__he_delay": { + "value": 10, + "precedence": 1, + "score": 0, + "description": "special property defining HE delay in milliseconds" + }, "remote_ip": { "value": null, "precedence": 0,
esp32/partitions-2MiB.csv: Update table so firmware fits. The current MicroPython app size is larger than the size allocated in the partitions table.
# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x6000, phy_init, data, phy, 0xf000, 0x1000, -factory, app, factory, 0x10000, 0x110000, -vfs, data, fat, 0x120000, 0xA0000, +factory, app, factory, 0x10000, 0x160000, +vfs, data, fat, 0x170000, 0x50000,
Remove MBEDTLS_SSL_NEW_SESSION_TICKET in TLS1.3 MVP
@@ -593,55 +593,12 @@ int mbedtls_ssl_tls13_key_schedule_stage_application( mbedtls_ssl_context *ssl ) return( 0 ); } -#if defined(MBEDTLS_SSL_NEW_SESSION_TICKET) -int mbedtls_ssl_tls1_3_generate_resumption_master_secret( - mbedtls_ssl_context *ssl ) -{ - int ret = 0; - - mbedtls_md_type_t md_type; - mbedtls_md_info_t ...
py/vm: Remove obsolete comments about matching of exception opcodes. These are incorrect since
* * The MIT License (MIT) * - * Copyright (c) 2013, 2014 Damien P. George + * Copyright (c) 2013-2019 Damien P. George * Copyright (c) 2014-2015 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -675,7 +675,6 @@ unwind_jump:; DISPATCH_WITH_PEND_EXC_CHECK(); } - // match...
Remove some warnings when using Eth app as lib
@@ -876,22 +876,22 @@ __attribute__((section(".boot"))) int main(int arg0) { PRINTF("Hello from Eth-clone\n"); check_api_level(CX_COMPAT_APILEVEL); // delegate to Ethereum app/lib - libcall_params[0] = "Ethereum"; + libcall_params[0] = (unsigned int) "Ethereum"; libcall_params[1] = 0x100; libcall_params[2] = RUN_APPLIC...
docs: Correct minor spelling issues Correct spelling issues in the 'extra-build-config.md' file.
# Optional build configuration -There are a set of ways in which a user can influence different paramenters of +There are a set of ways in which a user can influence different parameters of the build. We list here the ones that are closely related to this BSP or specific to it. For the rest please check: <http://www.yo...
extmod/modrobotics: update drivebase wait On target must be used so that wait completes even if control continues holding.
@@ -72,7 +72,7 @@ STATIC mp_obj_t robotics_DriveBase_make_new(const mp_obj_type_t *type, size_t n_ } STATIC void wait_for_completion_drivebase(pbio_drivebase_t *db) { - while (!(db->control_distance.type == PBIO_CONTROL_NONE || db->control_heading.type == PBIO_CONTROL_NONE)) { + while (!db->control_distance.on_target |...
Include Masternodes Testnet Launchdate
@@ -2414,7 +2414,7 @@ bool CBlock::CheckBlock(bool fCheckPOW, bool fCheckMerkleRoot, bool fCheckSig) c bool MasternodePayments = false; - if(nTime > START_MASTERNODE_PAYMENTS) MasternodePayments = true; + if(nTime > fTestNet ? START_MASTERNODE_PAYMENTS_TESTNET : START_MASTERNODE_PAYMENTS) MasternodePayments = true; if(...
voxel: modify C1 port BB retimer i2c address change i2c4 address to 0x41 of C1 port bb retimer address. BRANCH=none TEST=make buildall PASS
/* Enabling USB4 mode */ #define CONFIG_USB_PD_USB4 +#define USBC_PORT_C0_BB_RETIMER_I2C_ADDR 0x40 +#undef USBC_PORT_C1_BB_RETIMER_I2C_ADDR +#define USBC_PORT_C1_BB_RETIMER_I2C_ADDR 0x41 /* USB Type A Features */ #define USB_PORT_COUNT 1 #define I2C_ADDR_EEPROM_FLAGS 0x50 #define CONFIG_I2C_MASTER -#define USBC_PORT_C0...
prepare ppp-chap
@@ -940,6 +940,7 @@ gre_t *gre; if(restlen < (uint32_t)GRE_SIZE) return; gre = (gre_t*)greptr; if((ntohs(gre->flags) & GRE_MASK_VERSION) != 0x1) return; /* only GRE v1 supported */ +if(ntohs(gre->type) != GREPROTO_PPP) return; grecount++; return; }
fix /api/handle.go some word
@@ -30,8 +30,8 @@ func do_collect(c *Context) { // For static bpf files go execute() - fmt.Println("starte extracting data...") - seelog.Info("starte extracting data...") + fmt.Println("start extracting data...") + seelog.Info("start extracting data...") c.Redirect(http.StatusMovedPermanently,"http://127.0.0.1:3000/")
u3: use size_t in u3m_init()
@@ -1746,23 +1746,23 @@ u3m_init(void) /* Map at fixed address. */ { - c3_w len_w = u3a_bytes; + size_t len_i = u3a_bytes; void* map_v; map_v = mmap((void *)u3_Loom, - len_w, + len_i, (PROT_READ | PROT_WRITE), (MAP_ANON | MAP_FIXED | MAP_PRIVATE), -1, 0); if ( -1 == (c3_ps)map_v ) { void* dyn_v = mmap((void *)0, - len_...
Fix compilation on systems with empty _POSIX_TIMERS Systems such as Tru64 ship with broken headers that have _POSIX_TIMERS defined but empty. CLA: trivial
@@ -76,7 +76,9 @@ static uint64_t get_timer_bits(void); * macro that might be undefined. */ # undef OSSL_POSIX_TIMER_OKAY -# if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 +/* On some systems, _POSIX_TIMERS is defined but empty. + * Subtracting by 0 when comparing avoids an error in this case. */ +# if defined(_POSIX_T...
Fix tab completion for CREATE TYPE in psql Oversight in Author: Alexander Lakhin Discussion:
@@ -2705,7 +2705,7 @@ psql_completion(const char *text, int start, int end) if (TailMatches("(|*,")) COMPLETE_WITH("INPUT", "OUTPUT", "RECEIVE", "SEND", "TYPMOD_IN", "TYPMOD_OUT", "ANALYZE", - "INTERNALLENGTH", "PASSBYVALUE", "ALIGNMENT", + "INTERNALLENGTH", "PASSEDBYVALUE", "ALIGNMENT", "STORAGE", "LIKE", "CATEGORY", ...
Repair find_inheritance_children with no active snapshot When working on a scan with only a catalog snapshot, we may not have an ActiveSnapshot set. If we were to come across a detached partition, that would cause a crash. Fix by only ignoring detached partitions when there's an active snapshot.
@@ -106,10 +106,13 @@ find_inheritance_children(Oid parentrelId, bool include_detached, * * The reason for this check is that we want to avoid seeing the * partition as alive in RI queries during REPEATABLE READ or - * SERIALIZABLE transactions. + * SERIALIZABLE transactions. (If there's no active snapshot set, + * tha...
ExtendedTools: Fix crash on devices with special graphics cards
@@ -33,7 +33,7 @@ BOOLEAN EtGpuEnabled; static PPH_LIST EtpGpuAdapterList; static PH_CALLBACK_REGISTRATION ProcessesUpdatedCallbackRegistration; -ULONG EtGpuTotalNodeCount; +ULONG EtGpuTotalNodeCount = 0; ULONG EtGpuTotalSegmentCount; ULONG64 EtGpuDedicatedLimit; ULONG64 EtGpuSharedLimit; @@ -274,6 +274,9 @@ BOOLEAN Et...
Scripts: keys hash (remove autotools deprecated stuff)
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by # virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. -. ./include.ctest.sh set -e if [ -z "$ECCODES_DEFINITION_PATH" ]; then @@ -22,8 +21,8 @@ fi set +x touch tmp$$ -echo "Go th...
net/tcp: syscall send() should not return ETIMEDOUT
@@ -1232,6 +1232,11 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf, tcp_send_gettimeout(start, timeout)); if (ret < 0) { + if (ret == -ETIMEDOUT) + { + ret = -EAGAIN; + } + goto errout_with_lock; } } @@ -1285,14 +1290,10 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf, n...
Added a loop to check the z values
@@ -261,6 +261,7 @@ printf("rhat %f %f (len %f)\n", rhat[0][0], rhat[1][0], rhat_len); //------------------------- FLOAT ydist2; FLOAT bestBestErr = 9999.0; + FLOAT bestYdist = 0; for (ydist2=ydist-0.1; ydist2<ydist+0.1; ydist2+=0.0001) { FLOAT x2[3][1] = { {M[0][0]*ydist2}, {0.0}, {M[1][0]*ydist2} }; @@ -309,9 +310,10...
Kahlee: Optimize g-sensor setting Since we only have one g-sensor, leave it in suspend mode. And we only use it when we need it BRANCH=none TEST=none Commit-Ready: Daniel Kurtz Tested-by: Lin Cloud
@@ -570,14 +570,12 @@ struct motion_sensor_t motion_sensors[] = { .odr = 0, .ec_rate = 0, }, - /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { - .odr = 10000 | ROUND_UP_FLAG, + .odr = 0, .ec_rate = 0, }, - /* Sensor on for lid angle detection */ [SENSOR_CONFIG_EC_S3] = { - .odr = 10000 | ROUND_UP_FLAG,...
fix nodir error
@@ -2396,7 +2396,7 @@ namespace "package" do args << relpath end - Jake.run($jarbin, args, respath) + Jake.run($jarbin, args, respath) if File.dir?(respath) print_timestamp('package:android FINISH')
Fix ngtcp2_ksl_insert bug
@@ -339,6 +339,9 @@ int ngtcp2_ksl_insert(ngtcp2_ksl *ksl, ngtcp2_ksl_it *it, } if (ksl->compar(ksl_node_key(&node_key, node), key)) { node = ksl_nth_node(ksl, blk, i + 1); + if (ksl->compar(ksl_node_key(&node_key, node), key)) { + ksl_node_set_key(ksl, node, key->ptr); + } } }
add MIN and MAX macros because we could use min/max for intergers too. it may not guarantee that MIN and MAX macros will always be defined by compiler
#include "common.h" #include <stdbool.h> +#define GLM_MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) +#define GLM_MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) + /*! * @brief get sign of 32 bit integer as +1, -1, 0 *
Fix issue with async operations to React state
@@ -114,44 +114,33 @@ class CustomPalettePicker extends Component { return parseInt("0x" + str); } - saveToSettings() { - // Apply changes to settings + setCurrentColor(r, g, b) { const { editProject } = this.props; - editProject({ - CustomColors_White: this.state.whiteHex, - CustomColors_LightGreen: this.state.lightGr...
process/vfork: inhering parent's signal mask and handler
@@ -372,8 +372,8 @@ int proc_vfork(void) process->mapp = parent->mapp; process->sigpend = 0; - process->sigmask = 0; - process->sighandler = NULL; + process->sigmask = parent->sigmask; + process->sighandler = parent->sighandler; process->zombies = NULL; // vm_mapCreate(&process->map, (void *)VADDR_MIN, process_common.k...
testutil/driver.c: Fix function prototype warning [-Wstrict-prototypes] (introduced by commit which added -Wstrict-prototypes)
@@ -74,7 +74,7 @@ int subtest_level(void) } #ifndef OPENSSL_NO_CRYPTO_MDEBUG -static int should_report_leaks() +static int should_report_leaks(void) { /* * When compiled with enable-crypto-mdebug, OPENSSL_DEBUG_MEMORY=0
Fix bug in ConvertObliviousToAsymmetric: incorrect representation of weights in memory Motivation: In asymmetric trees, the weights of all leaves are in a one-dimensional array, similar to LeafValues.
@@ -296,6 +296,7 @@ void TObliviousTrees::ConvertObliviousToAsymmetric() { TVector<ui32> nonSymmetricNodeIdToLeafId; size_t leafStartOffset = 0; + TVector<TVector<double>> leafWeights(1); for (size_t treeId = 0; treeId < TreeSizes.size(); ++treeId) { size_t treeSize = 0; treeStartOffsets.push_back(treeSplits.size()); @...
NetKVM: Move ParaNdis-SM.h to header files group
<ClInclude Include="Common\ParaNdis_Protocol.h"> <Filter>Header Files\Common</Filter> </ClInclude> + <ClInclude Include="Common\ParaNdis-SM.h"> + <Filter>Header Files\Common</Filter> + </ClInclude> </ItemGroup> <ItemGroup> <ResourceCompile Include="wlh\Parandis6.rc"> <ClCompile Include="Common\ParaNdis_TX.cpp"> <Filter...
Tweaked some SQLite settings to improve performance and reduce compiled file size
#ifndef SQLITE_PRIVATE # define SQLITE_PRIVATE static #endif + +/************** Begin of Sphere custom settings ******************************/ + +// Recommended settings to optimize performance +#define SQLITE_DQS 0 +#define SQLITE_DEFAULT_MEMSTATUS 0 +#define SQLITE_DEFAULT_WAL_SYNCHRONOUS 1 +#define SQLITE_LIKE_DOES...
nocturne: Change RCAM_VSYNC to rising edge. BRANCH=None TEST=`make -j BOARD=nocturne` Commit-Ready: Aseda Aboagye Tested-by: Aseda Aboagye
@@ -33,7 +33,7 @@ GPIO_INT(LID_OPEN, PIN(D, 2), GPIO_INT_BOTH | GPIO_HIB_WAKE_HIGH, lid_ GPIO_INT(ACCELGYRO3_INT_L, PIN(4, 1), GPIO_INT_FALLING, bmi160_interrupt) GPIO_INT(BASE_USB_FAULT_ODL, PIN(2, 3), GPIO_INT_FALLING, base_pwr_fault_interrupt) GPIO_INT(BASE_PWR_FAULT_ODL, PIN(2, 4), GPIO_INT_FALLING, base_pwr_fault_...
try building in %install
@@ -43,7 +43,7 @@ Program Database Toolkit (PDT) is a framework for analyzing source code written %setup -q -n %{pname}-%{version} -%build +%install # OpenHPC compiler/mpi designation %ohpc_setup_compiler @@ -55,15 +55,10 @@ Program Database Toolkit (PDT) is a framework for analyzing source code written -GNU %endif -ex...
graph-push-hook: correctly call +get-roles-writers-variation Fixes urbit/landscape#423 Fixes urbit/landscape#424
(node-to-indexed-post node) =/ =permission-level:store (get-permission permissions is-admin writers) - ~& permission-level ?- permission-level %yes %.y %no %.n |= [=resource:res indices=(set index:store)] ^- ? %- (bond |.(%.n)) - %+ biff (get-roles-writers-variation) + %+ biff (get-roles-writers-variation resource) |= ...
workflows: fix missing character for debug tag
@@ -115,7 +115,7 @@ jobs: images: ${{ inputs.registry }}/${{ inputs.image }} tags: | raw,x86_64-${{ inputs.version }}-debug - raw,{{ inputs.version }}-debug + raw,${{ inputs.version }}-debug raw,latest-debug - name: Build the debug staging image
Cycles in the Makefile.in
@@ -167,7 +167,7 @@ no-drill-config-h: exit -1 ; \ fi -drill/drill: all $(DRILL_LOBJS) $(LIB) $(LIBLOBJS) +drill/drill: lib $(DRILL_LOBJS) $(LIB) $(LIBLOBJS) $(LINK_EXE) $(DRILL_LOBJS) $(LIBLOBJS) $(LIB) $(LIBSSL_LIBS) $(LIBS) -o drill/drill drill/drill.1: $(srcdir)/drill/drill.1.in @@ -188,7 +188,7 @@ uninstall-drill:...
Augeas: Disable container overflow detection
@@ -29,6 +29,10 @@ if (DEPENDENCY_PHASE) set (AUGEAS_PLUGIN_LIBRARIES ${LIBAUGEAS_LIBRARIES} ${LIBXML2_LIBRARIES}) endif () +# ~~~ +# The unit test for the plugin fails on an ASAN enabled macOS build, if we do not disable container overflow detection. +# Reference: https://travis-ci.org/sanssecours/elektra/jobs/4185546...
hood: add non-interactive mode to |nuke Also improves the copy a bit.
:- %ask |= $: [now=@da eny=@uvJ bec=beak] [=term ~] - desk=_| + [desk=_| hard=_|] == +?: hard (produce %kiln-nuke term desk) =/ m1 'nuking agents will permanently delete all their state and subscriptions.' =/ m2 'if other agents depend on the one(s) you nuke, \ - /their behavior could be negatively impacted.' + /their ...
Fix the incorrect pointer usage, fixed The pointer pbuf should be dereferenced but not used directly as a pointer.
@@ -105,7 +105,7 @@ static void display_draw_rect(uint32_t x1, uint32_t y1, /* inside the byte found, find the bit we need to change */ bit_location = location % 8; fbp8[byte_location] &= ~(((uint8_t)(1)) << bit_location); - fbp8[byte_location] |= ((uint8_t)pbuf) << bit_location; + fbp8[byte_location] |= ((uint8_t)(*pb...
Remove plugin blocklist since we have EnableSafeDefaultPlugins
@@ -250,17 +250,6 @@ static BOOLEAN EnumPluginsDirectoryCallback( ) { static PH_STRINGREF PhpPluginExtension = PH_STRINGREF_INIT(L".dll"); - static PH_STRINGREF PhpPluginBlocklist[] = - { - PH_STRINGREF_INIT(L"CommonUtil.dll"), - PH_STRINGREF_INIT(L"ExtraPlugins.dll"), - PH_STRINGREF_INIT(L"FirewallMonitorPlugin.dll"),...
Work with PSA constants: Python port of
@@ -31,7 +31,7 @@ import subprocess import logging # Naming patterns to check against -MACRO_PATTERN = r"^MBEDTLS_[0-9A-Z_]*[0-9A-Z]$" +MACRO_PATTERN = r"^(MBEDTLS|PSA)_[0-9A-Z_]*[0-9A-Z]$" IDENTIFIER_PATTERN = r"^(mbedtls|psa)_[0-9a-z_]*[0-9a-z]$" class Match(object): @@ -159,20 +159,19 @@ class NameCheck(object): ret...
Fix OCF compilation - use new macro name This looks like during change from DIV_ROUND_UP to OCF_DIV_ROUND_UP this one occurrence has been missed.
@@ -81,7 +81,7 @@ static ocf_cache_line_t ocf_metadata_hash_get_entires( return cache_lines; case metadata_segment_hash: - return DIV_ROUND_UP(cache_lines / 4, OCF_HASH_PRIME) * + return OCF_DIV_ROUND_UP(cache_lines / 4, OCF_HASH_PRIME) * OCF_HASH_PRIME - 1; case metadata_segment_sb_config:
replace libretro-common 9
@@ -279,8 +279,8 @@ LD = "$(MSVCBINDIRPREFIX)/lib.exe" export INCLUDE := $(XEDK)/include/xbox export LIB := $(XEDK)/lib/xbox PSS_STYLE :=2 -CFLAGS += -D_XBOX -D_XBOX360 -CXXFLAGS += -D_XBOX -D_XBOX360 +CFLAGS += -D_XBOX -D_XBOX360 -D_USE_MATH_DEFINES +CXXFLAGS += -D_XBOX -D_XBOX360 -D_USE_MATH_DEFINES STATIC_LINKING=1 ...
common/usbc/usb_pd_console.c: Format with clang-format BRANCH=none TEST=none
#ifndef TEST_USB_PD_CONSOLE static #endif -int command_pd(int argc, char **argv) + int + command_pd(int argc, char **argv) { int port; char *e; @@ -161,19 +162,18 @@ int command_pd(int argc, char **argv) if (!strcasecmp(argv[2], "state")) { cflush(); - ccprintf("Port C%d CC%d, %s - Role: %s-%s", - port, pd_get_polarity...
Fix missing semicolon and falling flag.
@@ -19472,7 +19472,7 @@ int check_blocking_eligible(entity *ent, entity *attacker, s_collision_attack *a // Grappling? if(ent->link) { - return 0 + return 0; } // Airborne? @@ -19487,6 +19487,12 @@ int check_blocking_eligible(entity *ent, entity *attacker, s_collision_attack *a return 0; } + // Falling? + if(ent->falli...
update picoquic_strsep, change delimiter to '/'
@@ -281,8 +281,10 @@ typedef struct st_client_loop_cb_t { picoquic_connection_id_t client_cid_before_migration; } client_loop_cb_t; + +char * picoquic_strsep(char **stringp, const char *delim) +{ #ifdef _WINDOWS -char *strsep(char **stringp, const char *delim) { if (*stringp == NULL) { return NULL; } @@ -293,11 +295,13...
s5j/gpio: remove constants redundantly defined GPIO_PWM_TOUTx are redundantly defined in s5jt200_pinconfig.h.
#define GPIO_I2S0_LRCK (GPIO_ALT1 | GPIO_FLOAT | GPIO_PORTG3 | GPIO_PIN1) #define GPIO_I2S0_SDI (GPIO_ALT1 | GPIO_FLOAT | GPIO_PORTG3 | GPIO_PIN2) -/* PWM */ -#define GPIO_PWM_TOUT0 (GPIO_ALT1 | GPIO_FLOAT | GPIO_PORTP2 | GPIO_PIN0) -#define GPIO_PWM_TOUT1 (GPIO_ALT1 | GPIO_FLOAT | GPIO_PORTP2 | GPIO_PIN1) -#define GPI...
Fix ota end to end
/* Common include. */ #include "iot_common.h" +#include "iot_error.h" /* MQTT internal include. */ #include "iot_mqtt.h" @@ -105,26 +106,14 @@ static const char *pcStateStr[eOTA_NumAgentStates] = void vOTAUpdateTestTask( void * pvParameters ) { - bool status = false; OTA_State_t eState; + IotMqttError_t mqttStatus; /* ...
ruby plugin: load dependent libs with rb_protected
@@ -295,6 +295,13 @@ static void remove_plugin_instance (VALUE instance) } +static VALUE require_kdb(VALUE v ELEKTRA_UNUSED) +{ + rb_require("kdb"); + return Qnil; +} + + static int init_ruby_environment (ckdb::Key * warningsKey) { /* @@ -318,7 +325,7 @@ static int init_ruby_environment (ckdb::Key * warningsKey) /* NOT...
Only resize stuffers to the amount of bytes needed
@@ -231,7 +231,7 @@ int s2n_stuffer_skip_write(struct s2n_stuffer *stuffer, const uint32_t n) if (s2n_stuffer_space_remaining(stuffer) < n) { if (stuffer->growable) { /* Always grow a stuffer by at least 1k */ - uint32_t growth = MAX(n, 1024); + uint32_t growth = MAX(n - s2n_stuffer_space_remaining(stuffer), 1024); GUA...
Mark a few logical decoding related variables with PGDLLIMPORT. Commit added two variables CheckXidAlive and bsysscan to detect concurrent aborts and used these in inline functions that are part of the API that can be used by extensions. So it is better to mark them with PGDLLIMPORT. Reported-by: Thomas Munro Discussio...
@@ -82,8 +82,8 @@ typedef enum extern int synchronous_commit; /* used during logical streaming of a transaction */ -extern TransactionId CheckXidAlive; -extern bool bsysscan; +extern PGDLLIMPORT TransactionId CheckXidAlive; +extern PGDLLIMPORT bool bsysscan; /* * Miscellaneous flag bits to record events which occur on ...
change config to match latest build instructions
@@ -64,11 +64,13 @@ if [ "$1" != "noconfigure" ] && [ "$1" != "install" ] ; then rm -rf $BUILD_AOMP/build/rocgdb MYCONFIGOPTS="--prefix=$AOMP_INSTALL_DIR --srcdir=$AOMP_REPOS/$AOMP_GDB_REPO_NAME --program-prefix=roc \ --with-bugurl="$BUG_URL" --with-pkgversion="${AOMP_COMPILER_NAME}_${AOMP_VERSION_STRING}" \ - --enable...
os/mm: Fix assertion error in mm_check_heap_corruption Assertion failure occurs when we try to aquire heap semaphore in mm_check_heap_corruption. So, we add a check for whether we are in irq mode, and try to aquire semaphore only when we are not in irq mode.
* Included Files ****************************************************************************/ #include <tinyara/config.h> -#include <debug.h> +#include <tinyara/arch.h> #include <tinyara/mm/mm.h> - +#include <debug.h> /**************************************************************************** * Pre-processor Definit...
Do not manually free memory if it is from a pool This is a fixup commit for
@@ -214,7 +214,10 @@ static h2o_iovec_t *decode_string(h2o_mem_pool_t *pool, const uint8_t **src, con return NULL; ret = alloc_buf(pool, len * 2); /* max compression ratio is >= 0.5 */ if ((ret->len = h2o_hpack_decode_huffman(ret->base, *src, len, is_header_name, err_desc)) == SIZE_MAX) { - h2o_mem_release_shared(ret);...
[finsh][cmd] Enhance system robustness
@@ -793,7 +793,7 @@ long list_timer(void) MSH_CMD_EXPORT(list_timer, list timer in system); #ifdef RT_USING_DEVICE -static char *const device_type_str[] = +static char *const device_type_str[RT_Device_Class_Unknown] = { "Character Device", "Block Device", @@ -825,7 +825,6 @@ static char *const device_type_str[] = "DAC ...
docs: fix error on ldgen generated symbol with SURROUND
@@ -568,9 +568,9 @@ generates an output on the linker script: .. code-block:: none . = ALIGN(8) - __my_sym_start = ABSOLUTE(.) + _my_sym_start = ABSOLUTE(.) KEEP(lib1.a:obj1.*( SORT(.rodata) SORT(.rodata.*) )) - __my_sym_end = ABSOLUTE(.) + _my_sym_end = ABSOLUTE(.) Note that ALIGN and SURROUND, as mentioned in the fla...
fix win curl tool link failure problem
$progressPreference = 'silentlyContinue' Invoke-WebRequest -Uri https://aka.ms/vs/15/release/VC_redist.x64.exe -OutFile VC_redist.x64.exe Start-Process -FilePath "VC_redist.x64.exe" -ArgumentList "/passive" -Wait -Passthru -[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -Invoke-WebReque...