message
stringlengths
6
474
diff
stringlengths
8
5.22k
BugID:18258260: Remove the built-in component dependencies in build system
@@ -327,16 +327,6 @@ ifndef CC $(error No matching toolchain found for architecture $(HOST_ARCH)) endif - - -# Process all the components + AOS - -COMPONENTS += $(HOST_MCU_FAMILY) osal init - -ifneq ($(ONLY_BUILD_LIBRARY), yes) -COMPONENTS += auto_component -endif - # MBINS build support ifeq ($(MBINS),app) COMPONENTS ...
Allow scope_attach_PID.yml to exist Don't fail, just reuse the existing scope_attach_PID.yml file in shared memory if it exists.
@@ -864,9 +864,7 @@ main(int argc, char **argv, char **env) snprintf(path, sizeof(path), "/scope_attach_%d.yml", pid); - // Permissions on the file need to allow the library in the attached - // process to remove the shared memory object. - int shmFd = shm_open(path, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IRGRP|S_IROTH); + i...
ARMv8: adding stack pointer and L0 page table to ARM coredata
*/ /* - * Copyright (c) 2012, ETH Zurich. + * Copyright (c) 2012, 2017 ETH Zurich. * Copyright (c) 2015, 2016 Hewlett Packard Enterprise Development LP. * All rights reserved. * @@ -29,6 +29,8 @@ struct armv8_coredata_elf { * */ struct armv8_core_data { + lpaddr_t stack; + lpaddr_t l0_pagetable; lpaddr_t multiboot2; //...
test-suite: update munge check to look for OS RPM
@@ -8,8 +8,8 @@ if [ -s ./common/TEST_ENV ];then source ./common/TEST_ENV fi -@test "[munge] check for RPM" { - run rpm -q munge${DELIM} +@test "[munge] check for OS provdied RPM" { + run rpm -q munge assert_success }
Simplify padding check and get rid of psa_sig_md in rsa_decrypt_wrap()
@@ -227,24 +227,14 @@ static int rsa_decrypt_wrap( void *ctx, int key_len; unsigned char buf[MBEDTLS_PK_RSA_PRV_DER_MAX_BYTES]; mbedtls_pk_info_t pk_info = mbedtls_rsa_info; - psa_algorithm_t psa_sig_md; ((void) f_rng); ((void) p_rng); #if !defined(MBEDTLS_RSA_ALT) - switch( rsa->padding ) - { - case MBEDTLS_RSA_PKCS_V...
tasn_dec: use do/while around statement macros Use the do {} while (0) construct around macros whose bodies are complete statements (including one that has internal control flow!). This is safer and avoids any risk of misinterpretation if the macro is used in an unexpected context.
@@ -90,9 +90,9 @@ unsigned long ASN1_tag2bit(int tag) /* Macro to initialize and invalidate the cache */ -#define asn1_tlc_clear(c) if ((c) != NULL) (c)->valid = 0 +#define asn1_tlc_clear(c) do { if ((c) != NULL) (c)->valid = 0; } while (0) /* Version to avoid compiler warning about 'c' always non-NULL */ -#define asn1...
fix: Return a list for changed files in git hooks Why: In python, filter() will return an iterable object instead of a list, making it difficult to test if it's empty. Also using list comprehension is more readable.
@@ -23,8 +23,7 @@ def commit_is_ready(file_names=""): if not file_names: file_names = get_modified_files() - existing_files = filter(file_exists, file_names) - source_file_names = filter(file_is_checkable, existing_files) + files_to_check = [f for f in file_names if file_exists(f) and file_is_checkable(f)] checks = [ c...
Added Array test cases to function tests
@@ -423,6 +423,25 @@ TEST_F(BasicFuncTests, sendDifferentPriorityEvents) EventProperties event("first_event"); event.SetPriority(EventPriority_Normal); event.SetProperty("property", "value"); + std::vector<int64_t> intvector(8); + std::fill(intvector.begin(), intvector.begin() + 4, 5); + std::fill(intvector.begin() + 3...
common/gpio.c: Format with clang-format BRANCH=none TEST=none
@@ -74,8 +74,8 @@ static int gpio_config_pins(enum module_id id, uint32_t port, uint32_t pin_mask, gpio_set_flags_by_mask( af->port, (af->mask & pin_mask), enable ? af->flags : GPIO_INPUT); - gpio_set_alternate_function(af->port, - (af->mask & pin_mask), + gpio_set_alternate_function( + af->port, (af->mask & pin_mask),...
Use fixed value of DILL_RDTSC_DIFF
#if defined(__x86_64__) || defined(__i386__) #include <x86intrin.h> + +#define DILL_RDTSC_DIFF 1000000ULL #endif #include "cr.h" #include "pollset.h" #include "utils.h" -static __attribute__((noinline)) uint64_t dill_now_measure(void) { - uint64_t start_rdtsc = __rdtsc(); - usleep(100); - uint64_t stop_rdtsc = __rdtsc(...
Disable by default some vulkan layers that cause issues
@@ -25,4 +25,4 @@ fi LD_PRELOAD="${LD_PRELOAD}:${MANGOHUD_LIB_NAME}" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@ld_libdir_mangohud@" -exec env MANGOHUD=1 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" LD_PRELOAD="${LD_PRELOAD}" "$@" +exec env DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1 NODEVICE_SELECT=1 MANGOHUD=1 LD_LIBRARY_PATH="${LD_...
Link Checker: Check CppCMS links again
@@ -13,9 +13,3 @@ https://webdemo.libelektra.org https://debian-stretch-repo.libelektra.org https://crates.io/crates/elektra https://crates.io/crates/elektra-sys - -# cppcms website has been down for quite a while for unknown reasons -http://cppcms.com -http://cppcms.com/wikipp/en/page/apt -http://cppcms.com/wikipp/en/...
Add a FAQ for common issues
@@ -242,6 +242,11 @@ A colleague challenged me to find a name as unpronounceable as [gnirehtet]. [`strcpy`]: http://man7.org/linux/man-pages/man3/strcpy.3.html +## Common issues + +See the [FAQ](FAQ.md). + + ## Developers Read the [developers page].
tests: functional: Remove non-existing field from CoreConfig
@@ -42,7 +42,6 @@ class CoreConfig(Structure): ("_volume_type", c_uint8), ("_core_id", c_uint16), ("_name", c_char_p), - ("_cache_id", c_uint16), ("_try_add", c_bool), ("_seq_cutoff_threshold", c_uint32), ("_user_metadata", UserMetadata),
alef: cap cwnd
^- pump-metrics :: =. num-live (add num-live num-sent) - ?> (lte num-live cwnd) metrics :: +on-ack: adjust metrics based on a packet getting acknowledged :: :: if below congestion threshold, add 1; else, add avg. 1 / cwnd :: =. cwnd + %+ min 200 ?: in-slow-start +(cwnd) (add cwnd !=(0 (mod (mug now) cwnd)))
BUFR decoding: Crash in case of invalid delayed replication
@@ -265,6 +265,7 @@ static size_t __expand(grib_accessor* a, bufr_descriptors_array* unexpanded, buf } grib_context_free(c,v); inner_expanded=do_expand(a,inner_unexpanded,ccp,err); + if (*err) return 0; grib_bufr_descriptors_array_delete(inner_unexpanded); #if MYDEBUG for (i=0;i<inner_expanded->n;i++) { @@ -297,6 +298,...
docs: Add the missing dependency libseccomp-devel
@@ -98,6 +98,7 @@ export AESM_PATH=$PWD Download the package from [here](https://github.com/alibaba/inclavare-containers/releases/). - On CentOS 7.5: ```shell +yum install -y libseccomp rpm -ivh rune-0.3.0-1.el7.x86_64.rpm rpm -ivh occlum-pal-0.14.0-1.el7.x86_64.rpm ``` @@ -138,7 +139,6 @@ You need to specify a set of ...
Yardoc: Replace Doxygen format in rmstruct.c
@@ -187,13 +187,9 @@ Export_ChromaticityInfo(ChromaticityInfo *ci, VALUE chrom) /** - * Create a string representation of a Magick::Chromaticity. + * Return a string representation of a {Magick::Chromaticity} object. * - * Ruby usage: - * - @verbatim Magick::Chromaticity#to_s @endverbatim - * - * @param self this objec...
redrix: Disable power LED during S0ix BRANCH=none TEST=On Redrix. Verify LED will not blink on S0ix.
@@ -218,16 +218,8 @@ static void led_set_battery(void) static void led_set_power(void) { - static unsigned int power_tick; - - power_tick++; - if (chipset_in_state(CHIPSET_STATE_ON)) led_set_color_power(LED_WHITE); - else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND)) - led_set_color_power((power_tick % - LED_TICKS_P...
Check Bashisms: Ignore `run_dev_env`
@@ -13,8 +13,8 @@ find -version > /dev/null 2>&1 > /dev/null && FIND=find || FIND='find -E' # this way we also check subdirectories # The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature! # See also: https://unix.stackexchange.com/questions/151925 -scripts=$($FIND scripts/ -type...
xpath NEW when evaluation checking
@@ -5277,6 +5277,32 @@ moveto_root(struct lyxp_set *set, int options) } } +/** + * @brief Check whether a node has some unresolved "when". + * + * @param[in] node Node to check. + * @return LY_ERR value (LY_EINCOMPLETE if there are some unresolved "when") + */ +static LY_ERR +moveto_when_check(const struct lyd_node *no...
avx: use vectors of fixed-length elements for some comparisons Hopefully this fixes the clang issue.
@@ -1370,7 +1370,7 @@ simde_mm_cmp_pd (simde__m128d a, simde__m128d b, const int imm8) r.i64 = (int64_t __attribute__((__vector_size__(16)))) (a.f64 <= b.f64); break; case SIMDE_CMP_FALSE_OQ: - r.i32f = (a.i32f ^ a.i32f); + r.i32 = (a.i32 ^ a.i32); break; case SIMDE_CMP_NEQ_OQ: r.i64 = (int64_t __attribute__((__vector_...
web ui jenkins: change `true` back to `isMaster()`, re-enable full build
@@ -138,7 +138,12 @@ stage("Main builds") { parallel generateMainBuildStages() } -maybeStage("Build artifacts", true) { +stage("Full builds") { + milestone label: "Full builds" + parallel generateFullBuildStages() +} + +maybeStage("Build artifacts", isMaster()) { milestone label: "artifacts" parallel generateArtifactSt...
add target for slow tests
@@ -323,7 +323,7 @@ endif ifeq ($(MAKESTAGE),1) .PHONY: doc/commands.txt $(TARGETS) -default all clean allclean distclean doc/commands.txt doxygen test utest utest_gpu gputest pythontest shared-lib $(TARGETS): +default all clean allclean distclean doc/commands.txt doxygen test utest utest_gpu gputest testslow pythontes...
Fix objCache on Windows systems
@@ -59,7 +59,10 @@ const generateIncludesLookup = async (buildIncludeRoot) => { const includesLookup = {}; for (const filePath of allIncludeFiles) { const fileContents = await readFile(filePath, "utf8"); - includesLookup[Path.relative(buildIncludeRoot, filePath)] = { + const key = Path.relative(buildIncludeRoot, filePa...
Package json settings
{ "name": "gb-studio", "productName": "GB Studio", - "version": "1.0.0", - "description": "My Electron application description", + "version": "0.1.0", + "description": "Visual retro game maker", "main": "dist/index.js", "scripts": { "start": "run-p parcel:watch start:electron", }, "keywords": [], "author": "cmaltby", -...
Add the correct enum value for DSA public key serialization
@@ -173,7 +173,7 @@ static int dsa_pub_print(void *ctx, void *dsa, OSSL_CORE_BIO *cout, if (out == NULL) return 0; - ret = ossl_prov_print_dsa(out, dsa, 0); + ret = ossl_prov_print_dsa(out, dsa, dsa_print_pub); BIO_free(out); return ret;
occ: sensors-groups: Add DT properties to mark HWMON sensor groups Fix the sensor type to match HWMON sensor types. Add compatible flag to indicate the environmental sensor groups so that operations on these groups can be handled by HWMON linux interface.
@@ -1590,13 +1590,13 @@ void occ_add_sensor_groups(struct dt_node *sg, u32 *phandles, u32 *ptype, { OCC_SENSOR_TYPE_GENERIC, "generic", OPAL_SENSOR_GROUP_ENABLE }, - { OCC_SENSOR_TYPE_CURRENT, "current", + { OCC_SENSOR_TYPE_CURRENT, "curr", OPAL_SENSOR_GROUP_ENABLE }, - { OCC_SENSOR_TYPE_VOLTAGE, "voltage", + { OCC_SEN...
[hardware] Shuffle AXI channels for maximum DMA bandwidth
@@ -377,6 +377,13 @@ module mempool_group axi_tile_req_t [NumAXIMastersPerGroup-1:0] axi_mst_req; axi_tile_resp_t [NumAXIMastersPerGroup-1:0] axi_mst_resp; + axi_tile_req_t [NumTilesPerGroup+NumDmasPerGroup-1:0] axi_slv_req; + axi_tile_resp_t [NumTilesPerGroup+NumDmasPerGroup-1:0] axi_slv_resp; + + for (genvar i = 0; i...
out_loki: enable processing multiple tasks in loki output plugin. The Loki output plugin previously disabled processing mulitple tasks per flush because Loki historically did not support out-of-order writes. However this behavior had a deleterious effect on throughput.
@@ -1658,5 +1658,5 @@ struct flb_output_plugin out_loki_plugin = { /* for testing */ .test_formatter.callback = cb_loki_format_test, - .flags = FLB_OUTPUT_NET | FLB_IO_OPT_TLS | FLB_OUTPUT_NO_MULTIPLEX, + .flags = FLB_OUTPUT_NET | FLB_IO_OPT_TLS, };
Run attestation sample only if DCAP libraries exist
@@ -62,12 +62,12 @@ else () # they can run even if they weren't built against SGX, because in # that cause they directly interface with the AESM service. if (BUILD_ENCLAVES) - list(APPEND SAMPLES_LIST data-sealing attestation) + list(APPEND SAMPLES_LIST data-sealing) # These tests can only run with SGX-FLC, meaning the...
docs/license: Add myself to copyright holders.
@@ -3,7 +3,7 @@ MicroPython license information The MIT License (MIT) -Copyright (c) 2013-2017 Damien P. George, and others +Copyright (c) 2013-2019 Damien P. George, Paul Sokolovsky, and others Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fi...
Ocean data: remove entries from grib2 tables v24
11 11 Cumulonimbus (CB) base (m) 12 12 Cumulonimbus (CB) top (m) 13 13 Lowest level where vertically integrated cloud cover exceeds the specified percentage (cloud base for a given percentage cloud cover) (%) -14 14 Level of free convection (LFC) (-) -15 15 Convective condensation level (CCL) (-) -16 16 Level of neutra...
GraphContent: reduce margin on headings
@@ -239,7 +239,7 @@ const header = ({ children, depth, ...rest }) => { <H4 display='block'>{children}</H4> ); return ( - <Box {...rest} mt="2" mb="4"> + <Box {...rest}> {inner} </Box> );
License: Fix GitHub license detection again
# BSD 3-Clause License -Copyright (c) 2017, [Elektra Initiative](/doc/AUTHORS.md) - Some rights reserved. - +Copyright (c) 2017 [Elektra Initiative](/doc/AUTHORS.md), All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition...
[DeviceDriver] Change the special device commands form 0x1X to 0x2X. It will avoid same of general device commands.
@@ -966,13 +966,13 @@ enum rt_device_class_type /** * special device commands */ -#define RT_DEVICE_CTRL_CHAR_STREAM 0x10 /**< stream mode on char device */ -#define RT_DEVICE_CTRL_BLK_GETGEOME 0x10 /**< get geometry information */ -#define RT_DEVICE_CTRL_BLK_SYNC 0x11 /**< flush data to block device */ -#define RT_DEV...
Fix read multiple attributes from Window Covering Cluster
@@ -120,7 +120,6 @@ void DeRestPluginPrivate::handleWindowCoveringClusterIndication(const deCONZ::Ap { while(!stream.atEnd()) { - stream >> attrid; if (isReadAttr) { @@ -137,15 +136,18 @@ void DeRestPluginPrivate::handleWindowCoveringClusterIndication(const deCONZ::Ap { stream >> attrValue; } + // only read 16-bit valu...
test: remove png file output
#include <stdlib.h> #include <LCUI_Build.h> #include <LCUI/LCUI.h> -#include <LCUI/image.h> #include <LCUI/gui/widget.h> #include <LCUI/gui/widget/textview.h> #include <LCUI/gui/css_parser.h> @@ -18,18 +17,6 @@ static struct { LCUI_Widget text; } self; -#ifdef LCUI_BUILD_IN_WIN32 -static void LoggerHandler(const char *...
build: prepare vioscsi for ARM64 build
<Configuration>Win10 Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> + <ProjectConfiguration Include="Win10 Release|ARM64"> + <Configuration>Win10 Release</Configuration> + <Platform>ARM64</Platform> + </ProjectConfiguration> <ProjectConfiguration Include="Win8.1 Release|x64"> <Configuration>Wi...
Docs: Use badges instead of emojis in the support table of the README Closes
@@ -6,15 +6,18 @@ ESP-IDF is the development framework for Espressif SoCs supported on Windows, Li # ESP-IDF Release and SoC Compatibility -The following table shows ESP-IDF support of Espressif SoCs where :yellow_circle: and :green_circle: denote preview status and support, respectively. In preview status the build is...
multifile: pass config to child backends
@@ -62,6 +62,7 @@ typedef struct GetPhases getPhase; KeySet * modules; KeySet * childBackends; + KeySet * childConfig; char * resolver; char * storage; unsigned short stayAlive; @@ -204,6 +205,7 @@ int elektraMultifileClose (Plugin * handle ELEKTRA_UNUSED, Key * errorKey ELEKTR elektraModulesClose (mc->modules, NULL); ...
pbio/drivebase: implement Stop.HOLD This is equivalent to driving 0 mm.
@@ -111,7 +111,7 @@ static pbio_error_t pbio_drivebase_actuate(pbio_drivebase_t *db, pbio_actuation_ // Hold is not yet implemented if (sum_actuation == PBIO_ACTUATION_HOLD || dif_actuation == PBIO_ACTUATION_HOLD) { - return PBIO_ERROR_NOT_IMPLEMENTED; + return pbio_drivebase_straight(db, 0, db->control_distance.settin...
removed "!" from snap_helloworld help
@@ -80,7 +80,7 @@ static void usage(const char *prog) "echo clean possible temporary old files \n" "rm /tmp/t2; rm /tmp/t3\n" "echo Prepare the text to process\n" - "echo \"Hello world. This is my first CAPI SNAP experience. It's real fun!\"" + "echo \"Hello world. This is my first CAPI SNAP experience. It's real fun\"...
[numerics] fix bug in NM_extract_diag_block5
@@ -1756,13 +1756,14 @@ void NM_extract_diag_block5(NumericsMatrix* M, int block_row_nb, double ** Block } case NM_SPARSE_BLOCK: { + assert(0); /* this has to be checked carefully */ int diagPos = SBM_diagonal_block_index(M->matrix1, block_row_nb); (*Block) = M->matrix1->block[diagPos]; break; } case NM_SPARSE: { - siz...
Fix 'show interface span' field length Allow to display longer interface names, e.g. VirtualEthernet0/0/0.102 The field length (32) is now the same as for 'show interface'.
@@ -206,7 +206,7 @@ show_interfaces_span_command_fn (vlib_main_t * vm, clib_bitmap_t *b = clib_bitmap_dup_or (d, l); if (header) { - vlib_cli_output (vm, "%-20s %-20s %6s %6s", "Source", "Destination", + vlib_cli_output (vm, "%-32s %-32s %6s %6s", "Source", "Destination", "Device", "L2"); header = 0; } @@ -219,7 +219,7...
SOVERSION bump to version 2.20.18
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 20) -set(LIBYANG_MICRO_SOVERSION 17) +set(LIBYANG_MICRO_SOVERSION 18) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG...
remove only use of /_ with an aura
:::: /hoon/comments/tree/ren :: /? 310 -/: /%/comments /_ @da +/: /%/comments + /; |= a/(map knot {ship marl}) + =- (sort - dor) + %+ turn (~(tap by a)) + |=({b/knot c/{ship marl}} [(slav %da b) c]) + /_ /; |= a/manx ^- {ship marl} ~| a ?> ?=(_[/div ;/(~) ~[[%h2 **] ~[[%code **] ;/(who=**)]] kid=**] a) - => .(a ^+([/di...
[CUDA] Fix CL_MEM_ALLOC_HOST_PTR
@@ -270,10 +270,11 @@ pocl_cuda_alloc_mem_obj(cl_device_id device, cl_mem mem_obj, void *host_ptr) } else if (flags & CL_MEM_ALLOC_HOST_PTR) { - void *ptr; - result = cuMemHostAlloc(&ptr, mem_obj->size, CU_MEMHOSTREGISTER_DEVICEMAP); + result = cuMemHostAlloc(&mem_obj->mem_host_ptr, mem_obj->size, + CU_MEMHOSTREGISTER_...
update the logger for ADD_ADDRESS frames
@@ -934,6 +934,61 @@ size_t picoquic_log_crypto_hs_frame(FILE* F, uint8_t* bytes, size_t bytes_max) return byte_index; } +size_t picoquic_log_add_address_frame(FILE* F, uint8_t* bytes, size_t bytes_max) +{ + size_t byte_index = 1; + + uint8_t has_port = 0; + uint8_t ip_vers; + uint8_t addr_id; + + uint8_t flags_and_ip_...
board/anahera/board.c: Format with clang-format BRANCH=none TEST=none
@@ -73,7 +73,6 @@ __override void board_set_charge_limit(int port, int supplier, int charge_ma, * to account for the charger chip margin. */ charge_ma = charge_ma * 95 / 100; - charge_set_input_current_limit(MAX(charge_ma, - CONFIG_CHARGER_INPUT_CURRENT), - charge_mv); + charge_set_input_current_limit( + MAX(charge_ma,...
Additional catching-up
@@ -66,9 +66,11 @@ Furthermore some information of SIXEL-ready SDL applications are reported. ### X11 on SIXEL terminals -[XSIXEL](https://github.com/saitoha/xserver-sixel) is a kdrive server implementation for SIXEL terminals. +[Xsixel](https://github.com/saitoha/xserver-sixel) is a kdrive server implementation for SI...
Clean more (git-ignored) generated files
@@ -89,9 +89,9 @@ explicit_index.cram: ex1.cram cp ex1.cram $@ clean: - rm -fr *.bam *.bai *.fai *.pileup* *.cram \ + rm -fr *.bam *.bai *.csi *.fai *.gzi *.pileup* *.cram *.crai \ *~ calDepth *.dSYM pysam_*.sam \ - ex2.sam ex2.sam.gz ex1.sam \ + ex2.sam ex2.sam.gz ex1.sam ex1.fa.gz \ with_md.sam.gz \ *.fq.gz
Add EIP1559 to changelog
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.8.9](https://github.com/ledgerhq/app-ethereum/compare/1.8.8...1.8.0) - 2021-8-03 + +##...
Corrected Sengled PAR38 Bulbs consumption unit
@@ -7112,8 +7112,8 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event) if (i->modelId() == QLatin1String("SmartPlug") || // Heiman i->modelId().startsWith(QLatin1String("PSMP5_")) || // Climax - i->modelId().startsWith(QLatin1String("SKHMP30"))) // GS smart plug - // Sengled PAR38 Bulbs + i->m...
common/mock/usb_pe_sm_mock.c: Format with clang-format BRANCH=none TEST=none
struct mock_pe_port_t mock_pe_port[CONFIG_USB_PD_PORT_MAX_COUNT]; - /** * Resets all mock PE ports to initial values */ @@ -108,7 +107,8 @@ void pd_set_src_caps(int port, int cnt, uint32_t *src_caps) } void pd_request_power_swap(int port) -{} +{ +} int pd_get_rev(int port, enum tcpci_msg_type type) {
Travis: Install Cheetah template engine
@@ -16,7 +16,8 @@ matrix: osx_image: xcode6.4 before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + - | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rvm list; rvm install 2.3.1; rvm use 2.3.1; @@ -35,6 +36,7 @@ before_install: brew install openssl botan libgcrypt; brew install libgit2; brew install xerces-c; +...
options/posix: Make extract_entry set pw_gecos.
@@ -15,7 +15,7 @@ namespace { __ensure(!entry->pw_dir); __ensure(!entry->pw_shell); - frg::string_view segments[7]; + frg::string_view segments[8]; // Parse the line into exactly 6 segments. size_t s = 0; @@ -48,12 +48,15 @@ namespace { __ensure(dir); auto shell = strndup(segments[6].data(), segments[6].size()); __ensu...
fix build of last merge commit
@@ -1845,7 +1845,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso // Aurora sensor->modelId().startsWith(QLatin1String("DoubleSocket50AU")) || // Bosch - sensor->modelId().startsWith(QLatin1String("ISW-ZPR1-WP13"))) + sensor->modelId().startsWith(QLatin1String("ISW-ZPR1-WP13")) || /...
INI: fix ordering with multifile resolver
@@ -678,6 +678,15 @@ static void setParents (KeySet * ks, Key * parentKey) } static void stripInternalData (Key * parentKey, KeySet *); +static void incOrder (Key * key) +{ + Key * orderKey = keyNew ("/", KEY_CASCADING_NAME, KEY_END); + keyAddName (orderKey, keyString (keyGetMeta (key, "internal/ini/order"))); + elektr...
KDB Info: Remove empty if-statement
@@ -27,17 +27,15 @@ InfoCommand::InfoCommand () int InfoCommand::execute (Cmdline const & cl) { std::string subkey; - if (cl.arguments.size () == 1) + if (cl.arguments.size () < 1 || cl.arguments.size () > 2) { + throw invalid_argument ("Need 1 or 2 argument(s)"); } - else if (cl.arguments.size () == 2) + + if (cl.argu...
Fix dragging treelist column divider Fix regression from commit
@@ -5519,8 +5519,8 @@ VOID PhTnpDrawCell( if (Column == Context->FirstColumn) { - BOOLEAN needsClip; - HRGN oldClipRegion; + BOOLEAN needsClip = FALSE; + HRGN oldClipRegion = NULL; textRect.left += Node->Level * SmallIconWidth; @@ -5631,9 +5631,11 @@ VOID PhTnpDrawCell( textRect.left += SmallIconWidth + TNP_ICON_RIGHT_...
Allow yaml to realloc buffer for rest get operations to avoid truncated output...
@@ -132,8 +132,7 @@ rest_dt_get( return merr(ev(ENOENT)); pathsz = strlen(path) + 2; - bufsz = 1048576 + pathsz; - bufsz = ALIGN(bufsz, 1048576 * 2); + bufsz = ALIGN(pathsz, 4ul << 20); buf = malloc(bufsz); if (!buf) @@ -142,15 +141,15 @@ rest_dt_get( sprintf(buf, "/%s", path); yc.yaml_indent = 0; - yc.yaml_offset = 0;...
Fix MSVC Debug build with internal zlib zlib sets CMAKE_DEBUG_POSTFIX to "d" with msvc in debug
@@ -220,12 +220,19 @@ if(OPENEXR_FORCE_INTERNAL_ZLIB OR NOT TARGET ZLIB::ZLIB) set(zlibstaticlibname "z") endif() + if(MSVC) + set(zlibpostfix "d") + endif() + if(NOT (APPLE OR WIN32) AND BUILD_SHARED_LIBS AND NOT OPENEXR_FORCE_INTERNAL_ZLIB) add_library(zlib_shared SHARED IMPORTED GLOBAL) add_dependencies(zlib_shared ...
consistent permissions
@@ -85,7 +85,7 @@ cd %{dname} %{__mkdir} -p $RPM_BUILD_ROOT/%{_docdir} -install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_libexecdir}/warewulf/* +install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/%{_libexecdir}/warewulf/* %clean rm -rf $RPM_BUILD_ROOT
metadata: further fixes
@@ -1151,38 +1151,38 @@ description = "Who should see this configuration setting? # [uid] -status= currently obsolete +status= deprecated type= time usedby/api= keyNew kdbextension.h description= The owner of the key. [gid] -status= currently obsolete +status= deprecated type= time usedby/api= keyNew kdbextension.h des...
dm/VBS-U: implement read/write callbacks of device-specific cfg This patch implements the read/write callbacks for the registers in the device-specific region. This region is implemented in the modern MMIO bar. Acked-by: Eddie Dong
@@ -1267,15 +1267,62 @@ virtio_isr_cfg_read(struct pci_vdev *dev, uint64_t offset, int size) static uint32_t virtio_device_cfg_read(struct pci_vdev *dev, uint64_t offset, int size) { - /* TODO: to be implemented */ - return 0; + struct virtio_base *base = dev->arg; + struct virtio_ops *vops; + const char *name; + uint3...
[AT] Adjust where the AT socket callback function
@@ -404,6 +404,9 @@ static struct at_socket *alloc_socket(void) return alloc_socket_by_device(device); } +static void at_recv_notice_cb(struct at_socket *sock, at_socket_evt_t event, const char *buff, size_t bfsz); +static void at_closed_notice_cb(struct at_socket *sock, at_socket_evt_t event, const char *buff, size_t ...
Make 'tools/wakeuptime' use an offcpu filter This modifies 'tools/wakeuptime' to include a filter in offcpu() for capturing data only for a given pid or for user threads only.
@@ -101,8 +101,13 @@ BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE) int offcpu(struct pt_regs *ctx) { u32 pid = bpf_get_current_pid_tgid(); - u64 ts = bpf_ktime_get_ns(); - // XXX: should filter here too, but need task_struct + struct task_struct *p = (struct task_struct *) bpf_get_current_task(); + u64 ts; + + if (...
zephyr/shim/src/usb_muxes.c: Format with clang-format BRANCH=none TEST=none
* }, * [1] = { ... }, */ -MAYBE_CONST struct usb_mux usb_muxes[] = { - USB_MUX_FOREACH_USBC_PORT(USB_MUX_FIRST, USB_MUX_ARRAY) -}; +MAYBE_CONST struct usb_mux usb_muxes[] = { USB_MUX_FOREACH_USBC_PORT( + USB_MUX_FIRST, USB_MUX_ARRAY) }; /** * Define all USB muxes except roots e.g. @@ -66,8 +65,7 @@ USB_MUX_FOREACH_USBC...
define the version earlier and used it for other defs
@@ -20,13 +20,13 @@ function bv_tbb_depends_on function bv_tbb_info { + export TBB_VERSION=${TBB_VERSION:-"tbb2018_20171205oss"} if [[ "$OPSYS" == "Darwin" ]] ; then - export TBB_FILE=${TBB_FILE:-"tbb2018_20171205oss_mac.tgz"} + export TBB_FILE=${TBB_FILE:-"${TBB_VERSION}_mac.tgz"} else - export TBB_FILE=${TBB_FILE:-"t...
stats: fix crash due to pointer taken before validate Type: fix
@@ -12,12 +12,14 @@ static void vector_rate_collector_fn (vlib_stats_collector_data_t *d) { vlib_main_t *this_vlib_main; - counter_t **counters = d->entry->data; - counter_t *cb = counters[0]; + counter_t **counters; + counter_t *cb; f64 vector_rate = 0.0; u32 i, n_threads = vlib_get_n_threads (); vlib_stats_validate (...
Added rounding to reorder related arguements to avoid interger related errors
@@ -102,18 +102,18 @@ static void construct_mask( long reorder_dims[DIMS], complex float* reorder, long mask_dims[DIMS], complex float* mask) { - int n = reorder_dims[0]; - int sy = mask_dims[1]; - int sz = mask_dims[2]; + long n = reorder_dims[0]; + long sy = mask_dims[1]; + long sz = mask_dims[2]; - int y = -1; - int...
workflow: limit 'release' event to 'created' action
@@ -39,7 +39,7 @@ jobs: run: | ./build-source.sh ./build.sh build package release - - if: github.event_name == 'release' + - if: github.event_name == 'release' && github.event.action == 'created' name: Upload release run: | assets=()
pycopy/tests/types_str_subclassequality: Format with "black".
@@ -4,8 +4,11 @@ description: Instance of a subclass of str cannot be compared for equality with cause: Unknown workaround: Unknown """ + + class S(str): pass -s = S('hello') -print(s == 'hello') + +s = S("hello") +print(s == "hello")
Fix parallelism preventing matrix initialization. Remove incorrect call to mark_parallel_sccs
@@ -987,6 +987,9 @@ Graph* build_fusion_conflict_graph(PlutoProg *prog, int *colour, int num_nodes, if (options->fuse == TYPED_FUSE) { par_preventing_adj_mat = pluto_matrix_alloc (num_nodes, num_nodes); + for(i=0; i<num_nodes; i++) { + bzero(par_preventing_adj_mat->val[i], num_nodes*sizeof(int64)); + } } boundcst = get...
BugID:22249433:fix "yts@asr5501 test=certificate,rhino,basic,vfs,kv,cjson,aos PV compile error"
#define RHINO_CONFIG_QUEUE 1 #endif #ifndef RHINO_CONFIG_TASK_SEM -#define RHINO_CONFIG_TASK_SEM 0 +#define RHINO_CONFIG_TASK_SEM 1 #endif #ifndef RHINO_CONFIG_EVENT_FLAG -#define RHINO_CONFIG_EVENT_FLAG 0 +#define RHINO_CONFIG_EVENT_FLAG 1 #endif #ifndef RHINO_CONFIG_TIMER #define RHINO_CONFIG_TIMER 1
Add --rebuild flag
@@ -44,6 +44,7 @@ musl_targets = [ VERBOSE = False RETEST = False +REBUILD = False def run(cmd): subprocess.run(cmd, shell=True, check=True, capture_output=not VERBOSE) @@ -71,7 +72,7 @@ def build_wasi(target): wasm3_binary = f"build-cross/wasm3-{target['name']}.wasm" - if not Path(wasm3_binary).exists(): + if REBUILD ...
COPYING: Fixed typos
@@ -242,7 +242,7 @@ Copyright: 1996-2001, 2003-2011 Free Software Foundation, Inc. License: GPL-2+ Files: utils/cups-browsed* - org.cups.cupsd.Notifier.xml + utils/org.cups.cupsd.Notifier.xml Copyright: 2012-2019 Till Kamppeter 2013-2015 Tim Waugh 2018-2019 Deepak Patankar @@ -368,7 +368,7 @@ License: LGPL-2 under the ...
slot allocation logging
@@ -334,8 +334,8 @@ void dump_type_stack (IM3Compilation o) i32 regAllocated [2] = { (i32) IsRegisterAllocated (o, 0), (i32) IsRegisterAllocated (o, 1) }; // display whether r0 or fp0 is allocated. these should then also be reflected somewhere in the stack too. + d_m3Log(stack, "\n"); d_m3Log(stack, " "); - printf (" "...
OcMachoLib: Verify exact LC size when the exact type is known.
@@ -452,7 +452,7 @@ MachoGetNextSegment64 ( ); if ((NextSegment == NULL) || !OC_ALIGNED (NextSegment) - || (NextSegment->CommandSize < sizeof (*NextSegment))) { + || (NextSegment->CommandSize != sizeof (*NextSegment))) { return NULL; } @@ -632,7 +632,7 @@ InternalRetrieveSymtabs64 ( ); if ((Symtab == NULL) || !OC_ALIGN...
Remove buffer_size maximum from ssl_server2.c
@@ -451,7 +451,7 @@ int main( void ) " server_port=%%d default: 4433\n" \ " debug_level=%%d default: 0 (disabled)\n" \ " buffer_size=%%d default: 200 \n" \ - " (minimum: 1, max: 16385)\n" \ + " (minimum: 1)\n" \ " response_size=%%d default: about 152 (basic response)\n" \ " (minimum: 0, max: 16384)\n" \ " increases buf...
TTASIM clEnqueueCopyBuffer offset correction
@@ -848,8 +848,8 @@ pocl_tce_copy_rect (void *data, chunk_info_t *src_chunk = (chunk_info_t*)src_mem_id->mem_ptr; chunk_info_t *dst_chunk = (chunk_info_t*)dst_mem_id->mem_ptr; - size_t src_offset = src_origin[0] + src_row_pitch * (src_origin[1] + src_slice_pitch * src_origin[2]); - size_t dst_offset = dst_origin[0] + d...
king: First stab at removing terminfo dependency.
@@ -3,12 +3,6 @@ version: 0.10.1 license: MIT license-file: LICENSE -flags: - Release: - description: "Produce statically-linked executables" - default: false - manual: true - library: source-dirs: lib ghc-options: @@ -94,7 +88,6 @@ dependencies: - template-haskell - terminal-progress-bar - terminal-size - - terminfo -...
pyopenmv.py Add reset to bootloader.
@@ -33,6 +33,7 @@ __USBDBG_DESCRIPTOR_SAVE= 0x09 __USBDBG_ATTR_READ = 0x8A __USBDBG_ATTR_WRITE = 0x0B __USBDBG_SYS_RESET = 0x0C +__USBDBG_SYS_RESET_TO_BL= 0x0E __USBDBG_FB_ENABLE = 0x0D __USBDBG_TX_BUF_LEN = 0x8E __USBDBG_TX_BUF = 0x8F @@ -138,6 +139,9 @@ def get_attr(attr): def reset(): __serial.write(struct.pack("<BB...
PMW3901, PAA5100: Construct correct class for secret sauce.
#include "libraries/breakout_pmw3901/breakout_pmw3901.hpp" +#include "libraries/breakout_paa5100/breakout_paa5100.hpp" #define MP_OBJ_TO_PTR2(o, t) ((t *)(uintptr_t)(o)) @@ -82,7 +83,21 @@ mp_obj_t make_new(enum ChipType chip, const mp_obj_type_t *type, size_t n_args, self = m_new_obj_with_finaliser(breakout_pmw3901_Br...
Add '{b=} option to print integers. It outputs in base b <= 36.
@@ -481,11 +481,13 @@ const intparams = {params ] opts = parseparams(params, [ + ("b", true), ("x", false), ("w", true), ("p", true)][:]) for o : opts match o + | ("b", bas): ip.base = getint(bas, "fmt: base must be integer") | ("x", ""): ip.base = 16 | ("w", wid): ip.padto = getint(wid, "fmt: width must be integer") |...
Fix user name in simplified db config
@@ -31,7 +31,7 @@ public class DbRepoConfig { private final static String dbNameAttribute = "Database name"; private final static String accessMethodAttribute = "JDBC column access method"; private final static String connectionStrAttribute = "Raw driver string"; - private final static String userAttribute = "User Name...
Add BSON_ITER_HOLDS_NUMBER() & BSON_ITER_HOLDS_INT()
@@ -87,6 +87,12 @@ BSON_BEGIN_DECLS #define BSON_ITER_HOLDS_MINKEY(iter) \ (bson_iter_type ((iter)) == BSON_TYPE_MINKEY) +#define BSON_ITER_HOLDS_INT(iter) \ + (BSON_ITER_HOLDS_INT32 (iter) || BSON_ITER_HOLDS_INT64 (iter)) + +#define BSON_ITER_HOLDS_NUMBER(iter) \ + (BSON_ITER_HOLDS_INT (iter) || BSON_ITER_HOLDS_DOUBLE...
demmt: Fix compilation errors from removed nouveau params NOUVEAU_GETPARAM_(FB|AGP|PCI)_PHYSICAL doesn't exist anymore in newer versions of libdrm, so let's drop the references to this in order to fix compilation.
@@ -240,11 +240,8 @@ static char *nouveau_param_names[] = { _(NOUVEAU_GETPARAM_PCI_VENDOR), _(NOUVEAU_GETPARAM_PCI_DEVICE), _(NOUVEAU_GETPARAM_BUS_TYPE), - _(NOUVEAU_GETPARAM_FB_PHYSICAL), - _(NOUVEAU_GETPARAM_AGP_PHYSICAL), _(NOUVEAU_GETPARAM_FB_SIZE), _(NOUVEAU_GETPARAM_AGP_SIZE), - _(NOUVEAU_GETPARAM_PCI_PHYSICAL), ...
Add PhExpandEnvironmentStringsZ
@@ -689,6 +689,19 @@ PhExpandEnvironmentStrings( _In_ PPH_STRINGREF String ); +FORCEINLINE +PPH_STRING +PhExpandEnvironmentStringsZ( + _In_ PWSTR String + ) +{ + PH_STRINGREF string; + + PhInitializeStringRef(&string, String); + + return PhExpandEnvironmentStrings(&string); +} + PHLIBAPI PPH_STRING NTAPI
Fix fuzz test for s2n_asn1der_to_public_key_and_type name change
@@ -142,7 +142,9 @@ int LLVMFuzzerInitialize(const uint8_t *buf, size_t len) server_config = s2n_config_new(); GUARD(s2n_config_add_cert_chain_and_key(server_config, certificate_chain, private_key)); - GUARD(s2n_asn1der_to_public_key(&public_key, &server_config->cert_and_key_pairs->cert_chain.head->raw)); + s2n_cert_ty...
Avoid division by 0 If the frame_size width or height is 0, just return the current size to avoid calculations involving divison by 0.
@@ -88,6 +88,11 @@ static SDL_bool get_preferred_display_bounds(struct size *bounds) { // - it keeps the aspect ratio // - it scales down to make it fit in the display_size static struct size get_optimal_size(struct size current_size, struct size frame_size) { + if (frame_size.width == 0 || frame_size.height == 0) { + ...
[CLI] fix wrong error message.
@@ -112,7 +112,7 @@ func execNameUpdate(cmd *cobra.Command, args []string) error { } _, err = types.DecodeAddress(to) if err != nil { - return fmt.Errorf("Wrong address in --from flag: %v", err.Error()) + return fmt.Errorf("Wrong address in --to flag: %v", err.Error()) } amount, err := util.ParseUnit(spending) if err !...
bricks/configport: Enable rmul. This is used by the Color and Matrix types.
#define MICROPY_PY_COLLECTIONS (0) #define MICROPY_PY_MATH (PYBRICKS_STM32_OPT_FLOAT) #define MICROPY_PY_CMATH (0) +#define MICROPY_PY_ALL_SPECIAL_METHODS (PYBRICKS_STM32_OPT_EXTRA_MOD) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (PYBRICKS_STM32_OPT_EXTRA_MOD) #define MICROPY_PY_IO (PYBRICKS_STM32_OPT_EXTRA_MOD) #defin...
Updated Servo2040 description
@@ -60,12 +60,9 @@ There is also a `Calibration` class for performing advanced tweaking of each ser ## Servo 2040 -Servo 2040 is a controller board for 3-pin hobby servos, with additional bells and whistles that make it ideal for many robotics projects! Key features include: -* Drive up to 18 servos - enough for a hexa...
Support llvm-dsymutil -> dsymutil rename in LLVM 7.
@@ -1679,7 +1679,8 @@ class LD(Linker): dwarf_tool = self.tc.dwarf_tool if dwarf_tool is None and self.tc.is_clang and (self.target.is_macos or self.target.is_ios): - dwarf_tool = '${YMAKE_PYTHON} ${input:"build/scripts/run_llvm_dsymutil.py"} %s/bin/llvm-dsymutil' % self.tc.name_marker + dsymutil = '{}/bin/{}dsymutil'....
qword: Added unlink
@@ -428,8 +428,18 @@ int sys_readlink(const char *path, void *buffer, size_t max_size, ssize_t *lengt int sys_ftruncate(int fd, size_t size) STUB_ONLY int sys_fallocate(int fd, off_t offset, size_t size) STUB_ONLY int sys_unlink(const char *path) { - mlibc::infoLogger() << "mlibc: " << __func__ << " is a stub!" << frg:...
Exclude network testcases that are not supported removed tests : dup() api, ITC dup() api, ITC fcntl()
@@ -37,10 +37,7 @@ config TC_NET_ALL select TC_NET_INET select TC_NET_ETHER select TC_NET_NETDB - select TC_NET_DUP select ITC_NET_CLOSE - select ITC_NET_DUP - select ITC_NET_FCNTL select ITC_NET_LISTEN select ITC_NET_SETSOCKOPT select ITC_NET_SEND @@ -132,22 +129,10 @@ config TC_NET_NETDB bool "netdb() api" default n ...
Avoid breaking existing code due to changes in field names introduced in The old names can still be used, but they are marked as deprecated and will raise a warning.
@@ -527,14 +527,41 @@ struct YR_RULES // Array of pointers with an entry for each rule. The rule_idx field in the // YR_STRING structure is an index within this array. + union + { YR_RULE* rules_table; + // The previous name for rules_table was rules_list_head, because this + // was previously a linked list. The old na...
Do not use return code for thread run function The decoder sometimes returned a non-zero value on error, but not on every path. Since we never use the value, always return 0 at the end (like in the controller).
@@ -40,37 +40,33 @@ static void notify_stopped(void) { static int run_decoder(void *data) { struct decoder *decoder = data; - int ret = 0; AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_H264); if (!codec) { LOGE("H.264 decoder not found"); - return -1; + goto run_end; } AVCodecContext *codec_ctx = avcodec_alloc_cont...